Replace prettier with oxfmt
The options and ignores have been ported to the `.oxfmtrc.json` file (oxfmt `printWidth` default is 100 characters, so preserving 80 for now). While the configuration with Prettier is the same, oxfmt seems to modify some things slightly differently, apparently due to the use of a pre-3.9 Prettier layout for union types that break onto their own line so we still end up with about 30 files changed.
Files with actual changes are:
- `.prettierignore`.`prettier.config.js`: Deleted. Replaced with `.oxfmtrc.json`
- `package.json`: `format` script changed to `oxfmt`. Added `oxfmt` and `svelte` as `devDependencies`; removed `prettier` and `prettier-plugin-svelte`.
- `pnpm-lock.yaml`: Lockfile update for the dependency changes above.
- `scripts/generate-labeler-config.ts`: Formats with oxfmt's `format()` API instead of Prettier's. It reads `.oxfmtrc.json` itself, because the API doesn't find config files on its own, and throws if formatting reports errors. Its output is identical to what Prettier produced.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* 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>
* refactor(lit-query): add the 'override' modifier to the implementations of the abstract controller hooks
* docs(lit-query/BaseController): note that 'onQueryClientChanged' also runs when no client is found
* docs(lit-query/BaseController): note that 'onConnected' may run without a client
* 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'
* test(lit-query): separate setup from the flow that starts with its baseline assertions in tests
* test(lit-query/ssr): keep the server rendering setup together and group reads with their assertions
* test(lit-query): separate element class declarations from the setup in tests
* test(lit-query): separate initial assertions, rerenders, and prefetches from the flows that follow them in tests
* test(lit-query/createMutationController): add test for not applying updates from the previous client mutation after switching clients
* style(lit-query/createMutationController): attach the wait to the preceding assertion
* test(lit-query/createInfiniteQueryController): add type tests
* test(lit-query/createInfiniteQueryController): add type tests for 'refetch', 'fetchNextPage', and 'fetchPreviousPage' return types
* test(lit-query/createInfiniteQueryController): move return type tests to the end
* test(lit-query/createQueryController): add type tests
* test(lit-query/createQueryController): add type tests for 'refetch' and 'suspense' return types
* test(lit-query/createQueryController): nest type tests under 'initialData' and 'Config object overload'
* style(lit-query/{createQuery,createInfiniteQuery,createQueries}Controller): remove numeric separator from 'staleTime' values
* style(*): remove numeric separators from the remaining number literals