From d161f6f30061b6d896cec373a31088752595d36e Mon Sep 17 00:00:00 2001 From: Timo Hocker Date: Fri, 20 Dec 2019 13:09:24 +0100 Subject: [PATCH] finish stylistic --- index.js | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/index.js b/index.js index 7c9ff5a..7f35286 100644 --- a/index.js +++ b/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