From 6c8d61a034eed79012b6cdaee62f81a531932a61 Mon Sep 17 00:00:00 2001 From: Vicente Pastor Pastor Date: Mon, 25 Nov 2019 13:57:41 +0000 Subject: [PATCH] Update linter settings --- .eslintignore | 5 +++++ .eslintrc.json | 8 +++++--- 2 files changed, 10 insertions(+), 3 deletions(-) create mode 100644 .eslintignore diff --git a/.eslintignore b/.eslintignore new file mode 100644 index 0000000..626f43f --- /dev/null +++ b/.eslintignore @@ -0,0 +1,5 @@ + +docs/** +node_modules/** +coverage/** +public/** \ No newline at end of file diff --git a/.eslintrc.json b/.eslintrc.json index 3115e19..aff04a8 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -8,7 +8,9 @@ "jest": true }, "parserOptions": { - "ecmaVersion": 8 + "ecmaVersion": 2018, + "noInlineConfig": true, + "reportUnusedDisableDirectives": true }, "rules": { "arrow-body-style": "error", @@ -27,7 +29,7 @@ "max-depth": ["error", 3], "max-len": ["warn", { "code": 120, "tabWidth": 4 }], "max-lines": ["warn", {"max": 150, "skipBlankLines": true, "skipComments": true}], - "max-lines-per-function": ["error", 20], + "max-lines-per-function": ["warn", {"max": 20, "skipBlankLines": true, "skipComments": true}], "max-nested-callbacks": ["error", 4], "max-params": ["error", 5], "max-statements": ["error", 20], @@ -60,7 +62,7 @@ "space-before-function-paren": ["error", "never"], "strict": ["error", "global"], "yoda": "error" - }, + }, "overrides": [{ "files": [ "*.test.js", "*.spec.js", "*.steps.js" ], "rules": {