@@ -4,18 +4,26 @@ module.exports = {
4
4
rules : {
5
5
'accessor-pairs' : 'off' ,
6
6
'array-bracket-newline' : [ 'error' , 'consistent' ] ,
7
- 'array-bracket-spacing' : [ 'error' , 'never' ] ,
7
+ 'array-bracket-spacing' : [ 'error' , 'never' , {
8
+ singleValue : false ,
9
+ objectsInArrays : false ,
10
+ arraysInArrays : false ,
11
+ } ] ,
8
12
'array-callback-return' : 'error' ,
9
13
'array-element-newline' : [ 'error' , 'consistent' ] ,
10
14
'arrow-body-style' : 'off' ,
11
- 'arrow-parens' : [ 'error' , 'always' ] ,
15
+ 'arrow-parens' : [ 'error' , 'always' , { } ] ,
12
16
'arrow-spacing' : 'error' ,
13
17
'block-scoped-var' : 'error' ,
14
18
'block-spacing' : 'error' ,
15
- 'brace-style' : [ 'error' , '1tbs' ] ,
19
+ 'brace-style' : [ 'error' , '1tbs' , {
20
+ allowSingleLine : false ,
21
+ } ] ,
16
22
'callback-return' : 'off' ,
17
23
'camelcase' : [ 'error' , {
18
24
properties : 'never' ,
25
+ ignoreDestructuring : false ,
26
+ allow : undefined ,
19
27
} ] ,
20
28
'capitalized-comments' : 'off' ,
21
29
'class-methods-use-this' : 'off' ,
@@ -60,6 +68,26 @@ module.exports = {
60
68
'implicit-arrow-linebreak' : 'error' ,
61
69
'indent' : [ 'error' , 'tab' , {
62
70
SwitchCase : 1 ,
71
+ VariableDeclarator : 1 ,
72
+ outerIIFEBody : 1 ,
73
+ MemberExpression : 1 ,
74
+ FunctionDeclaration : {
75
+ parameters : 1 ,
76
+ body : 1 ,
77
+ } ,
78
+ FunctionExpression : {
79
+ parameters : 1 ,
80
+ body : 1 ,
81
+ } ,
82
+ CallExpression : {
83
+ arguments : 1 ,
84
+ } ,
85
+ ArrayExpression : 1 ,
86
+ ObjectExpression : 1 ,
87
+ ImportDeclaration : 1 ,
88
+ flatTernaryExpressions : false ,
89
+ ignoredNodes : [ ] ,
90
+ ignoreComments : false ,
63
91
} ] ,
64
92
'init-declarations' : 'error' ,
65
93
'jsx-quotes' : 'off' ,
@@ -71,10 +99,14 @@ module.exports = {
71
99
beforeLineComment : false ,
72
100
allowBlockStart : true ,
73
101
allowBlockEnd : true ,
102
+ allowClassStart : true ,
103
+ allowClassEnd : true ,
74
104
allowObjectStart : true ,
75
105
allowObjectEnd : true ,
76
106
allowArrayStart : true ,
77
107
allowArrayEnd : true ,
108
+ ignorePattern : 'a^' ,
109
+ applyDefaultIgnorePatterns : true ,
78
110
} ] ,
79
111
'lines-between-class-members' : [ 'error' , 'always' , {
80
112
exceptAfterSingleLine : true ,
@@ -95,7 +127,13 @@ module.exports = {
95
127
'multiline-comment-style' : 'error' ,
96
128
'multiline-ternary' : 'off' ,
97
129
'new-cap' : [ 'error' , {
130
+ newIsCap : true ,
98
131
capIsNew : false ,
132
+ newIsCapExceptions : [ ] ,
133
+ newIsCapExceptionPattern : 'a^' ,
134
+ capIsNewExceptions : [ ] ,
135
+ capIsNewExceptionPattern : 'a^' ,
136
+ properties : true ,
99
137
} ] ,
100
138
'new-parens' : 'error' ,
101
139
'newline-per-chained-call' : 'error' ,
@@ -225,6 +263,7 @@ module.exports = {
225
263
'no-undef-init' : 'error' ,
226
264
'no-undefined' : 'off' ,
227
265
'no-underscore-dangle' : [ 'error' , {
266
+ allow : undefined ,
228
267
allowAfterThis : true ,
229
268
allowAfterSuper : false ,
230
269
enforceInMethodNames : false ,
@@ -235,7 +274,11 @@ module.exports = {
235
274
'no-unreachable' : 'error' ,
236
275
'no-unsafe-finally' : 'error' ,
237
276
'no-unsafe-negation' : 'error' ,
238
- 'no-unused-expressions' : 'error' ,
277
+ 'no-unused-expressions' : [ 'error' , {
278
+ allowShortCircuit : false ,
279
+ allowTernary : false ,
280
+ allowTaggedTemplates : false ,
281
+ } ] ,
239
282
'no-unused-labels' : 'error' ,
240
283
'no-unused-vars' : 'error' ,
241
284
'no-use-before-define' : 'error' , // needs to be tested how it behaves in recursive call
@@ -254,24 +297,31 @@ module.exports = {
254
297
'no-with' : 'error' ,
255
298
'nonblock-statement-body-position' : 'off' ,
256
299
'object-curly-newline' : [ 'error' , {
257
- ObjectExpression : { multiline : true , consistent : true } ,
258
- ObjectPattern : { multiline : true , consistent : true } ,
259
- ImportDeclaration : { multiline : true , consistent : true } ,
260
- ExportDeclaration : { multiline : true , consistent : true } ,
300
+ ObjectExpression : { multiline : true , consistent : true , minProperties : Number . POSITIVE_INFINITY } ,
301
+ ObjectPattern : { multiline : true , consistent : true , minProperties : Number . POSITIVE_INFINITY } ,
302
+ ImportDeclaration : { multiline : true , consistent : true , minProperties : Number . POSITIVE_INFINITY } ,
303
+ ExportDeclaration : { multiline : true , consistent : true , minProperties : Number . POSITIVE_INFINITY } ,
304
+ } ] ,
305
+ 'object-curly-spacing' : [ 'error' , 'never' , {
306
+ arraysInObjects : true ,
307
+ objectsInObjects : true ,
261
308
} ] ,
262
- 'object-curly-spacing' : [ 'error' , 'never' ] ,
263
309
'object-property-newline' : [ 'error' , {
264
310
allowAllPropertiesOnSameLine : true ,
265
311
} ] ,
266
312
'object-shorthand' : [ 'error' , 'consistent' ] ,
267
313
'one-var' : [ 'error' , 'never' ] ,
268
314
'one-var-declaration-per-line' : 'error' ,
269
315
'operator-assignment' : [ 'error' , 'never' ] ,
270
- 'operator-linebreak' : [ 'error' , 'before' ] ,
316
+ 'operator-linebreak' : [ 'error' , 'before' , {
317
+ overrides : { } ,
318
+ } ] ,
271
319
'padded-blocks' : [ 'error' , {
272
320
classes : 'never' ,
273
321
blocks : 'never' ,
274
322
switches : 'never' ,
323
+ } , {
324
+ allowSingleLineBlocks : false ,
275
325
} ] ,
276
326
'padding-line-between-statements' : [
277
327
'error' ,
@@ -299,6 +349,7 @@ module.exports = {
299
349
'quote-props' : [ 'error' , 'consistent-as-needed' ] ,
300
350
'quotes' : [ 'error' , 'single' , {
301
351
avoidEscape : true ,
352
+ allowTemplateLiterals : true ,
302
353
} ] ,
303
354
'radix' : 'error' ,
304
355
'require-atomic-updates' : 'error' ,
@@ -330,10 +381,13 @@ module.exports = {
330
381
'unicode-bom' : 'error' ,
331
382
'use-isnan' : [ 'error' , {
332
383
enforceForSwitchCase : true ,
384
+ enforceForIndexOf : true ,
333
385
} ] ,
334
386
'valid-typeof' : 'error' ,
335
387
'vars-on-top' : 'off' ,
336
- 'wrap-iife' : [ 'error' , 'inside' ] ,
388
+ 'wrap-iife' : [ 'error' , 'inside' , {
389
+ functionPrototypeMethods : false ,
390
+ } ] ,
337
391
'wrap-regex' : 'off' ,
338
392
'yield-star-spacing' : [ 'error' , 'before' ] ,
339
393
'yoda' : 'error' ,
0 commit comments