diff options
author | HampusM <hampus@hampusmat.com> | 2021-07-25 14:49:26 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2021-07-25 14:49:26 +0200 |
commit | e363bd3ea8dec3ec6780a43c5278cb0731af4458 (patch) | |
tree | f3b6596ecb3398fdbca712533857a2fec907a0c0 | |
parent | 49c80c82d5bcbf92aa51ab84ee4a99b1af3b0694 (diff) |
Fixed the eslint config
-rw-r--r-- | .eslintrc.json | 10 |
1 files changed, 9 insertions, 1 deletions
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", { |