Skip to content

Commit a34c426

Browse files
committed
support 3.5.0
1 parent 7627717 commit a34c426

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.eslintrc.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ rules: # http://eslint.org/docs/rules/
102102
no-param-reassign: 0 # disallow reassigning `function` parameters
103103
no-proto: 2 # disallow the use of the `__proto__` property
104104
no-redeclare: [1, {builtinGlobals: true}] # disallow `var` redeclaration
105+
no-restricted-properties: 0 # disallow certain properties on certain objects
105106
no-return-assign: [1, 'always'] # disallow assignment operators in `return` statements
106107
no-script-url: 2 # disallow `javascript` urls
107108
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/
171172
jsx-quotes: [1, 'prefer-double'] # enforce the consistent use of either double or single quotes in JSX attributes
172173
key-spacing: [1, {mode: 'minimum'}] # enforce consistent spacing between keys and values in object literal properties
173174
keyword-spacing: 1 # enforce consistent spacing before and after keywords
175+
line-comment-position: 0 # enforce position of line comments
174176
linebreak-style: 1 # enforce consistent linebreak style
175177
lines-around-comment: 0 # require empty lines around comments
178+
lines-around-directive: 0 # require or disallow newlines around directives
176179
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
178181
max-lines: [0, {max: 300}] # enforce a maximum file length
179182
max-nested-callbacks: [1, {max: 6}] # enforce a maximum depth that callbacks can be nested
180183
max-params: [1, {max: 6}] # enforce a maximum number of parameters in `function` definitions
@@ -250,6 +253,7 @@ rules: # http://eslint.org/docs/rules/
250253
object-shorthand: 0 # require or disallow method and property shorthand syntax for object literals
251254
prefer-arrow-callback: 0 # require arrow functions as callbacks
252255
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
253257
prefer-reflect: 0 # require `Reflect` methods where applicable
254258
prefer-rest-params: 0 # require rest parameters instead of arguments
255259
prefer-spread: 0 # require spread operators instead of `.apply()`

0 commit comments

Comments
 (0)