From bf78bf80e4f45e38e3d052c28987621c907c9528 Mon Sep 17 00:00:00 2001 From: Alexander Moisseev Date: Sun, 15 Jul 2018 18:49:47 +0300 Subject: [PATCH] [Test] Allow max 2 statements per line in JS --- .eslintrc.json | 5 ++--- 1 file 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", -- 2.39.5