From 8ace9932fa7c306e6441418fa7c0a6118eca8490 Mon Sep 17 00:00:00 2001 From: fire332 <96039230+fire332@users.noreply.github.com> Date: Sat, 6 Apr 2024 04:46:15 -0700 Subject: [PATCH] add ESLint rule 'no-useless-assignment' --- eslint.config.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/eslint.config.js b/eslint.config.js index 0396fe3d..dc9a9bf3 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -52,7 +52,8 @@ export default [ { checkForEach: true, allowVoid: true } ], 'no-constructor-return': 'error', - 'no-unmodified-loop-condition': 'error' + 'no-unmodified-loop-condition': 'error', + 'no-useless-assignment': 'error' } },