Skip to content

Commit

Permalink
chore: enforce ternary operator over logical operator
Browse files Browse the repository at this point in the history
  • Loading branch information
jiji-hoon96 committed Jan 22, 2025
1 parent fba28cc commit 3b9faae
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions eslint.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,14 @@ export default tseslint.config(
'@typescript-eslint/no-explicit-any': 'off',

'no-duplicate-imports': 'off',
'no-unused-expressions': ['error', {
allowShortCircuit: false,
allowTernary: true
}],
'@typescript-eslint/no-unused-expressions': ['error', {
allowShortCircuit: false,
allowTernary: true
}]
},
},

Expand Down

0 comments on commit 3b9faae

Please sign in to comment.