Skip to content
Source
Sign inSign up
TanStack/query

chore(oxlint.config): update 'oxlint' to v1.95.0 and replace 'vitest-js/valid-expect' with the native 'vitest/valid-expect' #12693

Mergedsukvvon(GitHub profile, opens in a new tab)merged 2 commits intomain fromrefs/pull/12693/headmerged by sukvvon(GitHub profile, opens in a new tab) View on GitHub

sukvvon(GitHub profile, opens in a new tab)commented

🎯 Changes

  • Update oxlint to ^1.95.0 and oxlint-tsgolint to ^7.0.2008, which oxlint 1.95.0 requires as a peer.
  • Replace vitest-js/valid-expect with the native vitest/valid-expect. From 1.95.0 the native rule also reports a bare expectTypeOf(x) without a matcher, which was the reason for using the JS rule. The comment explaining that and the 'vitest/valid-expect': 'off' line are removed. The rule now comes from pluginVitest.configs.recommended.rules.
  • Rename the 5 oxlint-disable-next-line vitest-js/valid-expect comments in the lit, preact, react, solid, and svelte useQueries type tests to vitest/valid-expect.
  • pnpm-lock.yaml is updated by pnpm add.

The other vitest-js rules stay, since the native plugin has no equivalent or checks less.

✅ Checklist

  • I have followed the steps in the Contributing guide.
  • I have tested code changes locally with pnpm run test:pr, or these tests do not apply to this pull request.
  • I have followed the AI contribution policy and fully understand the code in this pull request, including any code generated with AI assistance.

🚀 Release Impact

  • This change affects published code, and I have generated a changeset.
  • This change is docs/CI/dev-only (no release).

Summary by CodeRabbit

  • Chores
    • Updated code-quality tooling and aligned test lint settings with the current rules.
    • No changes to application behavior or user-facing features are included in this update.

Sign in to join this conversation.