Skip to content

Commit

Permalink
Merge pull request #152 from N0tExisting/fix/reactivity-init-name
Browse files Browse the repository at this point in the history
Update Regex that ignores untracked Scopes
  • Loading branch information
joshwilsonvu authored Sep 1, 2024
2 parents 305b41e + 8ce3cb2 commit 40134af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/eslint-plugin-solid/src/rules/reactivity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -575,7 +575,7 @@ export default createRule<Options, MessageIds>({
});
} else if (
parent.property.type === "Identifier" &&
/^(?:initial|default|static)[A-Z]/.test(parent.property.name)
/^(?:initial|default|static[A-Z])/.test(parent.property.name)
) {
// We're using a prop with a name that starts with `initial` or
// `default`, like `props.initialCount`. We'll refrain from warning
Expand Down

0 comments on commit 40134af

Please sign in to comment.