@@ -57,6 +57,7 @@ rules: # http://eslint.org/docs/rules/
57
57
accessor-pairs : 2 # enforce getter and setter pairs in objects
58
58
array-callback-return : 0 # enforce `return` statements in callbacks of array methods
59
59
block-scoped-var : 0 # enforce the use of variables within the scope they are defined
60
+ class-methods-use-this : 1 # enforce that class methods utilize `this`
60
61
complexity : [1, {max: 8}] # enforce a maximum cyclomatic complexity allowed in a program
61
62
consistent-return : 0 # require return statements to either always or never specify values
62
63
curly : [1, 'multi-line', 'consistent'] # enforce consistent brace style for all control statements
@@ -118,7 +119,7 @@ rules: # http://eslint.org/docs/rules/
118
119
no-with : 2 # disallow `with` statements
119
120
radix : 1 # enforce the consistent use of the radix argument when using `parseInt()`
120
121
vars-on-top : 0 # require `var` declarations be placed at the top of their containing scope
121
- wrap-iife : 1 # require parentheses around immediate function invocations
122
+ wrap-iife : [1, 'any'] # require parentheses around immediate function invocations
122
123
yoda : 0 # require or disallow “Yoda” conditions
123
124
124
125
# Strict Mode
@@ -140,7 +141,7 @@ rules: # http://eslint.org/docs/rules/
140
141
141
142
# Node.js and CommonJS
142
143
callback-return : 0 # require `return` statements after callbacks
143
- global-require : 1 # require `require()` calls to be placed at top-level module scope
144
+ global-require : 0 # require `require()` calls to be placed at top-level module scope
144
145
handle-callback-err : [2, '^(err|error|.+Error$)'] # require error handling in max-nested-callbacks
145
146
no-mixed-requires : 1 # disallow `require` calls to be mixed with regular `var` declarations
146
147
no-new-require : 1 # disallow `new` operators with calls to `require`
@@ -212,7 +213,7 @@ rules: # http://eslint.org/docs/rules/
212
213
operator-assignment : 0 # require or disallow assignment operator shorthand where possible
213
214
operator-linebreak : 0 # enforce consistent linebreak style for operators
214
215
padded-blocks : 0 # require or disallow padding within blocks
215
- quote-props : [2 , 'as-needed'] # require quotes around object literal property names
216
+ quote-props : [1 , 'as-needed'] # require quotes around object literal property names
216
217
quotes : [1, 'single', {avoidEscape: true, allowTemplateLiterals: true}] # enforce the consistent use of either backticks, double, or single quotes
217
218
require-jsdoc : 0 # require JSDoc comments
218
219
semi : [0, 'always'] # require or disallow semicolons instead of ASI
@@ -255,5 +256,6 @@ rules: # http://eslint.org/docs/rules/
255
256
prefer-template : 0 # require template literals instead of string concatenation
256
257
require-yield : 2 # require generator functions to contain `yield`
257
258
sort-imports : 0 # enforce sorted import declarations within modules
259
+ symbol-description : 1 # require symbol descriptions
258
260
template-curly-spacing : 0 # require or disallow spacing around embedded expressions of template strings
259
261
yield-star-spacing : 1 # require or disallow spacing around the `*` in `yield*` expressions
0 commit comments