lib: prefer logical assignment

PR-URL: https://github.com/nodejs/node/pull/55044
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Chemi Atlow <chemi@atlow.co.il>
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: LiviaMedeiros <livia@cirno.name>
This commit is contained in:
Aviv Keller 2024-10-09 02:42:16 -04:00 committed by GitHub
parent 09d10b50dc
commit 71785889c8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
73 changed files with 172 additions and 296 deletions

View file

@ -144,6 +144,7 @@ export default [
ignorePattern: '.*',
},
}],
'logical-assignment-operators': ['error', 'always', { enforceForIfStatements: true }],
'default-case-last': 'error',
'dot-notation': 'error',
'eqeqeq': ['error', 'smart'],