diff --git a/.eslintrc.js b/.eslintrc.js index d39c0b353a83e..df53d073b0410 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -9,9 +9,6 @@ const config = { react: { version: 'detect', }, - next: { - rootDir: 'packages/frontend/core', - }, }, extends: [ 'eslint:recommended', @@ -37,7 +34,6 @@ const config = { '@typescript-eslint', 'sonarjs', 'import-x', - 'unused-imports', 'rxjs', 'unicorn', ], @@ -144,7 +140,6 @@ const config = { '@typescript-eslint/require-array-sort-compare': 'error', '@typescript-eslint/unified-signatures': 'error', '@typescript-eslint/prefer-for-of': 'error', - 'unused-imports/no-unused-imports': 'error', '@typescript-eslint/no-restricted-imports': [ 'error', { diff --git a/package.json b/package.json index 320209adbd2d6..927886cb2addc 100644 --- a/package.json +++ b/package.json @@ -80,7 +80,6 @@ "eslint-plugin-rxjs": "^5.0.3", "eslint-plugin-sonarjs": "^3.0.1", "eslint-plugin-unicorn": "^56.0.1", - "eslint-plugin-unused-imports": "^4.1.4", "happy-dom": "^15.11.7", "husky": "^9.1.7", "lint-staged": "^15.2.11", diff --git a/packages/frontend/track/src/mixpanel.ts b/packages/frontend/track/src/mixpanel.ts index a3798d66d77dd..7bfe8f3481209 100644 --- a/packages/frontend/track/src/mixpanel.ts +++ b/packages/frontend/track/src/mixpanel.ts @@ -1,4 +1,4 @@ -// eslint-disable-next-line @typescript-eslint/no-unused-vars, unused-imports/no-unused-imports +// eslint-disable-next-line @typescript-eslint/no-unused-vars import { DebugLogger } from '@affine/debug'; import type { OverridedMixpanel } from 'mixpanel-browser'; import mixpanelBrowser from 'mixpanel-browser'; diff --git a/yarn.lock b/yarn.lock index bf6e5f38e5bd2..b7b12e8c42fa7 100644 --- a/yarn.lock +++ b/yarn.lock @@ -699,7 +699,6 @@ __metadata: eslint-plugin-rxjs: "npm:^5.0.3" eslint-plugin-sonarjs: "npm:^3.0.1" eslint-plugin-unicorn: "npm:^56.0.1" - eslint-plugin-unused-imports: "npm:^4.1.4" happy-dom: "npm:^15.11.7" husky: "npm:^9.1.7" lint-staged: "npm:^15.2.11" @@ -20600,19 +20599,6 @@ __metadata: languageName: node linkType: hard -"eslint-plugin-unused-imports@npm:^4.1.4": - version: 4.1.4 - resolution: "eslint-plugin-unused-imports@npm:4.1.4" - peerDependencies: - "@typescript-eslint/eslint-plugin": ^8.0.0-0 || ^7.0.0 || ^6.0.0 || ^5.0.0 - eslint: ^9.0.0 || ^8.0.0 - peerDependenciesMeta: - "@typescript-eslint/eslint-plugin": - optional: true - checksum: 10/8e987028ad925ce1e04c01dcae70adbf44c2878a8b15c4327b33a2861e471d7fe00f6fe213fbd2b936f3fcefc8ccabb0d778aa1d6e0e0387a3dc7fe150cd4ed4 - languageName: node - linkType: hard - "eslint-scope@npm:5.1.1, eslint-scope@npm:^5.1.1": version: 5.1.1 resolution: "eslint-scope@npm:5.1.1"