This repository has been archived by the owner on Oct 6, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 488
/
.eslintrc.yml
175 lines (173 loc) · 3.4 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
env:
es6: true
node: true
parserOptions:
ecmaVersion: 6
sourceType: module
rules:
accessor-pairs: warn
arrow-spacing:
- warn
- after: true
before: true
block-scoped-var: error
brace-style:
- warn
- 1tbs
- allowSingleLine: true
callback-return:
- warn
- [callback, cb, next]
constructor-super: error
curly:
- error
- all
dot-location:
- warn
- property
dot-notation: warn
eol-last: warn
eqeqeq:
- warn
- allow-null
handle-callback-err:
- warn
- "^(err|error)$"
keyword-spacing: warn
linebreak-style:
- error
- unix
indent:
- warn
- 2
- SwitchCase: 1
max-lines:
- warn
- max: 2000
skipBlankLines: true
skipComments: true
max-statements-per-line:
- warn
- max: 2
new-parens: warn
no-alert: warn
no-caller: error
no-case-declarations: warn
no-class-assign: warn
no-cond-assign:
- warn
- except-parens
no-confusing-arrow:
- warn
- allowParens: true
no-const-assign: error
no-constant-condition: warn
no-debugger: error
no-delete-var: warn
no-dupe-args: error
no-dupe-class-members: error
no-dupe-keys: error
no-duplicate-imports: warn
no-empty: warn
no-empty-character-class: warn
no-empty-function:
- warn
- allow:
- arrowFunctions
no-empty-pattern: warn
no-eval: error
no-ex-assign: warn
no-extend-native: error
no-extra-bind: warn
no-extra-boolean-cast: warn
no-extra-label: warn
no-extra-semi: warn
no-fallthrough: warn
no-floating-decimal: warn
no-func-assign: warn
no-implicit-globals: warn
no-implied-eval: error
no-inner-declarations: warn
no-invalid-regexp: error
no-irregular-whitespace: error
no-label-var: warn
no-labels: warn
no-mixed-operators: warn
no-mixed-spaces-and-tabs: error
no-native-reassign: error
no-negated-condition: warn
no-negated-in-lhs: error
no-nested-ternary: warn
no-new-func: error
no-new-object: warn
no-new-require: warn
no-new-symbol: error
no-new-wrappers: warn
no-obj-calls: error
no-octal: error
no-octal-escape: warn
no-path-concat: warn
no-process-exit: warn
no-proto: error
no-prototype-builtins: warn
no-redeclare: warn
no-regex-spaces: warn
no-script-url: error
no-self-assign: warn
no-self-compare: warn
no-sequences: warn
no-shadow-restricted-names: error
no-spaced-func: warn
no-sparse-arrays: warn
no-this-before-super: error
no-throw-literal: error
no-undef: error
no-undef-init: warn
no-unexpected-multiline: error
no-unmodified-loop-condition: warn
no-unneeded-ternary: warn
no-unreachable: warn
no-unsafe-finally: warn
no-unused-labels: warn
no-unused-vars: warn
no-use-before-define:
- error
- nofunc
no-useless-call: warn
no-useless-computed-key: warn
no-useless-constructor: warn
no-useless-escape: warn
no-useless-rename: warn
no-var: warn
no-warning-comments:
- warn
- location: start
terms:
- fixme
- xxx
no-whitespace-before-property: warn
no-with: error
one-var:
- warn
- never
prefer-rest-params: warn
prefer-spread: warn
quotes: off
radix: error
rest-spread-spacing:
- warn
- never
semi: warn
space-infix-ops: warn
space-unary-ops:
- warn
- words: true
nonwords: false
unicode-bom:
- error
- never
use-isnan: warn
valid-typeof: warn
wrap-iife:
- warn
- any