UNPKG

4.45 kBYAMLView Raw
1env:
2 node: true
3
4parserOptions:
5 ecmaVersion: 6
6
7rules:
8 # http://eslint.org/docs/rules/#possible-errors
9 comma-dangle:
10 - 2
11 - never
12 no-cond-assign: 2
13 no-console: 1
14 no-constant-condition: 2
15 no-control-regex: 2
16 no-debugger: 1
17 no-dupe-args: 2
18 no-dupe-keys: 2
19 no-duplicate-case: 2
20 no-empty-character-class: 2
21 no-empty: 2
22 no-ex-assign: 2
23 no-extra-boolean-cast: 2
24 no-extra-parens:
25 - 0
26 no-extra-semi: 2
27 no-func-assign: 2
28 no-inner-declarations: 2
29 no-invalid-regexp: 2
30 no-irregular-whitespace: 2
31 no-negated-in-lhs: 2
32 no-obj-calls: 2
33 no-regex-spaces: 2
34 no-reserved-keys: 0
35 no-sparse-arrays: 2
36 no-unreachable: 1
37 use-isnan: 2
38
39 valid-jsdoc: 0
40 valid-typeof: 2
41
42 # http://eslint.org/docs/rules/#best-practices
43 accessor-pairs:
44 - 2
45 - getWithoutSet: false
46 setWithoutGet: true
47 block-scoped-var: 2
48 complexity: 0
49 consistent-return: 0
50 curly:
51 - 2
52 - all
53 default-case: 0
54 dot-notation: 2
55 dot-location:
56 - 2
57 - property
58 eqeqeq: 2
59 guard-for-in: 0
60 no-alert: 1
61 no-caller: 2
62 no-div-regex: 0
63 no-else-return: 2
64 labeled: 0
65 no-eq-null: 2
66 no-eval: 2
67 no-extend-native: 2
68 no-extra-bind: 2
69 no-fallthrough: 2
70 no-floating-decimal: 2
71 no-implied-eval: 2
72 no-iterator: 2
73 no-labels: 2
74 no-lone-blocks: 2
75 no-loop-func: 2
76 no-multi-spaces: 2
77 no-native-reassign: 2
78 no-new-func: 2
79 no-new-wrappers: 2
80 no-new: 0
81 no-octal-escape: 2
82 no-octal: 2
83 no-param-reassign: 0
84 no-process-env: 0
85 no-proto: 0
86 no-redeclare: 2
87 no-return-assign: 2
88 no-script-url: 2
89 no-self-compare: 2
90 no-sequences: 2
91 no-throw-literal: 2
92 no-unused-expressions: 2
93 no-void: 2
94 no-warning-comments: 0
95 no-with: 2
96 radix: 0
97 vars-on-top: 0
98 wrap-iife:
99 - 2
100 - outside
101 yoda: 2
102
103 strict:
104 - 2
105 - global
106
107 # http://eslint.org/docs/rules/#variables
108 no-catch-shadow: 2
109 no-delete-var: 2
110 # Can't occur, because 'no-labels' is enabled.
111 no-label-var: 0
112 no-shadow-restricted-names: 2
113 no-shadow: 2
114 no-undef-init: 2
115 no-undef: 2
116 no-undefined: 0
117 no-unused-vars:
118 - 2
119 - vars: all
120 args: after-used
121 no-use-before-define: 0
122
123 # http://eslint.org/docs/rules/#nodejs
124 callback-return: 2
125 global-require: 2
126 handle-callback-err:
127 - 2
128 - ^(e|err|error)$
129 no-mixed-requires:
130 - 2
131 - true
132 no-new-require: 2
133 no-path-concat: 2
134 no-process-exit: 2
135 no-restricted-modules: 0
136 no-sync: 0
137
138 # http://eslint.org/docs/rules/#stylistic-issues
139 brace-style:
140 - 2
141 - 1tbs
142 - allowSingleLine: false
143 camelcase:
144 - 2
145 - properties: always
146 comma-spacing:
147 - 2
148 - before: false
149 after: true
150 comma-style:
151 - 2
152 - last
153 computed-property-spacing:
154 - 2
155 - never
156 consistent-this:
157 - 0
158 eol-last: 2
159 func-names: 0
160 func-style:
161 - 2
162 - declaration
163 indent:
164 - 2
165 - 4
166 - SwitchCase: 1
167
168 # http://eslint.org/docs/rules/keyword-spacing.html
169 keyword-spacing:
170 - 2
171 - before: true
172 after: true
173 overrides: {}
174 key-spacing:
175 - 2
176 - beforeColon: false
177 afterColon: true
178 lines-around-comment: 0
179 linebreak-style:
180 - 2
181 - unix
182 max-nested-callbacks: 0
183 new-cap: 2
184 new-parens: 2
185 newline-after-var: 0
186 no-array-constructor: 2
187 no-continue: 0
188 no-lonely-if: 2
189 # Implied by 'indent'
190 no-mixed-spaces-and-tabs: 0
191 no-multiple-empty-lines:
192 - 2
193 - max: 2
194 no-nested-ternary: 2
195 no-new-object: 2
196 no-spaced-func: 2
197 no-ternary: 0
198 no-trailing-spaces: 2
199 no-underscore-dangle: 0
200 no-unneeded-ternary: 2
201 object-curly-spacing:
202 - 2
203 - never
204 one-var:
205 - 2
206 - never
207 operator-assignment:
208 - 2
209 - always
210 operator-linebreak:
211 - 2
212 - after
213 padded-blocks:
214 - 2
215 - never
216 quote-props:
217 - 2
218 - as-needed
219 quotes:
220 - 2
221 - single
222 - avoid-escape
223 semi-spacing:
224 - 2
225 - before: false
226 after: true
227 semi: 2
228 sort-vars:
229 - 2
230 - ignoreCase: true
231 space-before-blocks:
232 - 2
233 - always
234 space-before-function-paren:
235 - 2
236 - never
237 space-in-parens:
238 - 2
239 - never
240 space-infix-ops: 2
241 space-unary-ops:
242 - 2
243 - words: true
244 nonwords: false
245 spaced-comment:
246 - 1
247 - always
248 wrap-regex: 0
249
250 # http://eslint.org/docs/rules/#legacy
251 max-depth: 0
252 max-len:
253 - 0
254 - 120
255 - 4
256 - ignoreComments: false
257 ignoreUrls: true
258 max-params: 0
259 max-statements: 0
260 no-bitwise: 0
261 no-plusplus: 0