Skip to content

Commit

Permalink
feat(linter): updating config for import/order (type first), import s…
Browse files Browse the repository at this point in the history
…paces
  • Loading branch information
manoncarbonnel authored and dpellier committed Oct 26, 2023
1 parent e0f3c92 commit d586677
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
"root": true,
"rules": {
"@typescript-eslint/ban-types": "error",
"@typescript-eslint/consistent-indexed-object-style": "error",
"@typescript-eslint/explicit-function-return-type": "error",
"@typescript-eslint/no-explicit-any": "error",
"@typescript-eslint/no-unused-vars": ["error", { "varsIgnorePattern": "h" }],
Expand All @@ -45,6 +46,17 @@
"func-call-spacing": ["error", "never"],
"func-style": ["error", "declaration"],
"function-call-argument-newline": ["error", "consistent"],
"import/order": [ "error",
{
"groups": [
"type",
"builtin", // Built-in types are first
["sibling", "parent"], // Then sibling and parent types. They can be mingled together,
"index", // Then the index file,
"object"
]
}
],
"indent": ["error", 2],
"lines-between-class-members": ["error", "always", { "exceptAfterSingleLine": true }],
"max-depth": ["error", {"max": 4}],
Expand Down

0 comments on commit d586677

Please sign in to comment.