Skip to content

Commit 4604c5e

Browse files
maxdavidsonianschmitz
authored andcommitted
Override no-unused-expressions with the typescript-eslint version (#8003)
Fixes issues with optional chaining
1 parent 23d5776 commit 4604c5e

File tree

1 file changed

+9
-0
lines changed
  • packages/eslint-config-react-app

1 file changed

+9
-0
lines changed

packages/eslint-config-react-app/index.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,15 @@ module.exports = {
9292
typedefs: false,
9393
},
9494
],
95+
'no-unused-expressions': 'off',
96+
'@typescript-eslint/no-unused-expressions': [
97+
'error',
98+
{
99+
allowShortCircuit: true,
100+
allowTernary: true,
101+
allowTaggedTemplates: true,
102+
},
103+
],
95104
'no-unused-vars': 'off',
96105
'@typescript-eslint/no-unused-vars': [
97106
'warn',

0 commit comments

Comments
 (0)