From: Alexander Moisseev Date: Sun, 15 Jul 2018 15:49:47 +0000 (+0300) Subject: [Test] Allow max 2 statements per line in JS X-Git-Tag: 1.7.9~117^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fpull%2F2343%2Fhead;p=rspamd.git [Test] Allow max 2 statements per line in JS --- diff --git a/.eslintrc.json b/.eslintrc.json index 98c4bbbe6..28c31ce80 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -20,15 +20,16 @@ // "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 }], @@ -64,11 +65,9 @@ "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",