-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc.yml
66 lines (60 loc) · 1.43 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
env:
node : true
browser : true
es2021 : true
extends:
- eslint:recommended
- plugin:react/recommended
- plugin:react/jsx-runtime
- standard-with-typescript
overrides : []
parserOptions:
ecmaVersion : latest
ecmaFeatures:
jsx: true
sourceType : module
project:
- tsconfig.json
rules:
semi : [ 2, never ]
one-var : off
return-await : off
indent : off
no-multi-spaces : off
operator-linebreak : off
array-bracket-spacing:
- error
- always
key-spacing:
- error
- multiLine:
beforeColon : false
afterColon : true
align:
beforeColon : true
afterColon : true
"@typescript-eslint/indent": off
"@typescript-eslint/return-await": [ 1, "in-try-catch" ]
"@typescript-eslint/no-base-to-string": off
"@typescript-eslint/naming-convention": off
"@typescript-eslint/explicit-function-return-type": off
"@typescript-eslint/no-unused-vars":
- error
- varsIgnorePattern: ^_
"@typescript-eslint/no-invalid-void-type":
- "error"
- allowInGenericTypeArguments: true
"@typescript-eslint/type-annotation-spacing":
- "error"
- before : true
after : true
overrides:
arrow:
before : true
after : true
settings:
react:
version: detect
ignorePatterns:
- dist
- test