From c07a0c3a1adc2f5b8204d2f851f01f134c568bc4 Mon Sep 17 00:00:00 2001 From: Gajus Date: Sat, 16 Nov 2024 10:32:33 -0600 Subject: [PATCH] fix: add explicit @typescript-eslint/no-unused-expressions options --- configurations/typescript-compatibility.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/configurations/typescript-compatibility.js b/configurations/typescript-compatibility.js index 67f3753..33fdd57 100644 --- a/configurations/typescript-compatibility.js +++ b/configurations/typescript-compatibility.js @@ -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,