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
{{ message }}
Repository navigation
build: React code has no rules-of-hooks or exhaustive-deps lint #718
No ESLint config loads eslint-plugin-react-hooks, so the React packages (src/app, src/diagram, src/simlin-serve/web, src/notebook-widget, website) get no rules-of-hooks or exhaustive-deps checking.
The reactConfig block in eslint.config.shared.js enables only eslint-plugin-react's recommended rules.
Why it matters
rules-of-hooks catches hooks called conditionally or out of order, which corrupts React's hook state at runtime. exhaustive-deps catches missing dependencies in useEffect, useMemo, and useCallback, the usual source of stale-closure bugs.
The diagram editor is stateful and effect-heavy, which is where these bugs hide.
Fix
Add eslint-plugin-react-hooks as a dev dependency wherever the shared config resolves its plugins.
Register it in reactConfig, with react-hooks/rules-of-hooks as an error and react-hooks/exhaustive-deps as a warning or error.
Fix what it reports. exhaustive-deps usually turns up a backlog on first use.
Treat each finding as a real stale-closure bug or as an intentional omission that gets an inline disable with a reason; do not turn the rule off wholesale.
changed the title [-]build: React packages have no rules-of-hooks / exhaustive-deps linting[/-][+]build: React code has no rules-of-hooks or exhaustive-deps lint[/+]on Oct 12, 2026
Activity
[-]build: React packages have no rules-of-hooks / exhaustive-deps linting[/-][+]build: React code has no rules-of-hooks or exhaustive-deps lint[/+]