Update .eslintrc.js : no-unneeded-ternary

This commit is contained in:
Freako 2023-10-10 16:08:16 +05:30 committed by GitHub
parent 5c46093d8b
commit b8f194ef8c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -63,6 +63,8 @@ module.exports = {
'@typescript-eslint/no-shadow': ['error'],
'no-throw-literal': ['error'],
'no-trailing-spaces': ['error'],
'no-unneeded-ternary': ['error'],
'@typescript-eslint/no-unneeded-ternary': ['error'],
'no-unused-expressions': ['off'],
'@typescript-eslint/no-unused-expressions': ['error', { 'allowShortCircuit': true, 'allowTernary': true, 'allowTaggedTemplates': true }],
'no-unused-private-class-members': ['error'],