Using @typescript-eslint/no-unused-expressions instead (#3297)

Co-authored-by: Sushruth Sastry <susastry@microsoft.com>
This commit is contained in:
Sushruth Shastry 2020-07-30 21:28:09 -07:00 committed by GitHub
parent e2f123dc56
commit c835ecfaa9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
}
],
},
};