-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.yaml
262 lines (261 loc) · 5.27 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
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
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
---
parser: babel-eslint
parserOptions:
ecmaVersion: 9
sourceType: module
plugins:
- import
- svelte3
- promise
overrides:
- files:
- '**/*.svelte'
processor: 'svelte3/svelte3'
env:
es6: true
browser: true
rules:
import/no-commonjs: off
import/unambiguous: off
import/named: error
import/default: error
import/namespace: error
import/no-restricted-paths: error
import/no-absolute-path: error
import/no-webpack-loader-syntax: error
import/export: error
import/no-named-as-default: error
import/no-named-as-default-member: error
import/no-deprecated: error
import/no-extraneous-dependencies: error
import/no-amd: error
import/no-namespace: error
import/newline-after-import: error
import/max-dependencies:
- error
- max: 25
import/no-named-default:
- error
camelcase:
- error
- off
- properties: always
no-console:
- error
- allow:
- error
strict:
- error
- global
indent:
- error
- 2
- SwitchCase: 1
quotes:
- error
- single
linebreak-style:
- error
- unix
semi:
- error
- always
no-trailing-spaces:
- error
- skipBlankLines: false
vars-on-top: error
max-len:
- error
- 100
- ignoreStrings: true
spaced-comment:
- off
comma-dangle:
- error
- always-multiline
dot-notation:
- error
- allowKeywords: true
allowPattern: ""
dot-location:
- error
- property
eqeqeq: error
no-eq-null: error
no-eval: error
no-extend-native: error
no-native-reassign: error
no-extra-bind: error
no-floating-decimal: error
no-implied-eval: error
no-loop-func: error
no-multi-spaces:
- error
- ignoreEOLComments: true
no-multi-str: error
no-param-reassign: error
no-return-assign: error
no-self-compare: error
no-sequences: error
no-throw-literal: error
no-unused-expressions: error
no-void: error
no-with: error
radix: error
wrap-iife:
- error
- outside
no-implicit-coercion:
- error
- boolean: true
number: true
string: true
one-var:
- error
- never
no-constant-condition: 1
no-warning-comments:
- warn
- terms:
- todo
- fixme
- xxx
location: anywhere
array-bracket-spacing:
- error
- never
no-return-await:
- error
brace-style:
- error
- 1tbs
- allowSingleLine: true
comma-spacing:
- error
- before: false
after: true
comma-style:
- error
- last
computed-property-spacing:
- error
- never
consistent-this:
- error
- self
eol-last: error
no-array-constructor: error
no-nested-ternary: error
no-new-object: error
no-spaced-func: error
space-before-function-paren:
- error
- anonymous: never
named: never
space-before-blocks:
- error
- always
block-spacing:
- error
space-in-parens:
- error
- never
space-infix-ops: error
space-unary-ops:
- error
- words: true
nonwords: false
keyword-spacing:
- error
- before: true
after: true
semi-spacing:
- error
- before: false
after: true
padded-blocks:
- error
- never
operator-linebreak:
- error
- after
- overrides:
"?": before
":": before
operator-assignment:
- error
- always
object-curly-spacing:
- error
- never
curly:
- error
no-unneeded-ternary: error
wrap-regex: error
no-lone-blocks: error
no-lonely-if: error
no-continue: error
no-inline-comments: off
func-names: off
func-style:
- error
- declaration
- allowArrowFunctions: true
id-length:
- off
- min: 3
max: 10
exceptions:
- x
key-spacing:
- error
- beforeColon: false
afterColon: true
#align: value
max-nested-callbacks:
- error
- 3
no-multiple-empty-lines:
- error
- max: 2
arrow-body-style:
- error
- as-needed
arrow-parens:
- error
- as-needed
arrow-spacing:
- error
- before: true
after: true
constructor-super: error
no-useless-constructor: error
generator-star-spacing:
- error
- before: true
after: false
no-class-assign: error
no-const-assign: error
no-dupe-class-members: error
no-duplicate-imports: error
no-new-symbol: error
no-this-before-super: error
no-useless-computed-key: error
prefer-const: error
require-yield: error
template-curly-spacing: error
prefer-template: off
prefer-rest-params: error
global-require: error
yield-star-spacing:
- error
- before
prefer-arrow-callback: error
no-var: error
object-shorthand: error
prefer-spread: error
promise/param-names: error
promise/always-return: 0
promise/catch-or-return: 0
promise/no-native: 0
extends: eslint:recommended