forked from dstoyanoff/directus-auto-migrate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
51 lines (51 loc) · 1.52 KB
/
.eslintrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
{
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:import/errors",
"plugin:import/typescript"
],
"globals": { "JSX": "readonly" },
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint", "import"],
"root": true,
"rules": {
"@typescript-eslint/semi": ["error"],
"import/order": [
"error",
{
"alphabetize": {
"caseInsensitive": true,
"order": "asc"
},
"groups": ["external", "builtin", "parent", ["sibling", "index"]],
"newlines-between": "never",
"pathGroupsExcludedImportTypes": ["builtin"]
}
],
"max-depth": "error",
"max-nested-callbacks": ["error", 4],
"max-statements-per-line": ["error", { "max": 1 }],
"no-array-constructor": "error",
"no-console": "error",
"no-duplicate-imports": "error",
"no-lonely-if": "error",
"no-multi-assign": "error",
"no-negated-condition": "error",
"no-nested-ternary": "error",
"no-restricted-syntax": ["error", "ClassDeclaration", "ClassExpression"],
"no-unneeded-ternary": "error",
"no-useless-computed-key": "error",
"no-useless-rename": "error",
"no-var": "error",
"object-shorthand": "error",
"prefer-const": "error",
"prefer-destructuring": "error",
"prefer-object-spread": "error",
"prefer-rest-params": "error",
"prefer-spread": "error",
"prefer-template": "error",
"unicode-bom": "error"
}
}