-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.yml
187 lines (187 loc) · 3.88 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
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
env:
browser: true
commonjs: true
es6: true
node: true
extends: 'eslint:recommended'
globals:
Atomics: readonly
SharedArrayBuffer: readonly
parserOptions:
ecmaVersion: 2018
rules:
indent:
- error
- 4
- SwitchCase: 1
linebreak-style: error
quotes:
- error
- single
- avoidEscape: true
semi:
- error
- always
no-constant-condition:
- error
- checkLoops: false
no-prototype-builtins: off
max-len:
- error
- code: 120
multiline-ternary:
- error
- always-multiline
no-template-curly-in-string: error
array-callback-return: error
consistent-return: error
default-case: error
guard-for-in: error
no-extend-native: error
curly: error
dot-location:
- error
- property
eqeqeq:
- error
- always
- null: ignore
no-else-return:
- error
- allowElseIf: false
no-floating-decimal: error
no-implicit-globals: error
no-invalid-this: error
no-lone-blocks: error
no-loop-func: error
no-multi-spaces: error
no-restricted-properties:
- error
- object: _
property: extend
- object: _
property: each
- object: $
property: extend
- object: $
property: each
no-return-await: error
no-self-compare: error
no-self-assign: error
no-sequences: error
no-throw-literal: error
no-unmodified-loop-condition: error
no-unused-expressions: error
require-await: error
#strict: error
no-shadow-restricted-names: error
no-use-before-define:
- error
- functions: false
callback-return:
- error
- [callback, cb, next, done]
global-require: error
handle-callback-err: error
no-buffer-constructor: error
no-mixed-requires: error
no-new-require: error
array-bracket-newline: error
array-bracket-spacing: error
array-element-newline:
- error
- consistent
block-spacing: error
brace-style:
- error
- stroustrup
camelcase:
- error
- properties: never
comma-dangle:
- error
- arrays: always-multiline
objects: always-multiline
imports: always-multiline
exports: always-multiline
functions: never
comma-spacing: error
comma-style: error
computed-property-spacing:
- error
- never
eol-last: error
func-call-spacing: error
function-call-argument-newline:
- error
- consistent
function-paren-newline:
- error
- multiline-arguments
implicit-arrow-linebreak: error
key-spacing: error
lines-around-comment: error
lines-between-class-members: error
max-depth:
- error
- 5
max-nested-callbacks:
- error
- 5
max-params: error
max-statements-per-line: error
new-cap: error
new-parens: error
newline-per-chained-call: error
no-array-constructor: error
no-multi-assign: error
no-multiple-empty-lines: error
no-new-object: error
no-lonely-if: error
no-tabs: error
no-trailing-spaces: error
no-unneeded-ternary: error
no-whitespace-before-property: error
nonblock-statement-body-position: error
object-curly-newline:
- error
- multiline: true
consistent: true
object-curly-spacing: error
one-var:
- error
- never
operator-assignment: error
operator-linebreak: error
padded-blocks:
- error
- classes: always
semi-spacing: error
semi-style: error
space-before-blocks: error
space-before-function-paren:
- error
- anonymous: always
named: never
asyncArrow: always
space-in-parens: error
space-infix-ops: error
space-unary-ops:
- error
- words: true
nonwords: false
spaced-comment: error
switch-colon-spacing: error
unicode-bom: error
no-confusing-arrow: error
no-duplicate-imports: error
no-useless-computed-key: error
no-var: error
object-shorthand: error
prefer-const:
- error
- destructuring: all
prefer-rest-params: error
prefer-spread: error
rest-spread-spacing: error
template-curly-spacing: error