Skip to content

Commit

Permalink
chore: lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
FRSgit committed Dec 20, 2024
1 parent a7edb37 commit 3a9c5f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rules/prefer-class-fields.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 3a9c5f8

Please sign in to comment.