Skip to content

Commit

Permalink
feat(lint): Add unused-imports eslint plugin (#21750)
Browse files Browse the repository at this point in the history
  • Loading branch information
webjunkie authored Apr 23, 2024
1 parent 4d5a5c5 commit 5c80885
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ module.exports = {
'posthog',
'simple-import-sort',
'import',
"unused-imports"
],
rules: {
// PyCharm always adds curly braces, I guess vscode doesn't, PR reviewers often complain they are present on props that don't need them
Expand All @@ -73,6 +74,7 @@ module.exports = {
html: true,
},
],
"unused-imports/no-unused-imports": "error",
'no-unused-vars': 'off',
'@typescript-eslint/no-unused-vars': [
'error',
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,7 @@
"eslint-plugin-react": "^7.33.2",
"eslint-plugin-simple-import-sort": "^10.0.0",
"eslint-plugin-storybook": "^0.6.15",
"eslint-plugin-unused-imports": "^3.1.0",
"file-loader": "^6.1.0",
"givens": "^1.3.6",
"history": "^5.0.1",
Expand Down
23 changes: 23 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 5c80885

Please sign in to comment.