-
-
Notifications
You must be signed in to change notification settings - Fork 10
/
.eslintrc.yml
executable file
·46 lines (46 loc) · 1.59 KB
/
.eslintrc.yml
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
extends:
- eslint:recommended
- plugin:@typescript-eslint/recommended
plugins:
- import
root: true
rules:
"@typescript-eslint/ban-tslint-comment": error
"@typescript-eslint/explicit-module-boundary-types": off
"@typescript-eslint/no-explicit-any": off
"@typescript-eslint/no-namespace": [ error ]
"@typescript-eslint/no-unused-vars": off
"arrow-spacing": [ error, { before: true, after: true } ]
"block-spacing": [ error, always ]
"comma-style": [ error, last ]
"comma-dangle": [
error,
{
arrays: "always-multiline",
objects: "always-multiline",
imports: "always-multiline",
exports: "always-multiline",
functions: "always-multiline",
},
]
"import/order": [
error,
{
alphabetize: { order: asc },
groups: [ builtin, external, parent, sibling ],
newlines-between: always,
},
]
"key-spacing": [ error, { beforeColon: false, afterColon: true, mode: minimum } ]
"keyword-spacing": [ error, { before: true, after: true } ]
"no-console": error
"no-constant-condition": error
"no-duplicate-imports": [ error, { includeExports: true } ]
"no-unused-vars": off # Should be turned off when using @typescript-eslint.
"no-unused-expressions": error
"no-var": error
"prefer-const": error
"quotes": [ error, "double", { allowTemplateLiterals: true, avoidEscape: true } ]
"semi-spacing": [ error, { before: false, after: true } ]
"semi": [ error, always ]
"spaced-comment": [ error, always ]