From a0edc384af120aff519f2a11ef15a748b1f1aae3 Mon Sep 17 00:00:00 2001 From: Ken Date: Tue, 15 Oct 2024 16:41:26 +0800 Subject: [PATCH] fix: update eslint rules --- frontend/.eslintrc.cjs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/frontend/.eslintrc.cjs b/frontend/.eslintrc.cjs index c9acb2331f..2a50695759 100644 --- a/frontend/.eslintrc.cjs +++ b/frontend/.eslintrc.cjs @@ -23,6 +23,10 @@ module.exports = { parser: '@typescript-eslint/parser', rules: { '@typescript-eslint/no-unused-vars': 'warn', + '@typescript-eslint/no-unused-expressions': [ + 'error', + { allowShortCircuit: true, allowTernary: true }, + ], }, }, {