From 8ce3cb2516f2cbc16df8a344d1830c85b9676e3a Mon Sep 17 00:00:00 2001 From: Not Existing <61290107+N0tExisting@users.noreply.github.com> Date: Wed, 28 Aug 2024 19:48:09 +0200 Subject: [PATCH] Update Regex to ignore untracked Scopes --- packages/eslint-plugin-solid/src/rules/reactivity.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/eslint-plugin-solid/src/rules/reactivity.ts b/packages/eslint-plugin-solid/src/rules/reactivity.ts index 063d849..5162afa 100644 --- a/packages/eslint-plugin-solid/src/rules/reactivity.ts +++ b/packages/eslint-plugin-solid/src/rules/reactivity.ts @@ -575,7 +575,7 @@ export default createRule({ }); } 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