{"library":"oxlint-plugin-query","title":"oxlint-plugin-query","description":"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.","language":"javascript","status":"active","last_verified":"Fri May 01","install":{"commands":["npm install oxlint-plugin-query"],"cli":null},"imports":["import plugin from 'oxlint-plugin-query/dist/index.js'","import plugin from 'oxlint-plugin-query/dist/index.js'; plugin.configs.recommended","import { plugin as eslintCompatPlugin } from './path/to/oxlint-plugin-query/eslint.cjs' // if available"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"// 1. Install: npm add -D oxlint-plugin-query\n// 2. Create .oxlintrc.json:\n{\n  \"jsPlugins\": [\"./node_modules/oxlint-plugin-query/dist/index.js\"],\n  \"rules\": {\n    \"oxlint-plugin-query/exhaustive-deps\": \"error\",\n    \"oxlint-plugin-query/stable-query-client\": \"error\",\n    \"oxlint-plugin-query/no-rest-destructuring\": \"warn\"\n  }\n}\n// 3. Run oxlint (>=1.0.0).\n\n// ESLint flat config alternative:\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];","lang":"typescript","description":"Shows Oxlint and ESLint configuration for activating the plugin with recommended rules.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}