Skip to content

Commit

Permalink
Switch to eslint-based import sorting
Browse files Browse the repository at this point in the history
Instead of VS Code
  • Loading branch information
ejizba committed Nov 7, 2023
1 parent 883594c commit 68d3b7d
Show file tree
Hide file tree
Showing 4 changed files with 1,990 additions and 58 deletions.
16 changes: 14 additions & 2 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
"plugins": [
"@typescript-eslint",
"header",
"deprecation"
"deprecation",
"simple-import-sort",
"import"
],
"parserOptions": {
"project": "tsconfig.json",
Expand Down Expand Up @@ -39,7 +41,17 @@
"no-return-await": "off",
"@typescript-eslint/return-await": "error",
"eqeqeq": "error",
"@typescript-eslint/no-empty-function": "off"
"@typescript-eslint/no-empty-function": "off",
"simple-import-sort/imports": [
"error",
{
"groups": [["^\\u0000", "^node:", "^@?\\w", "^", "^\\."]]
}
],
"simple-import-sort/exports": "error",
"import/first": "error",
"import/newline-after-import": "error",
"import/no-duplicates": "error"
},
"ignorePatterns": [
"**/*.js",
Expand Down
1 change: 0 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"azureFunctions.showProjectWarning": false,
"editor.codeActionsOnSave": [
"source.organizeImports",
"source.fixAll"
],
"typescript.tsdk": "node_modules/typescript/lib",
Expand Down
Loading

0 comments on commit 68d3b7d

Please sign in to comment.