Skip to content

Commit

Permalink
feat: config eslint import plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
Loxeris committed Apr 12, 2024
1 parent 5a168f7 commit c46999a
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 25 deletions.
13 changes: 12 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,17 @@
{
"extends": ["next/core-web-vitals", "prettier"],
"extends": [
"next/core-web-vitals",
"prettier",
"plugin:import/recommended",
"plugin:import/typescript"
],
"globals": {
"JSX": "readonly"
},
"plugins": ["import"],
"rules": {
"import/order": ["warn"],
"import/no-unused-modules": ["warn"],
"import/no-useless-path-segments": ["warn"]
}
}
64 changes: 40 additions & 24 deletions package-lock.json

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

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
"eslint": "^8.56.0",
"eslint-config-next": "^14.1.3",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-import": "^2.29.1",
"husky": "^9.0.11",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
Expand Down

0 comments on commit c46999a

Please sign in to comment.