-
Notifications
You must be signed in to change notification settings - Fork 60k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add ESLint plugin and rules to remove unused imports
- Installed eslint-plugin-unused-imports - Updated .eslintrc.json to include rules for detecting unused imports
- Loading branch information
1 parent
f379865
commit a358568
Showing
3 changed files
with
17 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
{ | ||
"extends": "next/core-web-vitals", | ||
"plugins": ["prettier"] | ||
"plugins": ["prettier", "unused-imports"], | ||
"rules": { | ||
"unused-imports/no-unused-imports": "warn" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3367,6 +3367,18 @@ eslint-plugin-react@^7.31.7: | |
semver "^6.3.0" | ||
string.prototype.matchall "^4.0.8" | ||
|
||
eslint-plugin-unused-imports@^3.2.0: | ||
version "3.2.0" | ||
resolved "https://registry.yarnpkg.com/eslint-plugin-unused-imports/-/eslint-plugin-unused-imports-3.2.0.tgz#63a98c9ad5f622cd9f830f70bc77739f25ccfe0d" | ||
integrity sha512-6uXyn6xdINEpxE1MtDjxQsyXB37lfyO2yKGVVgtD7WEWQGORSOZjgrD6hBhvGv4/SO+TOlS+UnC6JppRqbuwGQ== | ||
dependencies: | ||
eslint-rule-composer "^0.3.0" | ||
|
||
eslint-rule-composer@^0.3.0: | ||
version "0.3.0" | ||
resolved "https://registry.yarnpkg.com/eslint-rule-composer/-/eslint-rule-composer-0.3.0.tgz#79320c927b0c5c0d3d3d2b76c8b4a488f25bbaf9" | ||
integrity sha512-bt+Sh8CtDmn2OajxvNO+BX7Wn4CIWMpTRm3MaiKPCQcnnlm0CS2mhui6QaoeQugs+3Kj2ESKEEGJUdVafwhiCg== | ||
|
||
[email protected]: | ||
version "5.1.1" | ||
resolved "https://registry.npmmirror.com/eslint-scope/-/eslint-scope-5.1.1.tgz#e786e59a66cb92b3f6c1fb0d508aab174848f48c" | ||
|