Skip to content

Commit 7dbb7b1

Browse files
committed
[eslint config] [base] add disabled logical-assignment-operators rule
1 parent 75a908a commit 7dbb7b1

File tree

1 file changed

+7
-0
lines changed
  • packages/eslint-config-airbnb-base/rules

1 file changed

+7
-0
lines changed

packages/eslint-config-airbnb-base/rules/style.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,13 @@ module.exports = {
191191
after: 'always',
192192
}],
193193

194+
// Require or disallow logical assignment logical operator shorthand
195+
// https://eslint.org/docs/latest/rules/logical-assignment-operators
196+
// TODO, semver-major: enable
197+
'logical-assignment-operators': ['off', 'always', {
198+
enforceForIfStatements: true,
199+
}],
200+
194201
// specify the maximum depth that blocks can be nested
195202
'max-depth': ['off', 4],
196203

0 commit comments

Comments
 (0)