Skip to content

Commit 40134af

Browse files
authored
Merge pull request #152 from N0tExisting/fix/reactivity-init-name
Update Regex that ignores untracked Scopes
2 parents 305b41e + 8ce3cb2 commit 40134af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/eslint-plugin-solid/src/rules/reactivity.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -575,7 +575,7 @@ export default createRule<Options, MessageIds>({
575575
});
576576
} else if (
577577
parent.property.type === "Identifier" &&
578-
/^(?:initial|default|static)[A-Z]/.test(parent.property.name)
578+
/^(?:initial|default|static[A-Z])/.test(parent.property.name)
579579
) {
580580
// We're using a prop with a name that starts with `initial` or
581581
// `default`, like `props.initialCount`. We'll refrain from warning

0 commit comments

Comments
 (0)