From 44bcb192698fe4a014467fe81b1d16978c50cc5d Mon Sep 17 00:00:00 2001 From: Percy Ma Date: Thu, 12 Jan 2023 23:04:23 +0800 Subject: [PATCH] fix: group `&&`, `||` and `?:` (#152) --- packages/basic/standard.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/basic/standard.js b/packages/basic/standard.js index 565c1c0..20d1d9a 100644 --- a/packages/basic/standard.js +++ b/packages/basic/standard.js @@ -126,7 +126,7 @@ module.exports = { 'no-mixed-operators': ['error', { groups: [ ['==', '!=', '===', '!==', '>', '>=', '<', '<='], - ['&&', '||'], + ['&&', '||', '?:'], ['in', 'instanceof'], ], allowSamePrecedence: true,