commit c65fbe4: [Test] Reorder ESLint rules

moisseev moiseev at mezonplus.ru
Sun Sep 1 08:49:05 UTC 2019


Author: moisseev
Date: 2019-08-31 12:45:19 +0300
URL: https://github.com/rspamd/rspamd/commit/c65fbe4667ec839b4cc70cf17e69292aebbb196f (refs/pull/3025/head)

[Test] Reorder ESLint rules

---
 .eslintrc.json | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/.eslintrc.json b/.eslintrc.json
index bfc3fd6a5..1dace30fa 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"


More information about the Commits mailing list