Skip to content

Commit

Permalink
Configure eslint-plugin-import (#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
kangasta committed Aug 2, 2023
1 parent 118602b commit c4a50e0
Show file tree
Hide file tree
Showing 12 changed files with 1,572 additions and 59 deletions.
18 changes: 18 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,17 @@
},
"extends": [
"eslint:recommended",
"plugin:import/recommended",
"plugin:import/typescript",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
],
"settings": {
"import/resolver": {
"typescript": true,
"node": true
}
},
"rules": {
"@typescript-eslint/no-unused-vars": [
"error",
Expand All @@ -16,6 +24,16 @@
"varsIgnorePattern": "^_",
"caughtErrorsIgnorePattern": "^_$"
}
],
"import/no-default-export": "error",
"import/order": [
"error",
{
"alphabetize": {
"order": "asc"
},
"newlines-between": "always"
}
]
}
}

0 comments on commit c4a50e0

Please sign in to comment.