Oxlint plugin providing TanStack Query v5 lint rules, ported to Oxlint's JS plugin API and compatible with ESLint flat config. Current stable version is 0.1.1, released monthly. It offers six rules (exhaustive-deps, no-rest-destructuring, stable-query-client, no-unstable-deps, infinite-query-property-order, mutation-property-order) to catch common TanStack Query anti-patterns earlier. Unlike tslint-plugin-react-query or eslint-plugin-query, it works natively with Oxlint (>=1.0.0) for fast linting, but also exports an ESLint compat plugin for flat config users. Requires Node >=18.
npm install oxlint-plugin-queryNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows Oxlint and ESLint configuration for activating the plugin with recommended rules.
Use `./node_modules/oxlint-plugin-query/dist/index.js` or equivalent absolute path.
Always prefix rule names with 'oxlint-plugin-query/' (e.g., 'oxlint-plugin-query/exhaustive-deps').
Use eslint.config.mjs with flat config and import the default export directly.
Pin exact version or test upgrades in CI.
Replace bare import with a relative path from node_modules: './node_modules/oxlint-plugin-query/dist/index.js' or use `--module-resolution=node` if supported.
Check that the file exists, is readable, and you are using Oxlint >=1.0.0. Reinstall the package.
Migrate to ESLint flat config (eslint.config.mjs) and import as shown in quickstart.
Use `import plugin from 'oxlint-plugin-query/dist/index.js'` then access `plugin.configs.recommended`.