Skip to content

Commit

Permalink
chore: remove eslint-plugin-unused-imports (#9160)
Browse files Browse the repository at this point in the history
`no-unused-vars` is enough
  • Loading branch information
Brooooooklyn committed Dec 13, 2024
1 parent 60080d5 commit f49bef4
Showing 4 changed files with 1 addition and 21 deletions.
5 changes: 0 additions & 5 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -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',
{
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
2 changes: 1 addition & 1 deletion packages/frontend/track/src/mixpanel.ts
Original file line number Diff line number Diff line change
@@ -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';
14 changes: 0 additions & 14 deletions yarn.lock
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit f49bef4

Please sign in to comment.