* chore: replace eslint with oxlint
Migrates to oxlint as the replacement linter for eslint.
Keeps the existing ruleset, runs js plugins for non-native oxlint rules and the local no-restricted-syntax plugin
Svelte packages keep a slim ESLint config for the svelte/* rules, which need the component template.
React examples that use the query eslint plugin also still use eslint for now.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* chore: use oxlint disable directives
ESLint no longer lints these files, so switch eslint-disable comments to
oxlint-disable and the @typescript-eslint/ prefix to typescript/. Remove
directives that oxlint reports as unused, and name the rule in the
cspell oxlint-enable comments, which oxlint does not match to a
rule-specific disable otherwise.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* chore: lint expectTypeOf with vitest valid-expect
Oxlint's native vitest/valid-expect only checks `expect` calls, so load
@vitest/eslint-plugin as a JS plugin for this rule to keep flagging
`expectTypeOf` calls without a matcher, and restore the directives for
the intentional ones.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* docs(react-query): add JSDoc to the exported classes, methods, and arrow functions
* docs(react-query-persist-client/PersistQueryClientProvider): describe what is deferred while restoring and when the callbacks run
* test(*): start test titles with 'should'
* test(*): start the remaining test titles with 'should'
* test(eslint-plugin-query): start 'it.each' titles with 'should'
* test({react,preact}-query/useSuspenseQueries): fix title to match the assertion that 'TData' excludes 'undefined'
* style(lit-query/{createQuery,createInfiniteQuery,createQueries}Controller): remove numeric separator from 'staleTime' values
* style(*): remove numeric separators from the remaining number literals
* refactor(react-query*): rename local 'useRef' and 'createContext' variables to follow '@eslint-react' naming conventions
* test(react-query): follow '@eslint-react' recommended rules with 'useState' value and setter pairs, stable keys, and disables for nested component false positives
* chore(*): update '@eslint-react/eslint-plugin' to v5 and apply its 'recommended' config that was overridden
* chore(*): list 'react-hooks' rules before '@eslint-react' rules to match the config order
* chore(*): update 'eslint-plugin-react-hooks' to v7 and remove the '@ts-expect-error' for its config
* chore(*): use stable 'recommended' config of 'eslint-plugin-react-hooks' instead of 'recommended-latest'
* chore(*): remove 'react-hooks/rules-of-hooks' override that duplicates the 'recommended' config
* test({react-query,preact-query}): keep each action, wait and assertion together and separate each new user action
* test({react-query,preact-query}): remove remaining blank lines around a commented assertion and 'act' wait blocks
* test(react-query/useSuspenseQueries): remove blank line between the 'fireEvent' wrapped in 'expect' and its wait
* test({react-query,preact-query}): add blank lines after setup such as 'renderWithClient', 'rerender' and 'queryClient' calls
* test({react-query,preact-query}-persist-client): remove blank lines between assertions, waits and their assertions
* test(react-query/transition): remove blank lines between 'act' wrapped 'fireEvent' and its assertions
* test({react-query,preact-query}): add blank lines before 'fireEvent' after multi-line assertions and keep prefetch with its wait
* chore: tsup -> tsdown
* revert size-limit and fix the build instead
* fix angular and devtools build
* fix nextJs builds
* more solid related things
* fix: import order
* test(*): move 'vi.useRealTimers' to the end of 'afterEach' so cleanup runs under fake timers
* test(*): move 'vi.useRealTimers' to the end of 'afterEach' in persist-client and devtools suites
* test(svelte-query/createQueries): move 'vi.useRealTimers' to the end of 'afterEach'