finish stylistic

This commit is contained in:
Timo Hocker 2019-12-20 13:09:24 +01:00
parent 5ddf0ae601
commit d161f6f300

View File

@ -236,13 +236,17 @@ module.exports = {
'space-before-blocks': ['error', 'always'], 'space-before-blocks': ['error', 'always'],
'space-before-function-paren': ['error', 'always'], 'space-before-function-paren': ['error', 'always'],
'space-in-parens': ['error', 'never'], 'space-in-parens': ['error', 'never'],
'space-infix-ops': null, // https://eslint.org/docs/rules/space-infix-ops // require spacing around infix operators 'space-infix-ops': 'error',
'space-unary-ops': null, // https://eslint.org/docs/rules/space-unary-ops // enforce consistent spacing before or after unary operators 'space-unary-ops': [
'spaced-comment': null, // https://eslint.org/docs/rules/spaced-comment // enforce consistent spacing after the `//` or `/*` in a comment 'error', {
'switch-colon-spacing': null, // https://eslint.org/docs/rules/switch-colon-spacing // enforce spacing around colons of switch statements words: true,
'template-tag-spacing': null, // https://eslint.org/docs/rules/template-tag-spacing // require or disallow spacing between template tags and their literals nonwords: false
'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 '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 // 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 'arrow-body-style': null, // https://eslint.org/docs/rules/arrow-body-style // require braces around arrow function bodies