Skip to content

Commit

Permalink
Use simple-import-sort plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
razor-x committed Dec 25, 2023
1 parent 0ebb346 commit 9caeb81
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 14 deletions.
27 changes: 13 additions & 14 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,24 +1,23 @@
{
"root": true,
"extends": ["standard", "prettier"],
"plugins": ["simple-import-sort", "unused-imports"],
"rules": {
"no-console": "warn",
"import/extensions": ["error", "ignorePackages"],
"sort-imports": [
"no-console": "error",
"unused-imports/no-unused-imports": "error",
"unused-imports/no-unused-vars": [
"error",
{
"ignoreDeclarationSort": true,
"allowSeparatedGroups": true
"vars": "all",
"varsIgnorePattern": "^_",
"args": "after-used",
"argsIgnorePattern": "^_",
"ignoreRestSiblings": true
}
],
"import/order": [
"error",
{
"newlines-between": "always",
"alphabetize": {
"order": "asc"
}
}
]
"import/extensions": ["error", "ignorePackages"],
"import/no-duplicates": ["error", { "prefer-inline": true }],
"simple-import-sort/imports": "error",
"simple-import-sort/exports": "error"
}
}
41 changes: 41 additions & 0 deletions package-lock.json

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

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@
"eslint": "^8.9.0",
"eslint-config-prettier": "^9.1.0",
"eslint-config-standard": "^17.0.0",
"eslint-plugin-simple-import-sort": "^10.0.0",
"eslint-plugin-unused-imports": "^3.0.0",
"landlubber": "^1.0.0",
"prettier": "^3.1.1"
}
Expand Down

0 comments on commit 9caeb81

Please sign in to comment.