@@ -15,25 +15,26 @@ module.exports = {
1515 ] ,
1616 // add your custom rules here
1717 rules : {
18- 'no-duplicate-imports' : 'error' ,
19- // risk only exist with semi-colon auto insertion. Not our case.
20- 'no-plusplus' : 'off' ,
21- 'no-param-reassign' : 'off' ,
22- 'no-underscore-dangle' : [ 'error' , {
23- 'allowAfterSuper' : true ,
24- 'allowAfterThis' : true ,
25- } ] ,
2618 'class-methods-use-this' : 'off' ,
27- 'indent' : [ 'error' , 4 , {
28- SwitchCase : 1 ,
29- } ] ,
3019 'comma-dangle' : [ 'error' , {
3120 'arrays' : 'always-multiline' ,
3221 'objects' : 'always-multiline' ,
3322 'imports' : 'always-multiline' ,
3423 'exports' : 'always-multiline' ,
3524 'functions' : 'never' ,
3625 } ] ,
26+ 'indent' : [ 'error' , 4 , {
27+ SwitchCase : 1 ,
28+ } ] ,
29+ 'no-duplicate-imports' : 'error' ,
30+ // risk only exist with semi-colon auto insertion. Not our case.
31+ 'no-plusplus' : 'off' ,
32+ 'no-param-reassign' : 'off' ,
33+ 'no-underscore-dangle' : [ 'error' , {
34+ 'allowAfterSuper' : true ,
35+ 'allowAfterThis' : true ,
36+ } ] ,
37+ 'prefer-destructuring' : 'off' ,
3738 // don't require .js extension when importing
3839 'import/extensions' : [ 'error' , 'always' , { js : 'never' } ] ,
3940 // allow optionalDependencies
0 commit comments