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": {