From c835ecfaa9c41ca9dc1facbf10b11d2e6eb806fd Mon Sep 17 00:00:00 2001 From: Sushruth Shastry Date: Thu, 30 Jul 2020 21:28:09 -0700 Subject: [PATCH] Using @typescript-eslint/no-unused-expressions instead (#3297) Co-authored-by: Sushruth Sastry --- packages/react/src/utils/lint.ts | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/packages/react/src/utils/lint.ts b/packages/react/src/utils/lint.ts index 1084ca1b55..f9f18aeb5a 100644 --- a/packages/react/src/utils/lint.ts +++ b/packages/react/src/utils/lint.ts @@ -108,14 +108,7 @@ export const reactEslintJson = { 'no-restricted-globals': ['error'].concat(restrictedGlobals), 'no-unexpected-multiline': 'warn', 'no-unreachable': 'warn', - 'no-unused-expressions': [ - 'error', - { - allowShortCircuit: true, - allowTernary: true, - allowTaggedTemplates: true, - }, - ], + "no-unused-expressions": 'off', 'no-unused-labels': 'warn', 'no-useless-computed-key': 'warn', 'no-useless-concat': 'warn', @@ -260,5 +253,13 @@ export const reactEslintJson = { ], 'no-useless-constructor': 'off', '@typescript-eslint/no-useless-constructor': 'warn', + '@typescript-eslint/no-unused-expressions': [ + 'error', + { + 'allowShortCircuit': true, + 'allowTernary': true, + 'allowTaggedTemplates': true + } + ], }, };