-
Notifications
You must be signed in to change notification settings - Fork 5
/
.eslintrc.yaml
72 lines (71 loc) · 1.96 KB
/
.eslintrc.yaml
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
env:
browser: true
node: true
parser: "@typescript-eslint/parser"
parserOptions:
project: ["tsconfig.json"]
sourceType: module
plugins:
- "@typescript-eslint"
extends:
- eslint:recommended
- plugin:@typescript-eslint/eslint-recommended
- plugin:@typescript-eslint/recommended
rules:
camelcase: error
comma-dangle: [error, always-multiline]
# curly: [error, multi-or-nest]
eol-last: error
id-match: error
new-parens: error
no-caller: error
no-cond-assign: error
no-constant-condition: error
no-control-regex: error
no-duplicate-imports: error
no-empty: error
no-eval: error
no-fallthrough: error
no-invalid-regexp: error
no-multiple-empty-lines: error
no-redeclare: error
no-regex-spaces: error
no-return-await: error
no-trailing-spaces: error
no-unused-expressions:
- error
- allowTaggedTemplates: true
allowShortCircuit: true
no-unused-labels: error
no-var: error
one-var:
- error
- never
space-in-parens:
- error
- never
spaced-comment:
- error
- always
- exceptions: ["-", "+"]
use-isnan: error
# @typescript-eslint related
space-before-function-paren: "off"
"@typescript-eslint/explicit-function-return-type": "off"
"@typescript-eslint/no-empty-interface": "off"
"@typescript-eslint/no-use-before-define": "off"
"@typescript-eslint/consistent-type-assertions": error
"@typescript-eslint/no-floating-promises": error
"@typescript-eslint/no-misused-new": error
"@typescript-eslint/no-unnecessary-qualifier": error
"@typescript-eslint/no-unnecessary-type-assertion": error
"@typescript-eslint/prefer-namespace-keyword": error
"@typescript-eslint/no-explicit-any": off
"@typescript-eslint/type-annotation-spacing": error
"@typescript-eslint/unified-signatures": error
"@typescript-eslint/quotes": [error, single, { avoidEscape: true }]
"@typescript-eslint/space-before-function-paren":
- error
- named: never
anonymous: always
asyncArrow: always