From 38c984fddb988386f1313519db22ba4dd81c5f0c Mon Sep 17 00:00:00 2001 From: Johannes Ewald Date: Wed, 8 Nov 2023 11:26:04 +0100 Subject: [PATCH] fix: Relax logical-assignment-operators rule again We disable it for now --- base.js | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/base.js b/base.js index 8d0c7bf..4cd0a7b 100644 --- a/base.js +++ b/base.js @@ -150,14 +150,9 @@ module.exports = { "init-declarations": "off", // http://eslint.org/docs/rules/init-declarations "line-comment-position": "off", // http://eslint.org/docs/rules/line-comment-position - "logical-assignment-operators": [ - "warn", - "always", - { - // We treat if statements as deliberate decision to branch the code path - enforceForIfStatements: false, - }, - ], // http://eslint.org/docs/rules/logical-assignment-operators + // We don't want to enforce these operators for now as they are hard to read + // This might change later though :) + "logical-assignment-operators": ["off", "always"], // http://eslint.org/docs/rules/logical-assignment-operators "max-classes-per-file": "off", // https://eslint.org/docs/rules/max-classes-per-file "max-depth": ["warn", 5], // http://eslint.org/docs/rules/max-depth "max-lines": ["off", options["max-lines"]],