@@ -102,6 +102,7 @@ rules: # http://eslint.org/docs/rules/
102
102
no-param-reassign : 0 # disallow reassigning `function` parameters
103
103
no-proto : 2 # disallow the use of the `__proto__` property
104
104
no-redeclare : [1, {builtinGlobals: true}] # disallow `var` redeclaration
105
+ no-restricted-properties : 0 # disallow certain properties on certain objects
105
106
no-return-assign : [1, 'always'] # disallow assignment operators in `return` statements
106
107
no-script-url : 2 # disallow `javascript` urls
107
108
no-self-assign : [2, {props: true}] # disallow assignments where both sides are exactly the same
@@ -171,10 +172,12 @@ rules: # http://eslint.org/docs/rules/
171
172
jsx-quotes : [1, 'prefer-double'] # enforce the consistent use of either double or single quotes in JSX attributes
172
173
key-spacing : [1, {mode: 'minimum'}] # enforce consistent spacing between keys and values in object literal properties
173
174
keyword-spacing : 1 # enforce consistent spacing before and after keywords
175
+ line-comment-position : 0 # enforce position of line comments
174
176
linebreak-style : 1 # enforce consistent linebreak style
175
177
lines-around-comment : 0 # require empty lines around comments
178
+ lines-around-directive : 0 # require or disallow newlines around directives
176
179
max-depth : [1, {max: 6}] # enforce a maximum depth that blocks can be nested
177
- max-len : [0, 100] # enforce a maximum line length
180
+ max-len : [0, {code: 100, ignoreStrings: true, ignoreTemplateLiterals: true} ] # enforce a maximum line length
178
181
max-lines : [0, {max: 300}] # enforce a maximum file length
179
182
max-nested-callbacks : [1, {max: 6}] # enforce a maximum depth that callbacks can be nested
180
183
max-params : [1, {max: 6}] # enforce a maximum number of parameters in `function` definitions
@@ -250,6 +253,7 @@ rules: # http://eslint.org/docs/rules/
250
253
object-shorthand : 0 # require or disallow method and property shorthand syntax for object literals
251
254
prefer-arrow-callback : 0 # require arrow functions as callbacks
252
255
prefer-const : 0 # require `const` declarations for variables that are never reassigned after declared
256
+ prefer-numeric-literals : 0 # disallow `parseInt()` in favor of binary, octal, and hexadecimal literals
253
257
prefer-reflect : 0 # require `Reflect` methods where applicable
254
258
prefer-rest-params : 0 # require rest parameters instead of arguments
255
259
prefer-spread : 0 # require spread operators instead of `.apply()`
0 commit comments