Skip to content

Commit

Permalink
Disable logical-assignment-operators rule until we target Node.js 16
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Nov 8, 2022
1 parent d61e4f0 commit ffb7d6e
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions index.js
Expand Up @@ -357,13 +357,16 @@ module.exports = {
exceptAfterSingleLine: true,
},
],
'logical-assignment-operators': [
'error',
'always',
{
enforceForIfStatements: true,
},
],

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

'max-depth': 'warn',
'max-nested-callbacks': [
'warn',
Expand Down

0 comments on commit ffb7d6e

Please sign in to comment.