From 3a9c5f81f4b64c8ff5898b7ef14c1b57486b664d Mon Sep 17 00:00:00 2001 From: Jakub Freisler Date: Fri, 20 Dec 2024 03:02:01 +0100 Subject: [PATCH] chore: lint fix --- rules/prefer-class-fields.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rules/prefer-class-fields.js b/rules/prefer-class-fields.js index 201e448467..f33cfc3c70 100644 --- a/rules/prefer-class-fields.js +++ b/rules/prefer-class-fields.js @@ -118,8 +118,8 @@ const create = context => { return; } - for (let i = constructorBody.length - 1; i >= 0; i--) { - const node = constructorBody[i]; + for (let index = constructorBody.length - 1; index >= 0; index--) { + const node = constructorBody[index]; if ( isThisAssignmentExpression(node) && node.expression.right?.type === 'Literal'