-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.yml
190 lines (182 loc) · 3.38 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
188
189
190
parser: esprima
parserOptions:
sourceType: module
ecmaFeatures:
classes: true
modules: true
blockBindings: true
forOf: true
plugins:
- unicorn
- mocha-no-only
- import
env:
node: true
es6: true
mocha: true
rules:
# [Possible errors]
comma-dangle:
- error
- always-multiline
no-cond-assign: error
no-constant-condition: error
no-dupe-args: error
no-dupe-keys: error
no-duplicate-case: error
no-empty: warn
no-extra-boolean-cast: error
no-extra-semi: error
no-func-assign: error
no-inner-declarations: error
no-invalid-regexp: error
no-irregular-whitespace: error
no-negated-in-lhs: error
no-obj-calls: error
no-sparse-arrays: error
use-isnan: error
valid-typeof: error
no-unexpected-multiline: error
no-unreachable: warn
# [Best practices]
no-lone-blocks: warn
no-multi-spaces: error
no-native-reassign: error
no-new: warn
no-redeclare: error
no-self-compare: error
no-sequences: error
no-unused-expressions: error
no-with: error
wrap-iife: error
dot-notation:
- error
- allowKeywords: true
no-eval: error
no-alert: warn
eqeqeq:
- error
- allow-null
curly:
- error
- all
# [Variables]
no-shadow-restricted-names: error
no-shadow: error
no-undef-init: error
no-undef: error
no-undefined: warn
no-unused-vars: warn
no-use-before-define: error
# Stylistic issues
array-bracket-spacing:
- error
- never
# block-spacing:
# - error
# - always
brace-style:
- error
- 1tbs
- allowSingleLine: true
# camelcase:
# - warn
# - properties: never
comma-spacing:
- error
- before: false
after: true
comma-style:
- error
- last
computed-property-spacing:
- error
- never
eol-last: error
# func-style:
# - error
# - declaration
# indent:
# - warn
# - 2
# - MemberExpression: 0
# flatTernaryExpressions: true
# ignoredNodes:
# - ConditionalExpression
key-spacing:
- error
- beforeColon: false
afterColon: true
# linebreak-style:
# - error
# - unix
new-cap:
- error
- capIsNew: false
new-parens: error
no-mixed-spaces-and-tabs: error
no-new-object: error
no-spaced-func: error
no-trailing-spaces: error
no-unneeded-ternary: error
object-curly-spacing:
- error
- always
one-var:
- error
- never
operator-assignment:
- warn
- always
operator-linebreak:
- error
- before
# padded-blocks:
# - warn
# - never
quotes:
- warn
- single
quote-props:
- error
- as-needed
- keywords: true
semi: error
semi-spacing:
- error
- before: false
after: true
space-before-blocks:
- error
- always
keyword-spacing: error
space-before-function-paren:
- error
- never
space-in-parens:
- error
- never
space-infix-ops: error
space-unary-ops: error
# [ES6]
arrow-parens:
- error
- always
arrow-spacing:
- error
- before: true
after: true
constructor-super: error
no-class-assign: error
no-const-assign: error
no-dupe-class-members: error
no-this-before-super: warn
no-var: error
# object-shorthand: error
# prefer-arrow-callback: error
# prefer-const: warn
prefer-spread: warn
# prefer-template: error
unicorn/no-abusive-eslint-disable: error
# [mocha]
mocha-no-only/mocha-no-only: error