fix: group &&, || and ?: (#152)

This commit is contained in:
Percy Ma 2023-01-12 23:04:23 +08:00 committed by GitHub
parent 1b0dc92b90
commit 44bcb19269
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -126,7 +126,7 @@ module.exports = {
'no-mixed-operators': ['error', {
groups: [
['==', '!=', '===', '!==', '>', '>=', '<', '<='],
['&&', '||'],
['&&', '||', '?:'],
['in', 'instanceof'],
],
allowSamePrecedence: true,