Skip to content

Commit

Permalink
Sort and group imports (#104)
Browse files Browse the repository at this point in the history
  • Loading branch information
kangasta authored Oct 21, 2023
1 parent 10f172d commit 04ee50c
Show file tree
Hide file tree
Showing 20 changed files with 455 additions and 50 deletions.
25 changes: 25 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,17 @@ module.exports = {
parser: "@typescript-eslint/parser",
extends: [
"eslint:recommended",
"plugin:import/recommended",
"plugin:import/typescript",
"plugin:@typescript-eslint/recommended",
"plugin:svelte/recommended"
],
settings: {
"import/resolver": {
typescript: true,
node: true
}
},
plugins: [
"@typescript-eslint"
],
Expand All @@ -20,5 +28,22 @@ module.exports = {
rules: {
'no-console': 'error',
'no-undef': 'off',
"@typescript-eslint/no-unused-vars": [
"error",
{
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^_",
"caughtErrorsIgnorePattern": "^_$"
}
],
"import/order": [
"error",
{
"alphabetize": {
"order": "asc"
},
"newlines-between": "always"
}
]
},
};
Loading

0 comments on commit 04ee50c

Please sign in to comment.