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
Seems like eslint-plugin-query is not working with vanilla JS apps.
Did some digging and it seems like in /utils/detect-react-query-imports.ts -> detectionInstructions it specifically wants node.importKind === 'value' but from my research this is only set for TS. In JS it's undefined. (link to src)
Describe the bug
Seems like eslint-plugin-query is not working with vanilla JS apps.
Did some digging and it seems like in
/utils/detect-react-query-imports.ts
->detectionInstructions
it specifically wantsnode.importKind === 'value'
but from my research this is only set for TS. In JS it's undefined. (link to src)Your minimal, reproducible example
https://stackblitz.com/edit/react-query-lint
Steps to reproduce
run
npm run lint
in console (it should also run automatically when link is opened)Expected behavior
detect "@tanstack/query/stable-query-client" and "@tanstack/query/no-rest-destructuring" errors
How often does this bug happen?
Every time
Screenshots or Videos
No response
Platform
stackblitz
Tanstack Query adapter
react-query
TanStack Query version
5.59.19
TypeScript version
no typescript
Additional context
No response
The text was updated successfully, but these errors were encountered: