Skip to content

Commit

Permalink
fix: Relax logical-assignment-operators rule
Browse files Browse the repository at this point in the history
if statements should not be touched as they are a deliberate decision to branch the code path
  • Loading branch information
jhnns committed Nov 8, 2023
1 parent bc2cad4 commit 25fe184
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion base.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,10 @@ module.exports = {
"logical-assignment-operators": [
"warn",
"always",
{ enforceForIfStatements: true },
{
// We treat if statements as deliberate decision to branch the code path
enforceForIfStatements: false,
},
], // 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
Expand Down

0 comments on commit 25fe184

Please sign in to comment.