-
Notifications
You must be signed in to change notification settings - Fork 22
/
.eslintrc.yml
163 lines (156 loc) · 2.69 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
extends:
- eslint:recommended
globals:
globalThis: true
assert: true
expect: true
should: true
process: true
env:
es6: true
browser: true
node: true
plugins:
- babel
parser: babel-eslint
parserOptions:
sourceType: module
ecmaFeatures:
jsx: true
generators: false
objectLiteralDuplicateProperties: false
rules:
quotes:
- 1
- single
semi:
- 1
- always
indent:
- 1
- 4
- SwitchCase: 1
func-names: 0
prefer-const: 0
space-before-function-paren:
- 1
- anonymous: never
named: never
asyncArrow: always
no-proto: 0
no-param-reassign: 0
quote-props:
- 1
- consistent-as-needed
radix: 0
no-new-func: 0
arrow-body-style:
- 2
- as-needed
arrow-parens: 0
arrow-spacing:
- 2
- before: true
after: true
comma-dangle:
- 1
- always-multiline
constructor-super: 0
generator-star-spacing: 0
getter-return: 1
no-class-assign: 0
no-confusing-arrow:
- 2
- allowParens: true
no-const-assign: 2
no-new-symbol: 2
no-restricted-globals: 0
no-restricted-imports: 0
no-this-before-super: 0
no-var: 2
no-useless-constructor: 2
object-shorthand:
- 1
- always
prefer-arrow-callback: 2
prefer-spread: 0
prefer-reflect: 0
prefer-rest-params: 2
prefer-template: 1
require-yield: 0
sort-imports: 0
template-curly-spacing: 2
yield-star-spacing:
- 2
- after
max-depth:
- 0
- 4
max-params:
- 0
- 3
max-statements:
- 0
- 10
no-bitwise: 0
no-plusplus: 0
no-unused-vars:
- 1
no-console:
- 1
require-atomic-updates:
- 0
overrides:
- files:
- '*.spec.js'
- '*.spec.jsx'
- '*.spec.ts'
- '*.spec.tsx'
- '*.specs.js'
- '*.specs.jsx'
- '*.specs.ts'
- '*.specs.tsx'
- '*.test.js'
- '*.test.jsx'
- '*.test.ts'
- '*.test.tsx'
- '*.tests.js'
- '*.tests.jsx'
- '*.tests.ts'
- '*.tests.tsx'
- '*.unit.js'
- '*.unit.jsx'
- '*.unit.ts'
- '*.unit.tsx'
- '*.e2e.js'
- '*.e2e.jsx'
- '*.e2e.ts'
- '*.e2e.tsx'
- 'test/**/*.js'
- 'test/**/*.jsx'
- 'test/**/*.ts'
- 'test/**/*.tsx'
- 'tests/**/*.js'
- 'tests/**/*.jsx'
- 'tests/**/*.ts'
- 'tests/**/*.tsx'
- 'unit/**/*.js'
- 'unit/**/*.jsx'
- 'unit/**/*.ts'
- 'unit/**/*.tsx'
- 'e2e/**/*.js'
- 'e2e/**/*.jsx'
- 'e2e/**/*.ts'
- 'e2e/**/*.tsx'
env:
es6: true
browser: true
node: true
mocha: true
plugins:
- babel
- mocha
- mocha-no-only
rules:
mocha-no-only/mocha-no-only:
- 1