{"_id":"oxlint-plugin-query","_rev":"4-5a6f45fbadb4f75e116429e2b6db6158","name":"oxlint-plugin-query","dist-tags":{"latest":"0.3.0"},"versions":{"0.1.0":{"name":"oxlint-plugin-query","version":"0.1.0","keywords":["oxlint","eslint","tanstack","query","tanstack-query","react-query","lint"],"license":"MIT","_id":"oxlint-plugin-query@0.1.0","maintainers":[{"name":"takinprofit","email":"takinprofit@gmail.com"}],"homepage":"https://github.com/takinprofit/biome-plugins#readme","bugs":{"url":"https://github.com/takinprofit/biome-plugins/issues"},"dist":{"shasum":"685a5893419f24009895fb54c69d492fc748cd5e","tarball":"https://registry.npmjs.org/oxlint-plugin-query/-/oxlint-plugin-query-0.1.0.tgz","fileCount":3,"integrity":"sha512-In8deyOrW2RuXI6Rfdb/sfcxAhgXmQeWo7cuwboTCGN3M4P2dPR82kWAUmJmcSYWSF/1r7LRMrh7HvhFBlatUA==","signatures":[{"sig":"MEYCIQCZKmwoC8aUpmLjjVkdVlepiwv3DkMKWOxv5JuS2AqIHAIhAI1+389qxLLMCZ1nZgcbXv3u5QExHPozuAvt1MVA0IK8","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":35114},"main":"./dist/index.js","type":"module","engines":{"node":">=18.0.0"},"exports":{".":{"import":"./dist/index.js"}},"_npmUser":{"name":"takinprofit","email":"takinprofit@gmail.com"},"repository":{"url":"git+https://github.com/takinprofit/biome-plugins.git","type":"git"},"_npmVersion":"11.6.2","description":"TanStack Query lint rules ported to Oxlint's JS plugin API. Also compatible with ESLint flat config.","directories":{},"_nodeVersion":"25.2.1","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/oxlint-plugin-query_0.1.0_1771714364647_0.6651213188579839","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"oxlint-plugin-query","version":"0.1.1","keywords":["oxlint","eslint","tanstack","query","tanstack-query","react-query","lint"],"license":"MIT","_id":"oxlint-plugin-query@0.1.1","maintainers":[{"name":"takinprofit","email":"takinprofit@gmail.com"}],"homepage":"https://github.com/takinprofit/biome-plugins#readme","bugs":{"url":"https://github.com/takinprofit/biome-plugins/issues"},"dist":{"shasum":"628a806d4ee21f2adda7b6874a04c7d2e3fd53ee","tarball":"https://registry.npmjs.org/oxlint-plugin-query/-/oxlint-plugin-query-0.1.1.tgz","fileCount":3,"integrity":"sha512-d0LGnwXEcMumhXvfq2XndKUM9dWa/epZjg7mn6v2HqRVPNQQU6o9Zr0cEbNtxjVjx/zQ1daN7iMCM+aWzQ0MDA==","signatures":[{"sig":"MEYCIQCAzwTRhj7EwCdYFlJWaSOqDNyiU1CQtSR6GPKh5lyvJgIhAJGu6y54l67gYWD5JjkreopoUO7C6ypjcEtgpgkiALtr","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":35114},"main":"./dist/index.js","type":"module","engines":{"node":">=18.0.0"},"exports":{".":{"import":"./dist/index.js"}},"_npmUser":{"name":"takinprofit","email":"takinprofit@gmail.com"},"repository":{"url":"git+https://github.com/takinprofit/biome-plugins.git","type":"git"},"_npmVersion":"11.6.2","description":"TanStack Query lint rules ported to Oxlint's JS plugin API. Also compatible with ESLint flat config.","directories":{},"_nodeVersion":"25.2.1","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/oxlint-plugin-query_0.1.1_1771715186658_0.8851182782034066","host":"s3://npm-registry-packages-npm-production"}},"0.2.0":{"name":"oxlint-plugin-query","version":"0.2.0","keywords":["oxlint","eslint","tanstack","query","tanstack-query","react-query","lint"],"license":"MIT","_id":"oxlint-plugin-query@0.2.0","maintainers":[{"name":"takinprofit","email":"takinprofit@gmail.com"}],"homepage":"https://github.com/g5becks/oxlint-plugins/tree/main/packages/query#readme","bugs":{"url":"https://github.com/g5becks/oxlint-plugins/issues"},"dist":{"shasum":"022c000b2ef29d26008cac69b991f01b47e2c6da","tarball":"https://registry.npmjs.org/oxlint-plugin-query/-/oxlint-plugin-query-0.2.0.tgz","fileCount":5,"integrity":"sha512-M1rrjsCpRd34dGr11viLJ3nWCz0r+g0WcpsCNufCHujAM2hH4Ucza9P03Atvm88VENAfMknOVP2gxRc42at4GQ==","signatures":[{"sig":"MEUCIQD80b3PxwZHLARoKWo6diaHJ7FEs/gaXi5nMimqmmfA6gIgV1pQlLBt2fituR53vAKmfzPh08YzuFXzjL/O6Fz5g9M=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEYCIQCYc8DYEAhJYP+uCzrAj0DQa3RjEK+4PNMY3L+HlwL9UwIhAKEwlCR5dz2nKTaAjv+r5lsah0Cw26C9cRiqc1vMU9Ty","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":43947},"main":"./dist/index.js","type":"module","_from":"file:oxlint-plugin-query-0.2.0.tgz","engines":{"node":"^20.19.0 || >=22.12.0"},"exports":{".":{"import":"./dist/index.js"},"./package.json":"./package.json"},"_npmUser":{"name":"takinprofit","email":"takinprofit@gmail.com"},"_resolved":"/Users/takinprofit/Dev/oxlint-plugins-release/0.2.0/oxlint-plugin-query-0.2.0.tgz","_integrity":"sha512-M1rrjsCpRd34dGr11viLJ3nWCz0r+g0WcpsCNufCHujAM2hH4Ucza9P03Atvm88VENAfMknOVP2gxRc42at4GQ==","repository":{"url":"git+https://github.com/g5becks/oxlint-plugins.git","type":"git","directory":"packages/query"},"_npmVersion":"11.20.0","description":"TanStack Query lint rules ported to Oxlint's JS plugin API. Also compatible with ESLint flat config.","directories":{},"_nodeVersion":"26.13.0","_hasShrinkwrap":false,"peerDependencies":{"eslint":">=9","oxlint":">=1.70.0 <2"},"peerDependenciesMeta":{"eslint":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/oxlint-plugin-query_0.2.0_1794502693848_0.805545299108174","host":"s3://npm-registry-packages-npm-production"}},"0.3.0":{"_id":"oxlint-plugin-query@0.3.0","bugs":{"url":"https://github.com/g5becks/oxlint-plugins/issues"},"dist":{"shasum":"a03827bb29f9b7b720f298870adc38bbf48e81e4","tarball":"https://registry.npmjs.org/oxlint-plugin-query/-/oxlint-plugin-query-0.3.0.tgz","fileCount":6,"integrity":"sha512-QB6yL04eypFP2OxIXgcTU65sCXBa1Xq/QtZPPvR7/9LWI5xYY8zZF0EroVU8CeMQSVoJAdBcsAZ0C9q1RwocLA==","signatures":[{"sig":"MEUCIQDe/Z/8Y1wREpZC9PuxGgdmX4hozThNgx8im5OFkGwl9gIgHzXNRvn8I1tJQB5AXsGXshFBKd8OPerFlJWhvavtCDs=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDb/9h6CCXZY8LCttw8uYwyJ4ajm9+9aIGWD+mXpEf4kQIgCUwOwsuqKCDLWXs5c9F7F5KW3IdlyaxvXu4wCFYR/4Q="}],"unpackedSize":47492},"main":"./dist/index.js","name":"oxlint-plugin-query","type":"module","_from":"file:oxlint-plugin-query-0.3.0.tgz","engines":{"node":"^20.19.0 || >=22.12.0"},"exports":{".":{"import":"./dist/index.js"},"./package.json":"./package.json"},"license":"MIT","version":"0.3.0","_npmUser":{"name":"takinprofit","email":"takinprofit@gmail.com"},"homepage":"https://github.com/g5becks/oxlint-plugins/tree/main/packages/query#readme","keywords":["oxlint","eslint","tanstack","query","tanstack-query","react-query","lint"],"_resolved":"/Users/takinprofit/Dev/oxlint-plugins-release/0.3.0/oxlint-plugin-query-0.3.0.tgz","_integrity":"sha512-QB6yL04eypFP2OxIXgcTU65sCXBa1Xq/QtZPPvR7/9LWI5xYY8zZF0EroVU8CeMQSVoJAdBcsAZ0C9q1RwocLA==","repository":{"url":"git+https://github.com/g5becks/oxlint-plugins.git","type":"git","directory":"packages/query"},"_npmVersion":"11.20.0","description":"TanStack Query lint rules ported to Oxlint's JS plugin API. Also compatible with ESLint flat config.","directories":{},"maintainers":[{"name":"takinprofit","email":"takinprofit@gmail.com"}],"_nodeVersion":"26.13.0","_hasShrinkwrap":false,"peerDependencies":{"eslint":">=9","oxlint":">=1.70.0 <2"},"peerDependenciesMeta":{"eslint":{"optional":true}},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/oxlint-plugin-query_0.3.0_1794503154338_0.6973111772792239"}}},"time":{"created":"2026-02-21T22:52:44.529Z","modified":"2026-11-12T17:05:54.863Z","0.1.0":"2026-02-21T22:52:44.787Z","0.1.1":"2026-02-21T23:06:26.793Z","0.2.0":"2026-11-12T16:58:13.954Z","0.3.0":"2026-11-12T17:05:54.429Z"},"bugs":{"url":"https://github.com/g5becks/oxlint-plugins/issues"},"license":"MIT","homepage":"https://github.com/g5becks/oxlint-plugins/tree/main/packages/query#readme","keywords":["oxlint","eslint","tanstack","query","tanstack-query","react-query","lint"],"repository":{"url":"git+https://github.com/g5becks/oxlint-plugins.git","type":"git","directory":"packages/query"},"description":"TanStack Query lint rules ported to Oxlint's JS plugin API. Also compatible with ESLint flat config.","maintainers":[{"name":"takinprofit","email":"takinprofit@gmail.com"}],"readme":"# oxlint-plugin-query\n\nTanStack Query lint rules ported to [Oxlint's JS plugin API](https://oxc.rs/docs/guide/usage/linter/plugins). Also works with ESLint flat config via the bundled `eslintCompatPlugin` wrapper.\n\nSupports **TanStack Query v5.x** (`@tanstack/react-query`, `@tanstack/solid-query`, `@tanstack/vue-query`).\n\n## Requirements\n\n- Oxlint `>= 1.70.0 < 2` (tested with 1.70.0 and the pinned version, 1.93.0). Oxlint JS plugins are\n  alpha and outside oxlint's semver, so other versions may break; earlier versions use a different\n  rule-name scheme (see below).\n- Node.js `^20.19.0 || >= 22.12.0` (oxlint's own requirement)\n- ESLint `>= 9` (optional, only for the ESLint flat-config path)\n\n## Rule names and suppression comments\n\nOn oxlint >= 1.70 the plugin's rules are named `query/<rule>` (oxlint strips the\n`oxlint-plugin-` prefix). Use that short form everywhere:\n\n```jsonc\n// .oxlintrc.json\n{ \"rules\": { \"query/<rule>\": \"error\" } }\n```\n\n```ts\n// oxlint-disable-next-line query/<rule>\n```\n\nThe long form `oxlint-plugin-query/<rule>` still works as a config key, but **disable comments\nwith the long form are ignored** on oxlint >= 1.70, and the short form doesn't exist before 1.70.\nWhen upgrading from oxlint <= 1.69, rename suppressions, config keys and the oxlint version\ntogether: the [0.2 migration guide](https://github.com/g5becks/oxlint-plugins/blob/main/docs/migration-0.2.md)\nhas a codemod that does the renaming. Diagnostics are printed as `query(<rule>)`.\n\n## Installation\n\n```sh\nnpm add -D oxlint-plugin-query\n# or\nbun add -d oxlint-plugin-query\n```\n\n## Usage with Oxlint\n\nAdd the plugin to `jsPlugins` and enable the rules you want:\n\n```json\n// .oxlintrc.json\n{\n  \"jsPlugins\": [\"./node_modules/oxlint-plugin-query/dist/index.js\"],\n  \"rules\": {\n    \"query/exhaustive-deps\": \"error\",\n    \"query/no-rest-destructuring\": \"warn\",\n    \"query/stable-query-client\": \"error\",\n    \"query/no-unstable-deps\": \"error\",\n    \"query/infinite-query-property-order\": \"error\",\n    \"query/mutation-property-order\": \"error\"\n  }\n}\n```\n\n## Usage with ESLint\n\n```js\n// eslint.config.mjs\nimport queryPlugin from \"oxlint-plugin-query/dist/index.js\";\n\nexport default [\n  {\n    plugins: { query: queryPlugin },\n    rules: queryPlugin.configs.recommended.rules,\n  },\n];\n```\n\n## Rules\n\nThe **Recommended** column shows the severity used in `plugin.configs.recommended`.\n\n| Rule | Description | Recommended |\n|---|---|---|\n| `exhaustive-deps` | All external variables used in `queryFn` must be listed in `queryKey` | error |\n| `no-rest-destructuring` | Object rest destructuring of query results causes excessive re-renders | warn |\n| `stable-query-client` | `QueryClient` must be stable across renders (**React only**: checks `@tanstack/react-query`; a no-op for Solid and other adapters, as upstream) | error |\n| `no-unstable-deps` | Query key arrays must not contain unstable object references | error |\n| `infinite-query-property-order` | Enforces correct property ordering in `useInfiniteQuery` calls | error |\n| `mutation-property-order` | Enforces correct property ordering in `useMutation` calls | error |\n\n## Parity with upstream\n\nThe rules follow `@tanstack/eslint-plugin-query` 5.91.4. Its test suites run unmodified against\nthese ports on every CI run; the few intentional differences (for example, `exhaustive-deps`\nreports on the `useQuery({...})` options object like upstream 5.107+, and `no-void-query-fn` isn't\nported because it needs type information) are listed in\n[PARITY.md](https://github.com/g5becks/oxlint-plugins/blob/main/PARITY.md).\n\n## License\n\nMIT\n","readmeFilename":"README.md"}