0
Fork 0
mirror of https://github.com/TanStack/query.git synced 2026-11-18 19:33:22 +00:00
Commit graph

12 commits

Author SHA1 Message Date
Ciarán Curley
d0cfa6a4a8
chore: replace eslint with oxlint (#11938)
* 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>
2026-10-09 16:35:33 +01:00
Wonsuk Choi
d331f383e1
chore(knip): include 'knip.ts' in the root 'tsconfig.json' and remove unnecessary nullish fallback for 'optionalDependencies' (#11789)
* chore(tsconfig.json): add 'knip.ts' to 'include' for type-aware linting

* chore(knip): remove unnecessary nullish fallback for 'optionalDependencies'
2026-10-01 09:45:35 +09:00
Wonsuk Choi
1e4be4ee5c
chore(*): remove unused 'react' packages from the root and scope the knip '@types/react' ignore to the packages that need it (#11727) 2026-09-29 13:55:41 +09:00
Lachlan Collins
5279b05211
chore(deps): update Vite from v6 to v8 (#11650)
* chore(deps): update Vite from v6 to v8

* Fix angular, vue-devtools

* Fix vue-devtools

* Fix knip, remove @tanstack/vite-config

* Update eslint config

* Disable false eslint errors

* Fix remaining errors

* Fix knip, dedupe esbuild

* Add changeset
2026-09-26 12:23:02 +10:00
Lachlan Collins
a0ee654cd8
chore(angular-query): migrate to tsdown (#11649)
* chore(angular-query): migrate to tsdown

* Add changeset

* Fix types

* Fix attw
2026-09-26 09:59:39 +10:00
Dominik Dorfmeister 🔮
9567367dd9
fix: declare devtools dependencies and enforce strict workspace checks (#11501) 2026-09-15 20:03:10 +02:00
Lachlan Collins
7a51c2a24a
chore: Update dependencies (#6871)
* Update knip to v4

* Update sherif

* Update jsdom

* Update types

* Update solid deps

* Dedupe dependencies

* Update expo to v50

* Update @vitejs/plugin-vue

* Update testing-library

* Update svelte dependencies

* Update vite and vitest

* Update solid and vinxi

* Update some example deps

* Update tanstack dependencies

* Update Nx to v18

* Remove @types/react-native

* pnpm dedupe

* Downgrade Nx

* Update jscodeshift
2024-02-11 10:16:49 +11:00
Lachlan Collins
bfdd31fef0
ci: Undo merging integrations into examples (#6821)
* Prepare to add integrations

* Move integrations back

* Add back missing

* Remove test:types
2024-02-03 23:05:09 +11:00
Lachlan Collins
da5f40e1de
ci: Merge integrations into examples (#6815)
* ci: Merge integrations into examples

* Move cross-env out of root

* Add type module to vite examples

* Re-add angular integration

* Fix lockfile
2024-02-03 16:47:09 +11:00
Rares Golea
e423ebfdd4
fix(angular-query): type narrowing on query and mutation results (#6662)
* chore(angular-query): query and mutation type tests

* chore(angular-query): fix type narrowing for a better DX experience

chore(angular-query): fix linting

* chore(angular-query): fix knip issues

---------

Co-authored-by: Arnoud de Vries <6420061+arnoud-dv@users.noreply.github.com>
2024-01-08 01:43:56 +01:00
Arnoud
46034aada2
feat: experimental angular query adapter (#6195)
* feat(angular-query): add Angular Query

* feat(angular-query): integration test

* fix(angular-query): PR feedback on QueryClientService injection

* fix(angular-query): PR feedback

* chore(angular-query): update unit tests

* feat(angular-query): custom inject functions

* feat(angular-query): docs

* fix(angular-query): replace React context mention with Angular injector

* fix(angular-query): re-add missing angular-query-experimental package config

* feat: updated angular version

* feat: code improvements, DX improvements, fixed small doc example to use http client,

* Update docs/angular/overview.md

* version fixes

* feat: use proxy object to create single signals (computed) for query fields instead of query itself being a signal and improved types

* fix: docs

* Update packages/angular-query-experimental/src/query-proxy.ts

Co-authored-by: Chau Tran <nartc7789@gmail.com>

* Update packages/angular-query-experimental/src/query-proxy.ts

Co-authored-by: Chau Tran <nartc7789@gmail.com>

* fix: add missing import

* revert: use helper method for injectQueryClient

* Add Angular-CLI apps for testing

* fix: useValue instead of useFactory

* fix(angular-query): examples

* chore(angular-query): remove build script from angular 17 integration

* fix(angular-query): add sandbox config

* build working for angular-query-devtools-experimental

* fix(angular-query): improve development workflow

* fix(angular-query): downgrade vitest

* fix(angular-query): eslint and unit test typing fix

* fix(angular-query): test:ci fixes

* fix(angular-query): relative workspace path to build dir

* fix(angular-query): configure workspaces for top directories only

* chore(angular-query): remove dead code found by Knip

---------

Co-authored-by: Enea Jahollari <jahollarienea14@gmail.com>
Co-authored-by: Chau Tran <nartc7789@gmail.com>
Co-authored-by: Tomasz Ducin <tomasz@ducin.it>
Co-authored-by: Tomasz Ducin <tomasz.ducin@gmail.com>
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2023-12-01 14:09:39 +01:00
Lars Kappert
5d29f8ff47
chore: introduce Knip as dead-code removal tool (#6368)
* Add knip with inital config

* Rename vite.config.js → vite.config.js (`__dirname` not in ESM scope)

* chore: upgrade to knip v3

* chore(knip): remove duplicate exports

* chore(knip): remove unused types from query devtools

* chore(knip): do not export unused types

* chore(knip): run knip in ci

* chore(knip): ignore certain .d.ts files

* chore(knip): remove unused file

* chore(knip): use devtools in next integration

so the dependency doesn't show up as unused

* chore(knip): remove unused dependencies

* chore(knip): remove unused exports

* chore(knip): add unlisted dependencies

* chore(knip): remove unnecessary scope-manager dependency

* Update knip to 3.3.0

* Update knip to 3.3.1

* chore: ignore custom deps, remove unneeded file

* chore: remove unused util

* chore: remove esbuild dep as it's not directly used

* chore: bump tsup to match esbuild types with the plugin

* chore: remove unused peer deps

* chore: remove unneeded deps

---------

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
Co-authored-by: Damian Osipiuk <osipiukd+git@gmail.com>
2023-11-29 15:58:02 +01:00