Skip to content

Commit

Permalink
Enable logical-assignment-operators rule
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Feb 6, 2024
1 parent 288a3ca commit 27049c1
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions index.js
Expand Up @@ -379,16 +379,13 @@ module.exports = {
exceptAfterSingleLine: true,
},
],

// TODO: Enable this again when targeting Node.js 16.
// 'logical-assignment-operators': [
// 'error',
// 'always',
// {
// enforceForIfStatements: true,
// },
// ],

'logical-assignment-operators': [
'error',
'always',
{
enforceForIfStatements: true,
},
],
'max-depth': 'warn',
'max-nested-callbacks': [
'warn',
Expand Down

0 comments on commit 27049c1

Please sign in to comment.