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
eslint-plugin-router: create-route-property-order crashes with "Unsupported spread element" on a non-identifier spread #8673
Spreading a call result, a member expression (...opts.route) or a conditional (...(flag ? a : b)) all hit it. Oxlint's JS plugin host shows the same crash.
git clone https://gist.github.com/aacf46f0404c35fbca3ef0f7f231f15b.git repro && cd repro
npm install
npm run lint
ESLint crashes with Error: Unsupported spread element.
Expected behavior
The rule does not crash. The spread content is unknown, so the rule can skip that object, or handle the spread the same way it handles an identifier spread.
Workaround: assign the expression to a local variable and spread that.
Platform
@tanstack/eslint-plugin-router: 1.162.0 (latest)
ESLint: 9.39.1
Node: 24.21.0
OS: macOS
Additional context
An AI agent (Claude Code) found the crash, built the reproducer and wrote this issue.
Activity