finish stylistic
This commit is contained in:
parent
5ddf0ae601
commit
d161f6f300
18
index.js
18
index.js
@ -236,13 +236,17 @@ module.exports = {
|
||||
'space-before-blocks': ['error', 'always'],
|
||||
'space-before-function-paren': ['error', 'always'],
|
||||
'space-in-parens': ['error', 'never'],
|
||||
'space-infix-ops': null, // https://eslint.org/docs/rules/space-infix-ops // require spacing around infix operators
|
||||
'space-unary-ops': null, // https://eslint.org/docs/rules/space-unary-ops // enforce consistent spacing before or after unary operators
|
||||
'spaced-comment': null, // https://eslint.org/docs/rules/spaced-comment // enforce consistent spacing after the `//` or `/*` in a comment
|
||||
'switch-colon-spacing': null, // https://eslint.org/docs/rules/switch-colon-spacing // enforce spacing around colons of switch statements
|
||||
'template-tag-spacing': null, // https://eslint.org/docs/rules/template-tag-spacing // require or disallow spacing between template tags and their literals
|
||||
'unicode-bom': null, // https://eslint.org/docs/rules/unicode-bom // require or disallow Unicode byte order mark (BOM)
|
||||
'wrap-regex': null, // https://eslint.org/docs/rules/wrap-regex // require parenthesis around regex literals
|
||||
'space-infix-ops': 'error',
|
||||
'space-unary-ops': [
|
||||
'error', {
|
||||
words: true,
|
||||
nonwords: false
|
||||
}],
|
||||
'spaced-comment': ['error', 'always'],
|
||||
'switch-colon-spacing': 'error',
|
||||
'template-tag-spacing': 'error',
|
||||
'unicode-bom': 'error',
|
||||
'wrap-regex': 'error',
|
||||
|
||||
// ECMAScript 6 https://eslint.org/docs/rules/#ecmascript-6
|
||||
'arrow-body-style': null, // https://eslint.org/docs/rules/arrow-body-style // require braces around arrow function bodies
|
||||
|
Loading…
x
Reference in New Issue
Block a user