From d500e86ef17a50bb1e8bf50d406b75937212fd83 Mon Sep 17 00:00:00 2001 From: Egor Pogadaev Date: Thu, 5 Dec 2024 15:37:34 +0500 Subject: [PATCH] style(eslint): introduce no-unused-expressions rule --- eslint.config.js | 1 + 1 file changed, 1 insertion(+) diff --git a/eslint.config.js b/eslint.config.js index 46f6dcd0d23..505ae328ade 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -107,6 +107,7 @@ module.exports = [ 'jsx-a11y/mouse-events-have-key-events': 0, 'jsx-a11y/no-noninteractive-element-interactions': 0, 'jsx-a11y/anchor-is-valid': 0, + 'no-unused-expressions': ['error', { allowShortCircuit: true, allowTernary: true, allowTaggedTemplates: true }], }, }, ];