Skip to content

Commit 408798b

Browse files
committed
allow shortcircuit and ternary
1 parent b61114f commit 408798b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

eslint.config.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ export default [
4646
},
4747
rules: {
4848
...reactHooks.configs.recommended.rules,
49+
'@typescript-eslint/no-unused-expressions':['error',{ 'allowShortCircuit': true , 'allowTernary': true,}],
4950
'@typescript-eslint/ban-ts-comment': 'off',
5051
'@typescript-eslint/adjacent-overload-signatures': 'error',
5152
'@typescript-eslint/array-type': 'error',

0 commit comments

Comments
 (0)