Skip to content

Commit

Permalink
perf: add no-unused-expressions and set allowShortCircuit to true
Browse files Browse the repository at this point in the history
  • Loading branch information
Val-istar-Guo committed Dec 9, 2024
1 parent f368f95 commit bd84b2a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions js/recommended.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ module.exports = [
'new-cap': 'error',
'prefer-spread': 'error',
'no-empty': ['error', { allowEmptyCatch: true }],
'no-unused-expressions': ['error', { allowShortCircuit: true }],
},
},
]
2 changes: 2 additions & 0 deletions typescript/recommended.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ module.exports = [
'@typescript-eslint/no-dupe-class-members': 'error',
'no-redeclare': 'off',
'@typescript-eslint/no-redeclare': 'error',
'no-unused-expressions': 'off',
'@typescript-eslint/no-unused-expressions': ['error', { allowShortCircuit: true }],
},
},
]

0 comments on commit bd84b2a

Please sign in to comment.