From b8f194ef8c6eda11c233ee37c52aeeb0e818f04a Mon Sep 17 00:00:00 2001 From: Freako <65329453+Goku-04@users.noreply.github.com> Date: Tue, 10 Oct 2023 16:08:16 +0530 Subject: [PATCH] Update .eslintrc.js : no-unneeded-ternary --- .eslintrc.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.eslintrc.js b/.eslintrc.js index 4caf5f2b93..8f03aac7e8 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -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'],