From 6490c72334e179695df20a74436550a1372223e2 Mon Sep 17 00:00:00 2001 From: moisseev Date: Sat, 31 Aug 2019 12:42:27 +0300 Subject: [PATCH 1/2] [Test] Remove obsolete eslintIgnore --- package.json | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/package.json b/package.json index 9bbf7290f4..1074aa28c5 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,6 @@ "stylelint-config-standard": "*" }, "eslintIgnore": [ - "*.min.js", - "interface/js/lib/domReady.js" + "*.min.js" ] } From c65fbe4667ec839b4cc70cf17e69292aebbb196f Mon Sep 17 00:00:00 2001 From: moisseev Date: Sat, 31 Aug 2019 12:45:19 +0300 Subject: [PATCH 2/2] [Test] Reorder ESLint rules --- .eslintrc.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index bfc3fd6a53..1dace30fa9 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -8,6 +8,7 @@ }, "rules": { "array-bracket-newline": ["error", "consistent"], + "array-element-newline": "off", "brace-style": ["error", "1tbs", { "allowSingleLine": true }], "camelcase": "off", "capitalized-comments": "off", @@ -23,6 +24,7 @@ "key-spacing": ["error", { "singleLine": { "afterColon": false } }], + "line-comment-position": "off", "max-params": ["warn", 6], "max-statements": ["warn", 44], "max-statements-per-line": ["error", { "max": 2 }], @@ -32,6 +34,7 @@ "no-continue": "off", "no-extra-parens": ["error", "functions"], "no-implicit-globals": "off", + "no-inline-comments": "off", "no-magic-numbers": "off", "no-negated-condition": "off", "no-plusplus": "off", @@ -58,14 +61,11 @@ // Temporarily disabled rules - "array-element-newline": "off", "func-style": "off", "function-paren-newline": "off", - "line-comment-position": "off", "max-len": "off", "max-lines": "off", "max-lines-per-function": "off", - "no-inline-comments": "off", "no-invalid-this": "off", "sort-keys": "off", "sort-vars": "off"