]> source.dussan.org Git - rspamd.git/commitdiff
[Test] Allow max 2 statements per line in JS 2343/head
authorAlexander Moisseev <moiseev@mezonplus.ru>
Sun, 15 Jul 2018 15:49:47 +0000 (18:49 +0300)
committerAlexander Moisseev <moiseev@mezonplus.ru>
Sun, 15 Jul 2018 15:49:47 +0000 (18:49 +0300)
.eslintrc.json

index 98c4bbbe66b567cc66d2fc0e72bb5579778f247f..28c31ce809faf3a8a4ba2defa987ef7815e2ed81 100644 (file)
         // "max-len": ["error", { "code": 120 }],
         "max-params": ["warn", 9],
         "max-statements": ["warn", 25],
+        "max-statements-per-line": ["error", { "max": 2 }],
         "multiline-comment-style": "off",
         "multiline-ternary": ["error", "always-multiline"],
         "newline-per-chained-call": ["error", { "ignoreChainWithDepth": 5 }],
         "no-extra-parens": ["error", "functions"],
         "no-implicit-globals": "off",
         "no-magic-numbers": "off",
+        "no-negated-condition": "off",
         "no-plusplus": "off",
         "no-ternary": "off",
-        // "no-use-before-define": ["error", { "functions": false }],
         "no-var": "off",
         "object-curly-newline": ["error", { "consistent": true }],
         "object-property-newline": ["error", { "allowAllPropertiesOnSameLine": true }],
         "max-len": "off",
         "max-lines": "off",
         "max-lines-per-function": "off",
-        "max-statements-per-line": "off",
         "new-cap": "off",
         "no-inline-comments": "off",
         "no-invalid-this": "off",
-        "no-negated-condition": "off",
         "no-underscore-dangle": "off",
         "one-var-declaration-per-line": "off",
         "prefer-spread": "off",