Skip to content

Commit 364eabc

Browse files
committed
chore: add eslint-plugin-unused-imports
1 parent 18e4a24 commit 364eabc

File tree

3 files changed

+15
-1
lines changed

3 files changed

+15
-1
lines changed

.eslintrc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@
22
"root": true,
33
"extends": "next/core-web-vitals",
44
"parser": "@typescript-eslint/parser",
5-
"plugins": ["@typescript-eslint", "eslint-plugin-react-compiler"],
5+
"plugins": ["@typescript-eslint", "eslint-plugin-react-compiler", "unused-imports"],
66
"rules": {
77
"no-unused-vars": "off",
88
"@typescript-eslint/no-unused-vars": ["error", {"varsIgnorePattern": "^_"}],
9+
"unused-imports/no-unused-imports": "error",
910
"react-hooks/exhaustive-deps": "error",
1011
"react/no-unknown-property": ["error", {"ignore": ["meta"]}],
1112
"react-compiler/react-compiler": "error"

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@
7272
"eslint-plugin-react": "7.x",
7373
"eslint-plugin-react-compiler": "^19.0.0-beta-e552027-20250112",
7474
"eslint-plugin-react-hooks": "^0.0.0-experimental-fabef7a6b-20221215",
75+
"eslint-plugin-unused-imports": "^1.1.5",
7576
"fs-extra": "^9.0.1",
7677
"globby": "^11.0.1",
7778
"gray-matter": "^4.0.2",

yarn.lock

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3471,6 +3471,18 @@ eslint-plugin-react@^7.23.1:
34713471
semver "^6.3.1"
34723472
string.prototype.matchall "^4.0.11"
34733473

3474+
eslint-plugin-unused-imports@^1.1.5:
3475+
version "1.1.5"
3476+
resolved "https://registry.yarnpkg.com/eslint-plugin-unused-imports/-/eslint-plugin-unused-imports-1.1.5.tgz#a2b992ef0faf6c6c75c3815cc47bde76739513c2"
3477+
integrity sha512-TeV8l8zkLQrq9LBeYFCQmYVIXMjfHgdRQLw7dEZp4ZB3PeR10Y5Uif11heCsHRmhdRIYMoewr1d9ouUHLbLHew==
3478+
dependencies:
3479+
eslint-rule-composer "^0.3.0"
3480+
3481+
eslint-rule-composer@^0.3.0:
3482+
version "0.3.0"
3483+
resolved "https://registry.yarnpkg.com/eslint-rule-composer/-/eslint-rule-composer-0.3.0.tgz#79320c927b0c5c0d3d3d2b76c8b4a488f25bbaf9"
3484+
integrity sha512-bt+Sh8CtDmn2OajxvNO+BX7Wn4CIWMpTRm3MaiKPCQcnnlm0CS2mhui6QaoeQugs+3Kj2ESKEEGJUdVafwhiCg==
3485+
34743486
eslint-scope@^5.1.1:
34753487
version "5.1.1"
34763488
resolved "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz"

0 commit comments

Comments
 (0)