Skip to content

Commit

Permalink
fix: add explicit @typescript-eslint/no-unused-expressions options
Browse files Browse the repository at this point in the history
  • Loading branch information
gajus committed Nov 16, 2024
1 parent c365ab7 commit c07a0c3
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion configurations/typescript-compatibility.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,15 @@ module.exports.recommended = {
hoist: 'all',
},
],
'@typescript-eslint/no-unused-expressions': 2,
'@typescript-eslint/no-unused-expressions': [
2,
{
allowShortCircuit: false,
allowTaggedTemplates: false,
allowTernary: false,
enforceForJSX: false,
},
],
'@typescript-eslint/no-unused-vars': 2,
'@typescript-eslint/no-use-before-define': [
2,
Expand Down

0 comments on commit c07a0c3

Please sign in to comment.