Skip to content

Commit 8515197

Browse files
committed
chore: Remove unused imports as part of linting
1 parent dde6e41 commit 8515197

File tree

3 files changed

+21
-2
lines changed

3 files changed

+21
-2
lines changed

.eslintrc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"jsx": true
1414
}
1515
},
16-
"plugins": ["react-hooks", "react", "header", "@eslint-react/eslint-plugin", "eslint-plugin-simple-import-sort"],
16+
"plugins": ["react-hooks", "react", "header", "@eslint-react/eslint-plugin", "eslint-plugin-simple-import-sort", "eslint-plugin-unused-imports"],
1717
"rules": {
1818
"@typescript-eslint/interface-name-prefix": "off",
1919
"@typescript-eslint/no-explicit-any": "off",
@@ -35,7 +35,8 @@
3535
"react/prop-types": "off",
3636
"react/no-unescaped-entities": "off",
3737
"react-hooks/rules-of-hooks": "error",
38-
"react-hooks/exhaustive-deps": "warn"
38+
"react-hooks/exhaustive-deps": "warn",
39+
"unused-imports/no-unused-imports": "error"
3940
},
4041
"settings": {
4142
"react": {

package-lock.json

Lines changed: 17 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@
6262
"eslint-plugin-react": "^7.30.1",
6363
"eslint-plugin-react-hooks": "^4.6.0",
6464
"eslint-plugin-simple-import-sort": "^12.1.1",
65+
"eslint-plugin-unused-imports": "^4.2.0",
6566
"highcharts": "^12.2.0",
6667
"husky": "^8.0.1",
6768
"jest": "^29.7.0",

0 commit comments

Comments
 (0)