Add ES6-related ESLint rules
This commit is contained in:
parent
416f45d1e3
commit
3cba89dc9e
@ -42,13 +42,17 @@ rules:
|
|||||||
no-trailing-spaces: error
|
no-trailing-spaces: error
|
||||||
no-unsafe-negation: error
|
no-unsafe-negation: error
|
||||||
no-useless-computed-key: error
|
no-useless-computed-key: error
|
||||||
|
no-useless-constructor: error
|
||||||
no-useless-return: error
|
no-useless-return: error
|
||||||
no-use-before-define: [error, {functions: false}]
|
no-use-before-define: [error, {functions: false}]
|
||||||
object-curly-spacing: [error, never]
|
object-curly-spacing: [error, never]
|
||||||
padded-blocks: [error, never]
|
padded-blocks: [error, never]
|
||||||
prefer-const: error
|
prefer-const: error
|
||||||
|
prefer-rest-params: error
|
||||||
|
prefer-spread: error
|
||||||
quote-props: [error, as-needed]
|
quote-props: [error, as-needed]
|
||||||
quotes: [error, double, avoid-escape]
|
quotes: [error, double, avoid-escape]
|
||||||
|
rest-spread-spacing: error
|
||||||
semi-spacing: error
|
semi-spacing: error
|
||||||
semi-style: [error, last]
|
semi-style: [error, last]
|
||||||
semi: [error, always]
|
semi: [error, always]
|
||||||
|
Loading…
Reference in New Issue
Block a user