diff options
author | Alexander Moisseev <moiseev@mezonplus.ru> | 2018-07-15 18:49:47 +0300 |
---|---|---|
committer | Alexander Moisseev <moiseev@mezonplus.ru> | 2018-07-15 18:49:47 +0300 |
commit | bf78bf80e4f45e38e3d052c28987621c907c9528 (patch) | |
tree | 8893ce4f09fd2643a02a54d26ef408121bcb08b3 | |
parent | 743dd8b6b129227a6654c13f76a30432a0e04eda (diff) | |
download | rspamd-bf78bf80e4f45e38e3d052c28987621c907c9528.tar.gz rspamd-bf78bf80e4f45e38e3d052c28987621c907c9528.zip |
[Test] Allow max 2 statements per line in JS
-rw-r--r-- | .eslintrc.json | 5 |
1 files changed, 2 insertions, 3 deletions
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", |