0
Fork 0
mirror of https://github.com/TanStack/query.git synced 2026-11-16 22:50:20 +00:00
Commit graph

42 commits

Author SHA1 Message Date
Wonsuk Choi
1fa2f1bba1
chore(oxlint.config): add 'vueConfig' with native 'vue' rules for 'vue-query' and 'vue-query-devtools' (#12450) 2026-10-29 15:25:01 +09:00
Wonsuk Choi
65801313dc
chore(oxlint.config): add 'netinfo' to the cspell words (#12299) 2026-10-23 17:44:56 +09:00
Wonsuk Choi
75e64b5a1a
chore(oxlint.config): remove the 'vitest/no-standalone-expect' override left over from the removed 'itIf' helper (#12284) 2026-10-22 20:19:23 +09:00
Wonsuk Choi
b923947be4
chore(oxlint.config): enable 'no-debugging-utils', 'no-dom-import', 'no-manual-cleanup' and 'no-render-in-lifecycle' from 'eslint-plugin-testing-library' (#12273) 2026-10-22 15:01:40 +09:00
Wonsuk Choi
bb41f83caa
chore(oxlint.config): add 'eslint-plugin-testing-library' with its DOM rules and query present elements with 'getBy' (#12269)
* chore(oxlint.config): add 'eslint-plugin-testing-library' with its DOM rules and query present elements with 'getBy'

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-10-22 11:37:21 +09:00
Wonsuk Choi
670fc2817f
chore(oxlint.config): add 'eslint-plugin-jest-dom' with its recommended rules and assert DOM presence with 'toBeInTheDocument' (#12268) 2026-10-22 10:56:42 +09:00
Wonsuk Choi
496c4ac54b
chore(oxlint.config): enable 'vitest/consistent-each-for' to keep parameterized tests on '.each' (#12267) 2026-10-22 10:12:43 +09:00
Wonsuk Choi
883d35eb2f
chore(oxlint.config): enable 'vitest/prefer-lowercase-title' for test titles (#12266) 2026-10-22 10:11:15 +09:00
Wonsuk Choi
f5fc7ac966
chore(oxlint.config): enable 'vitest/require-top-level-describe' and move top-level tests and hooks into a 'describe' (#12265) 2026-10-22 10:11:04 +09:00
Wonsuk Choi
90b5acbe0d
chore(oxlint.config): enable 'vitest-js/padding-around-after-all-blocks' (#12263) 2026-10-22 09:57:09 +09:00
Wonsuk Choi
6aaa0cb120
chore(oxlint.config): enable 'vitest-js/padding-around-describe-blocks' and separate describe blocks with a blank line (#12262) 2026-10-22 09:56:46 +09:00
Wonsuk Choi
62592ae994
chore(oxlint.config): enable 'vitest-js/padding-around-after-each-blocks' and separate 'afterEach' with a blank line (#12261) 2026-10-22 09:54:55 +09:00
Wonsuk Choi
28a8540176
chore(oxlint.config): enable 'vitest-js/padding-around-before-each-blocks' and separate 'beforeEach' with a blank line (#12260) 2026-10-22 09:54:20 +09:00
Wonsuk Choi
4a6264e8a5
chore(oxlint.config): enable 'vitest-js/padding-around-before-all-blocks' and separate 'beforeAll' with a blank line (#12259) 2026-10-22 09:48:33 +09:00
Wonsuk Choi
7cafffdbbe
chore(oxlint.config): enable 'vitest-js/padding-around-test-blocks' and separate test blocks with a blank line (#12258) 2026-10-22 09:39:09 +09:00
Wonsuk Choi
914eef777b
chore(oxlint.config): enable 'vitest-js/no-conditional-in-test' outside type tests (#12256) 2026-10-22 00:16:57 +09:00
Wonsuk Choi
d8fbf7ee4d
chore(oxlint.config): enable 'vitest-js/prefer-vi-mocked' (#12255) 2026-10-21 21:50:41 +09:00
Wonsuk Choi
06d2607881
chore(oxlint.config): enable 'vitest/consistent-test-filename' (#12253) 2026-10-21 21:19:28 +09:00
Wonsuk Choi
07bdb6bbec
chore(oxlint.config): enable 'vitest/require-mock-type-parameters' and type the mock functions (#12251) 2026-10-21 21:00:25 +09:00
Wonsuk Choi
5c7b9dbbce
chore(oxlint.config): enable 'vitest/prefer-strict-equal' and assert with 'toStrictEqual' (#12250)
* chore(oxlint.config): enable 'vitest/prefer-strict-equal' and assert with 'toStrictEqual'

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-10-21 20:06:34 +09:00
Wonsuk Choi
1616702eb0
chore(oxlint.config): enable 'vitest/require-hook' and move setup code into hooks or tests (#12249) 2026-10-21 19:47:42 +09:00
Wonsuk Choi
ada9a5eff5
chore(oxlint.config): enable 'vitest/prefer-mock-return-shorthand' and use 'mockReturnValue' or 'vi.fn(implementation)' (#12248) 2026-10-21 19:27:17 +09:00
Wonsuk Choi
5ba86a672f
chore(oxlint.config): enable 'vitest/prefer-to-be' and assert primitive values with 'toBe', 'toBeNull', 'toBeUndefined' and 'toBeDefined' (#12247) 2026-10-21 19:27:02 +09:00
Wonsuk Choi
4dc1af9828
chore(oxlint.config): enable 'vitest/prefer-to-have-length' and assert lengths with 'toHaveLength' (#12246) 2026-10-21 17:38:08 +09:00
Wonsuk Choi
cdb344b074
chore(oxlint.config): enable the vitest style rules that already pass without violations (#12245) 2026-10-21 17:02:20 +09:00
Wonsuk Choi
c1dc50c36c
chore(oxlint.config): enable 'vitest/prefer-import-in-mock' and type the module mocks against the real modules (#12243) 2026-10-21 16:26:26 +09:00
Wonsuk Choi
03b3f9029f
chore(oxlint.config): enable 'vitest/prefer-expect-resolves' and assert resolved values with 'resolves' (#12244) 2026-10-21 16:25:46 +09:00
Wonsuk Choi
5393cdc265
chore(oxlint.config): enable 'vitest/prefer-mock-promise-shorthand' and use 'mockResolvedValue' and 'mockRejectedValue' (#12242) 2026-10-21 15:20:32 +09:00
Wonsuk Choi
3afe752939
chore(oxlint.config): enable 'vitest/prefer-spy-on' and spy on 'query.fetch' instead of overwriting it (#12241) 2026-10-21 15:15:50 +09:00
Wonsuk Choi
9648f0e3d6
chore(oxlint.config): enable 'vitest/prefer-called-times' and replace 'toHaveBeenCalledOnce' with 'toHaveBeenCalledTimes(1)' (#12240) 2026-10-21 15:15:28 +09:00
Wonsuk Choi
52ebbb3c7c
chore(oxlint.config): enable 'vitest/no-alias-methods' and replace 'toBeCalledWith' with 'toHaveBeenCalledWith' (#12239) 2026-10-21 15:15:13 +09:00
Wonsuk Choi
22d9966fba
chore(oxlint.config): enable 'vitest/prefer-called-with' and assert the call arguments with 'toHaveBeenCalledWith' (#12237) 2026-10-21 14:52:07 +09:00
Wonsuk Choi
25ed6ae410
chore(oxlint.config): enable 'vitest/prefer-expect-type-of' and assert the 'staleTime' type with 'toBeTypeOf' (#12236) 2026-10-21 14:50:52 +09:00
Wonsuk Choi
c51b851953
chore(oxlint.config): enable 'vitest/prefer-to-contain' and assert array membership with 'toContain' (#12235) 2026-10-21 14:48:52 +09:00
Wonsuk Choi
af28a1b461
chore(oxlint.config): enable 'vitest/prefer-equality-matcher' and compare the value directly with 'toBe' (#12234) 2026-10-21 14:48:38 +09:00
Wonsuk Choi
7e7a1c915e
chore(oxlint.config): enable 'vitest/require-to-throw-message' and assert the expected error messages in 'toThrow' (#12233) 2026-10-21 14:25:59 +09:00
Wonsuk Choi
1667b24614
chore(oxlint.config): enable vitest rules that already pass without violations (#12232) 2026-10-21 14:24:38 +09:00
Wonsuk Choi
0e19ad7c33
chore(oxlint.config): ignore 'examples' and 'integrations', which are not linted by Oxlint (#12038) 2026-10-17 01:00:11 +09:00
Wonsuk Choi
e3ef138705
chore(oxlint.config): load the jsdoc and vitest JS plugins only in the overrides that use them (#11946) 2026-10-10 13:23:56 +09:00
Wonsuk Choi
a8163e00b7
chore(oxlint.config): remove the unused '$schema' (#11943) 2026-10-10 01:56:49 +09:00
Wonsuk Choi
f4600cdf79
chore(oxlint.config): spread the vitest recommended rules instead of listing them (#11942) 2026-10-10 01:46:04 +09:00
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