* fix(examples/react): narrow 'req.query' values in the Next API routes
* fix(examples/react): skip empty 'add' values and keep 'parseInt' for 'req.query' in the Next API routes
* chore(examples/solid): replace the legacy '.eslintrc.cjs' with a flat config and run 'test:eslint'
* refactor(examples/solid): fix 'no-shadow' and 'solid/reactivity' warnings
* chore(examples/angular): replace the legacy '.eslintrc.cjs' with a flat config and run 'test:eslint'
* refactor(examples/angular/{auto-refetching,optimistic-updates}): wrap the 'POST' case in a block
* chore(examples/solid/simple): replace the legacy '.eslintrc.cjs' with a flat config and run 'test:eslint'
* chore(examples/solid/simple): build the dependencies before 'test:eslint'
* chore(examples/solid/simple): remove the 'test:eslint' nx override now set in 'nx.json'
* chore(examples/solid/simple): enable 'allowJs' so typed linting covers 'eslint.config.js'
* chore(examples/react): run 'test:eslint' in 'algolia', 'basic-graphql-request' and 'shadow-dom'
* refactor(examples/react/algolia): derive 'hits' with 'select' instead of spreading the query result
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>
`UseMutationReturnType` uses `MutationResult` as the default for its
`TResult` parameter, but the alias was not exported. Projects that emit
declarations could not name the inferred return type of a `useMutation`
wrapper and failed with TS2883. Export it from the package root.
Fixes#11769
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Ciarán Curley <ciaran.curley.11.11@gmail.com>
* chore(solid-query*): add 'eslint-plugin-solid'
* chore(solid-query*): explain why 'solid/reactivity' is off and keep it on in 'solid-query-persist-client'
* docs(*): add parameter and result property tables to reference function pages and an overview to overloaded ones
* docs(*): link to the base type's properties when a parameter or result type has no property table
* docs(framework/*/reference): regenerate reference docs
* docs(framework/*/reference): regenerate reference docs
* chore(scripts/generate-docs): restore the 'dirname' import that the merge dropped
* docs(framework/*/reference): regenerate reference docs
* docs(scripts/generate-docs): label overloads in the overview with their declared parameter and return types
* docs(framework/*/reference): regenerate reference docs
* docs(scripts/generate-docs): convert declared intersection types from the source so signatures keep their alias names
* docs(framework/*/reference): regenerate reference docs
* docs(scripts/generate-docs): reword a comment to avoid the unknown word 'inlines'
* docs(scripts/generate-docs): skip a parameter table on overloaded pages when its heading is missing
* 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
* chore(eslint.config): require JSDoc on the methods of exported classes
* chore(eslint.config): also require JSDoc on the methods of default-exported classes