You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When running eslint it's crashing, I can fix it when I removing a helper function.
Console:
> eslint --fix "src/**/*.{ts,tsx,js,jsx}"
Oops! Something went wrong! :(
ESLint: 8.52.0
Error: This should never happen
Occurred while linting /home/aronmal/Documents/Github/praxis-siebers/src/frontend-helpers/formReducer.ts:72
Rule: "solid/reactivity"
at ScopeStack.findDeepestDeclarationScope (/home/aronmal/Documents/Github/praxis-siebers/node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/eslint-plugin-solid/dist/rules/reactivity.js:30:19)
at ScopeStack.pushUniqueSignal (/home/aronmal/Documents/Github/praxis-siebers/node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/eslint-plugin-solid/dist/rules/reactivity.js:48:49)
at handleTrackedScopes (/home/aronmal/Documents/Github/praxis-siebers/node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/eslint-plugin-solid/dist/rules/reactivity.js:200:40)
at onFunctionExit (/home/aronmal/Documents/Github/praxis-siebers/node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/eslint-plugin-solid/dist/rules/reactivity.js:331:25)
at ruleErrorHandler (/home/aronmal/Documents/Github/praxis-siebers/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/linter.js:1091:28)
at /home/aronmal/Documents/Github/praxis-siebers/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/safe-emitter.js:45:58
at Array.forEach (<anonymous>)
at Object.emit (/home/aronmal/Documents/Github/praxis-siebers/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/safe-emitter.js:45:38)
at NodeEventGenerator.applySelector (/home/aronmal/Documents/Github/praxis-siebers/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/node-event-generator.js:297:26)
at NodeEventGenerator.applySelectors (/home/aronmal/Documents/Github/praxis-siebers/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/node-event-generator.js:326:22)
ELIFECYCLE Command failed with exit code 2.
That's bizarre! You're not even using any Solid APIs here. I'll look into this when I get some time.
Seems like there's an edge case with the reactivity rule's inner workings—tricky code, so not really something I'd ask you to worry about, though thanks for offering!
Describe the bug
When running eslint it's crashing, I can fix it when I removing a helper function.
Console:
My helper function:
To Reproduce
Have the helper function in a file in the src dir of the solid-start project.
Expected behavior
lint and not crash
Screenshots
See Console output.
Environment (please complete the following information):
eslint-plugin-solid
version: 0.13.0eslint
version: 8.52.0Additional context
Ask if you need more information. I would want to help, but I don't know how this plugin works in the background.
The text was updated successfully, but these errors were encountered: