Skip to content

Commit 5b7a353

Browse files
author
Pavel Romanov
committed
ignores
1 parent 2d8939f commit 5b7a353

File tree

2 files changed

+395
-0
lines changed

2 files changed

+395
-0
lines changed

.eslintignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/node_modules/
2+
*.development.*

.eslintrc

Lines changed: 393 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,393 @@
1+
{
2+
"parserOptions": {
3+
"ecmaVersion": 8,
4+
"ecmaFeatures": {
5+
"impliedStrict": true,
6+
"experimentalObjectRestSpread": true
7+
}
8+
},
9+
"extends": [
10+
"eslint:recommended",
11+
"google"
12+
],
13+
"env": {
14+
"es6": true,
15+
"browser": true,
16+
"node": true,
17+
"commonjs": true,
18+
"shared-node-browser": true,
19+
"mocha": true
20+
},
21+
"rules": {
22+
"array-callback-return": [
23+
"error"
24+
],
25+
"arrow-body-style": [
26+
"error",
27+
"as-needed"
28+
],
29+
"arrow-parens": [
30+
"error",
31+
"as-needed"
32+
],
33+
"arrow-spacing": [
34+
"error",
35+
{
36+
"before": true,
37+
"after": true
38+
}
39+
],
40+
"camelcase": [
41+
"error",
42+
{
43+
"properties": "always"
44+
}
45+
],
46+
"curly": [
47+
"error",
48+
"all"
49+
],
50+
"dot-location": [
51+
"error",
52+
"property"
53+
],
54+
"dot-notation": [
55+
"error"
56+
],
57+
"eqeqeq": [
58+
"error",
59+
"always"
60+
],
61+
"func-names": [
62+
"error",
63+
"as-needed"
64+
],
65+
"func-style": [
66+
"error",
67+
"expression"
68+
],
69+
"global-require": [
70+
"error"
71+
],
72+
"handle-callback-err": [
73+
"error"
74+
],
75+
"id-length": [
76+
"error",
77+
{
78+
"min": 2,
79+
"exceptions": ["i", "j"]
80+
}
81+
],
82+
"indent": [
83+
"error",
84+
4,
85+
{
86+
"SwitchCase": 1
87+
}
88+
],
89+
"max-depth": [
90+
"error",
91+
4
92+
],
93+
"max-len": [
94+
"error",
95+
120,
96+
4,
97+
{
98+
"ignoreComments": true,
99+
"ignoreUrls": true,
100+
"ignoreTrailingComments": true,
101+
"ignoreStrings": true,
102+
"ignoreRegExpLiterals": true,
103+
"ignorePattern": "true"
104+
}
105+
],
106+
"max-nested-callbacks": [
107+
"error",
108+
2
109+
],
110+
"max-params": [
111+
"error",
112+
5
113+
],
114+
"multiline-ternary": [
115+
"error",
116+
"always-multiline"
117+
],
118+
"new-parens": [
119+
"error"
120+
],
121+
"newline-per-chained-call": [
122+
"error",
123+
{
124+
"ignoreChainWithDepth": 3
125+
}
126+
],
127+
"no-alert": [
128+
"error"
129+
],
130+
"no-cond-assign": [
131+
"error"
132+
],
133+
"no-confusing-arrow": [
134+
"error",
135+
{
136+
"allowParens": true
137+
}
138+
],
139+
"no-duplicate-imports": [
140+
"error"
141+
],
142+
"no-else-return": [
143+
"error"
144+
],
145+
"no-empty-function": [
146+
"error"
147+
],
148+
"no-eq-null": [
149+
"error"
150+
],
151+
"no-eval": [
152+
"error"
153+
],
154+
"no-extra-label": [
155+
"error"
156+
],
157+
"no-floating-decimal": [
158+
"error"
159+
],
160+
"no-implicit-coercion": [
161+
"error",
162+
{
163+
"boolean": false,
164+
"number": false,
165+
"string": false
166+
}
167+
],
168+
"no-inline-comments": [
169+
"error"
170+
],
171+
"no-iterator": [
172+
"error"
173+
],
174+
"no-label-var": [
175+
"error"
176+
],
177+
"no-lone-blocks": [
178+
"error"
179+
],
180+
"no-lonely-if": [
181+
"error"
182+
],
183+
"no-loop-func": [
184+
"error"
185+
],
186+
"no-multi-assign": [
187+
"error"
188+
],
189+
"no-negated-condition": [
190+
"error"
191+
],
192+
"no-nested-ternary": [
193+
"error"
194+
],
195+
"no-new": [
196+
"error"
197+
],
198+
"no-new-func": [
199+
"error"
200+
],
201+
"no-new-require": [
202+
"error"
203+
],
204+
"no-param-reassign": [
205+
"error",
206+
{
207+
"props": false
208+
}
209+
],
210+
"no-prototype-builtins": [
211+
"error"
212+
],
213+
"no-restricted-syntax": [
214+
"error"
215+
],
216+
"no-proto": [
217+
"error"
218+
],
219+
"no-return-assign": [
220+
"error"
221+
],
222+
"no-return-await": [
223+
"error"
224+
],
225+
"no-script-url": [
226+
"error"
227+
],
228+
"no-self-compare": [
229+
"error"
230+
],
231+
"no-sequences": [
232+
"error"
233+
],
234+
"no-shadow-restricted-names": [
235+
"error"
236+
],
237+
"no-template-curly-in-string": [
238+
"error"
239+
],
240+
"no-throw-literal": [
241+
"off"
242+
],
243+
"no-undef-init": [
244+
"error"
245+
],
246+
"no-undefined": [
247+
"error"
248+
],
249+
"no-unmodified-loop-condition": [
250+
"error"
251+
],
252+
"no-unneeded-ternary": [
253+
"error"
254+
],
255+
"no-unused-expressions": [
256+
"error",
257+
{
258+
"allowShortCircuit": true,
259+
"allowTernary": true,
260+
"allowTaggedTemplates": true
261+
}
262+
],
263+
"no-use-before-define": [
264+
"error"
265+
],
266+
"no-useless-call": [
267+
"error"
268+
],
269+
"no-useless-computed-key": [
270+
"error"
271+
],
272+
"no-useless-concat": [
273+
"error"
274+
],
275+
"no-useless-constructor": [
276+
"error"
277+
],
278+
"no-useless-escape": [
279+
"off"
280+
],
281+
"no-useless-rename": [
282+
"error"
283+
],
284+
"no-useless-return": [
285+
"error"
286+
],
287+
"no-void": [
288+
"error"
289+
],
290+
"no-whitespace-before-property": [
291+
"error"
292+
],
293+
"object-shorthand": [
294+
"error",
295+
"always"
296+
],
297+
"prefer-arrow-callback": [
298+
"error",
299+
{
300+
"allowNamedFunctions": false,
301+
"allowUnboundThis": false
302+
}
303+
],
304+
"prefer-const": [
305+
"error",
306+
{
307+
"ignoreReadBeforeAssign": false
308+
}
309+
],
310+
"prefer-destructuring": [
311+
"error",
312+
{
313+
"VariableDeclarator": {
314+
"array": false,
315+
"object": true
316+
},
317+
"AssignmentExpression": {
318+
"array": true,
319+
"object": false
320+
}
321+
},
322+
{
323+
"enforceForRenamedProperties": false
324+
}
325+
],
326+
"prefer-template": [
327+
"error"
328+
],
329+
"radix": [
330+
"error"
331+
],
332+
"require-await": [
333+
"error"
334+
],
335+
"require-jsdoc": [
336+
"error",
337+
{
338+
"require": {
339+
"FunctionDeclaration": true,
340+
"MethodDefinition": true,
341+
"ClassDeclaration": true,
342+
"ArrowFunctionExpression": false
343+
}
344+
}
345+
],
346+
"semi-style": [
347+
"error",
348+
"last"
349+
],
350+
"spaced-comment": [
351+
"error",
352+
"always",
353+
{
354+
"exceptions": [
355+
"-",
356+
"+",
357+
"=",
358+
"*"
359+
]
360+
}
361+
],
362+
"space-in-parens": [
363+
"error",
364+
"never"
365+
],
366+
"space-infix-ops": [
367+
"error"
368+
],
369+
"symbol-description": [
370+
"warn"
371+
],
372+
"template-curly-spacing": [
373+
"error",
374+
"never"
375+
],
376+
"template-tag-spacing": [
377+
"error"
378+
],
379+
"valid-jsdoc": [
380+
"error",
381+
{
382+
"requireReturn": false
383+
}
384+
],
385+
"wrap-iife": [
386+
"error",
387+
"outside",
388+
{
389+
"functionPrototypeMethods": true
390+
}
391+
]
392+
}
393+
}

0 commit comments

Comments
 (0)