-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.eslintrc.yaml
70 lines (47 loc) · 1.09 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
---
root: true
extends:
- airbnb-base
- plugin:import/typescript
- prettier
plugins:
- prettier
env:
node: true
browser: false
rules:
consistent-return: 0
import/extensions: 0
import/no-extraneous-dependencies:
- error
- peerDependencies: true
import/no-unresolved: 0
no-confusing-arrow: 0
no-param-reassign: 0
no-plusplus: 0
no-shadow: 0
prettier/prettier: error
overrides:
- files:
- '*.ts'
- '*.tsx'
parser: '@typescript-eslint/parser'
plugins:
- '@typescript-eslint'
extends:
- 'plugin:@typescript-eslint/eslint-recommended'
- 'plugin:@typescript-eslint/recommended'
rules:
'@typescript-eslint/no-explicit-any': 0
'@typescript-eslint/no-use-before-define': 0
'@typescript-eslint/no-shadow':
- error
'@typescript-eslint/ban-ts-comment': 0
no-use-before-define: 0
no-param-reassign: 0
# airbnb 配置导致 tsx 文件引用一直报错
import/extensions:
- 'error'
- 'ignorePackages'
- ts: 'never'
tsx: 'never'