From 3d0f3938d0a27a99f5710ee346617df0a22e4807 Mon Sep 17 00:00:00 2001 From: PoolOfDeath20 <53143214+GervinFung@users.noreply.github.com> Date: Sun, 22 Sep 2024 16:55:00 +0800 Subject: [PATCH] Remove unnecessary packages (#67) * packages(eslint): remove unnecessary packages * refactor(*): remove `isFalsy` --- apps/web/eslint.config.mjs | 2 ++ apps/web/knip.ts | 3 ++ apps/web/package.json | 6 ---- apps/web/pages/templates/index.tsx | 5 ++-- .../src/web/components/templates/query.tsx | 4 +-- pnpm-lock.yaml | 30 ++----------------- 6 files changed, 12 insertions(+), 38 deletions(-) diff --git a/apps/web/eslint.config.mjs b/apps/web/eslint.config.mjs index 4b51946..039b34a 100644 --- a/apps/web/eslint.config.mjs +++ b/apps/web/eslint.config.mjs @@ -1,6 +1,8 @@ import process from 'process'; +// eslint-disable-next-line import/no-extraneous-dependencies import { includeIgnoreFile } from '@eslint/compat'; +// eslint-disable-next-line import/no-extraneous-dependencies import eslint from '@eslint/js'; import { node, next } from '@poolofdeath20/eslint-config'; import tseslint from 'typescript-eslint'; diff --git a/apps/web/knip.ts b/apps/web/knip.ts index b7f8d23..663e944 100644 --- a/apps/web/knip.ts +++ b/apps/web/knip.ts @@ -16,6 +16,9 @@ const config: KnipConfig = { 'prettier', 'supabase', 'vite-node', + '@eslint/compat', + '@eslint/js', + 'typescript-eslint', ], }; diff --git a/apps/web/package.json b/apps/web/package.json index b9cd28a..c03e732 100644 --- a/apps/web/package.json +++ b/apps/web/package.json @@ -44,12 +44,9 @@ }, "devDependencies": { "@ducanh2912/next-pwa": "^10.2.8", - "@eslint/compat": "^1.1.1", - "@eslint/js": "^9.8.0", "@poolofdeath20/eslint-config": "^0.4.0", "@poolofdeath20/tsconfig": "^0.1.1", "@types/cors": "^2.8.17", - "@types/eslint__js": "^8.42.3", "@types/file-saver": "^2.0.7", "@types/jest-image-snapshot": "^6.4.0", "@types/react": "^18.3.3", @@ -59,8 +56,6 @@ "@typescript-eslint/parser": "^7.18.0", "ci-info": "^4.0.0", "eslint": "^9.9.1", - "eslint-plugin-jsx-a11y": "^6.9.0", - "eslint-plugin-react": "^7.35.0", "gen-env-type-def": "^0.0.4", "jest-image-snapshot": "^6.4.0", "knip": "^5.27.0", @@ -70,7 +65,6 @@ "sql-formatter": "15.3.2", "supabase": "^1.187.10", "typescript": "^5.5.4", - "typescript-eslint": "^8.0.1", "vite-node": "^2.0.4", "vitest": "^2.0.4" } diff --git a/apps/web/pages/templates/index.tsx b/apps/web/pages/templates/index.tsx index 41eb6c0..ff25e8e 100644 --- a/apps/web/pages/templates/index.tsx +++ b/apps/web/pages/templates/index.tsx @@ -16,7 +16,6 @@ import { Optional, formQueryParamStringFromRecord, Defined, - isFalsy, } from '@poolofdeath20/util'; import { saveAs } from 'file-saver'; import iwanthue from 'iwanthue'; @@ -420,7 +419,7 @@ const Templates = () => {