11module . exports = {
2- plugins : [
3- 'standard' ,
4- 'prettier' ,
5- 'import' ,
6- ] ,
2+ plugins : [ 'standard' ] ,
73 extends : [
84 'eslint:recommended' ,
5+ // Adds 'promise'/'import'/'node' plugins and configurations
96 'standard' ,
10- 'prettier' ,
7+ // Adds 'prettier' plugin
8+ 'plugin:prettier/recommended' ,
119 'prettier/standard' ,
1210 ] ,
1311 parserOptions : {
@@ -19,18 +17,18 @@ module.exports = {
1917 es6 : true ,
2018 } ,
2119 rules : {
22- // fixable - errors
23- 'prettier/prettier ' : [
20+ // Fixable - errors
21+ 'one-var ' : [
2422 'error' ,
23+ {
24+ const : 'never' ,
25+ let : 'never' ,
26+ } ,
2527 ] ,
26- 'one-var' : [ 'error' , {
27- const : 'never' ,
28- let : 'never' ,
29- } ] ,
3028 'dot-notation' : 'error' ,
3129 'no-else-return' : [ 'error' , { allowElseIf : false } ] ,
3230 'capitalized-comments' : 'error' ,
33- //'linebreak-style': 'off',
31+ // 'linebreak-style': 'off',
3432 'lines-between-class-members' : 'error' ,
3533 'multiline-comment-style' : 'error' ,
3634 'no-lonely-if' : 'error' ,
@@ -46,12 +44,12 @@ module.exports = {
4644 'prefer-template' : 'error' ,
4745 'sort-imports' : 'error' ,
4846
49- // non -fixable - warnings
47+ // Non -fixable - warnings
5048 'no-await-in-loop' : 'warn' ,
5149 'array-callback-return' : 'warn' ,
5250 'block-scoped-var' : 'warn' ,
53- //'class-methods-use-this': 'warn',
54- ' complexity' : 'warn' ,
51+ // 'class-methods-use-this': 'warn',
52+ complexity : 'warn' ,
5553 'consistent-return' : 'warn' ,
5654 'default-case' : 'warn' ,
5755 'guard-for-in' : 'warn' ,
@@ -60,13 +58,13 @@ module.exports = {
6058 'no-implicit-globals' : 'warn' ,
6159 'no-invalid-this' : 'warn' ,
6260 'no-loop-func' : 'warn' ,
63- //'no-magic-numbers': 'warn',
61+ // 'no-magic-numbers': 'warn',
6462 'no-param-reassign' : 'warn' ,
6563 'no-script-url' : 'warn' ,
6664 'no-useless-concat' : 'warn' ,
6765 'no-void' : 'warn' ,
6866 'no-warning-comments' : 'warn' ,
69- ' radix' : 'warn' ,
67+ radix : 'warn' ,
7068 'require-await' : 'warn' ,
7169 'init-declarations' : 'warn' ,
7270 'no-catch-shadow' : 'warn' ,
@@ -81,7 +79,7 @@ module.exports = {
8179 'consistent-this' : 'warn' ,
8280 'func-name-matching' : 'warn' ,
8381 'func-names' : 'warn' ,
84- 'func-style' : [ 'warn' , 'declaration' , { " allowArrowFunctions" : true } ] ,
82+ 'func-style' : [ 'warn' , 'declaration' , { allowArrowFunctions : true } ] ,
8583 'line-comment-position' : 'warn' ,
8684 'max-depth' : 'warn' ,
8785 'max-nested-callbacks' : 'warn' ,
0 commit comments