From 3c5456a79f42cdfe41191d60b6f11532635b7523 Mon Sep 17 00:00:00 2001 From: Matt Hamlin Date: Mon, 21 Oct 2024 21:12:11 -0400 Subject: [PATCH] Upgrade dependencies, use biome for formatting and linting --- .knip.jsonc | 12 + apps/docs/.eslintrc.json | 3 - apps/docs/app/layout.tsx | 1 + apps/docs/app/page.tsx | 73 +++-- apps/docs/components.json | 2 +- apps/docs/components/typography.tsx | 117 ++++++-- apps/docs/components/ui/button.tsx | 13 +- apps/docs/package.json | 4 +- apps/docs/tailwind.config.ts | 5 +- apps/docs/tsconfig.json | 21 +- apps/template-app/.eslintrc.json | 3 - apps/template-app/package.json | 4 +- apps/template-app/tailwind.config.ts | 3 +- apps/template-app/tsconfig.json | 21 +- biome.jsonc | 32 +++ bun.lockb | Bin 274640 -> 282256 bytes dprint.json | 25 -- package.json | 19 +- .../libs/pkg-a/package.json | 2 +- .../libs/pkg-b/package.json | 2 +- .../libs/pkg-c/package.json | 2 +- .../bun-configured-pinned/package.json | 4 +- .../bun-configured/libs/pkg-a/package.json | 2 +- .../bun-configured/libs/pkg-b/package.json | 2 +- .../bun-configured/libs/pkg-c/package.json | 2 +- .../__fixtures__/bun-configured/package.json | 4 +- .../__fixtures__/bun/libs/pkg-a/package.json | 2 +- .../__fixtures__/bun/libs/pkg-b/package.json | 2 +- .../__fixtures__/bun/libs/pkg-c/package.json | 2 +- .../one-version/__fixtures__/bun/package.json | 4 +- .../missing/libs/pkg-a/package.json | 2 +- .../missing/libs/pkg-b/package.json | 2 +- .../missing/libs/pkg-c/package.json | 2 +- .../__fixtures__/missing/package.json | 4 +- .../__fixtures__/npm/libs/pkg-a/package.json | 2 +- .../__fixtures__/npm/libs/pkg-b/package.json | 2 +- .../__fixtures__/npm/libs/pkg-c/package.json | 2 +- .../one-version/__fixtures__/npm/package.json | 4 +- .../__fixtures__/pnpm/libs/pkg-a/package.json | 2 +- .../__fixtures__/pnpm/libs/pkg-b/package.json | 2 +- .../__fixtures__/pnpm/libs/pkg-c/package.json | 2 +- .../__fixtures__/pnpm/package.json | 4 +- .../template-monorepo/libs/pkg-a/package.json | 2 +- .../template-monorepo/libs/pkg-b/package.json | 2 +- .../template-monorepo/libs/pkg-c/package.json | 2 +- .../template-monorepo/package.json | 4 +- .../yarn-berry/libs/pkg-a/package.json | 2 +- .../yarn-berry/libs/pkg-b/package.json | 2 +- .../yarn-berry/libs/pkg-c/package.json | 2 +- .../__fixtures__/yarn-berry/package.json | 4 +- .../yarn-classic/libs/pkg-a/package.json | 2 +- .../yarn-classic/libs/pkg-b/package.json | 2 +- .../yarn-classic/libs/pkg-c/package.json | 2 +- .../__fixtures__/yarn-classic/package.json | 4 +- .../__tests__/one-version.test.mjs | 191 ++++++++----- packages/one-version/bin/index.mjs | 20 +- packages/one-version/biome.jsonc | 24 +- packages/one-version/one-version.mjs | 226 ++++++++++------ packages/one-version/package.json | 63 ++--- packages/one-version/tsconfig.json | 40 +-- packages/one-version/utils/jsonc-parser.mjs | 256 +++++++++++------- packages/template-library/biome.jsonc | 16 -- packages/template-library/build.tsconfig.json | 11 - packages/template-library/package.json | 52 ++-- packages/template-library/tsconfig.json | 38 +-- scripts/generator.ts | 4 +- turbo.json | 17 +- 67 files changed, 806 insertions(+), 600 deletions(-) create mode 100644 .knip.jsonc delete mode 100644 apps/docs/.eslintrc.json delete mode 100644 apps/template-app/.eslintrc.json create mode 100644 biome.jsonc delete mode 100644 dprint.json delete mode 100644 packages/template-library/biome.jsonc delete mode 100644 packages/template-library/build.tsconfig.json diff --git a/.knip.jsonc b/.knip.jsonc new file mode 100644 index 0000000..b25f7e5 --- /dev/null +++ b/.knip.jsonc @@ -0,0 +1,12 @@ +{ + "$schema": "https://unpkg.com/knip@5/schema.json", + "workspaces": { + ".": { + "ignoreDependencies": ["@turbo/gen"] + }, + "packages/*": { + "ignore": ["**/*.test.(ts|tsx|mjs|js)"], + "ignoreDependencies": ["@swc/cli", "@swc/core"] + } + } +} diff --git a/apps/docs/.eslintrc.json b/apps/docs/.eslintrc.json deleted file mode 100644 index bffb357..0000000 --- a/apps/docs/.eslintrc.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "next/core-web-vitals" -} diff --git a/apps/docs/app/layout.tsx b/apps/docs/app/layout.tsx index 6bceb47..d226c3b 100644 --- a/apps/docs/app/layout.tsx +++ b/apps/docs/app/layout.tsx @@ -33,6 +33,7 @@ export default function RootLayout({