From e363bd3ea8dec3ec6780a43c5278cb0731af4458 Mon Sep 17 00:00:00 2001 From: HampusM Date: Sun, 25 Jul 2021 14:49:26 +0200 Subject: Fixed the eslint config --- .eslintrc.json | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.eslintrc.json b/.eslintrc.json index 3a4dead..ce3a490 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -17,6 +17,9 @@ "ecmaVersion": 12 }, "plugins": [ "@typescript-eslint" ], + "ignorePatterns": [ + "/node_modules" + ], "rules": { "no-console": "off", "no-debugger": "off", @@ -76,9 +79,12 @@ ], "indent": [ "warn", "tab" ], "keyword-spacing": [ "error", { + "before": false, "overrides": { - "if": { "after": false }, + "from": { "before": true }, "for": { "after": false }, + "if": { "after": false }, + "throw": { "after": false }, "while": { "after": false } } } ], @@ -86,12 +92,14 @@ "error", "unix" ], + "line-comment-position": ["error", { "position": "above" }], "max-len": "off", "max-lines": [ "error", 600 ], "max-params": [ "error", 6 ], "max-statements": "off", "multiline-comment-style": [ "error", "bare-block" ], "no-await-in-loop": "off", + "no-control-regex": "off", "no-else-return": [ "error", { -- cgit v1.2.3-18-g5258