@tanstack/eslint-plugin-query
Version:
ESLint plugin for TanStack Query
49 lines (48 loc) • 1.33 kB
JavaScript
import {
rules
} from "./chunk-4FWBSZRD.js";
// src/index.ts
var plugin = {
meta: {
name: "@tanstack/eslint-plugin-query"
},
configs: {},
rules
};
Object.assign(plugin.configs, {
recommended: {
plugins: ["@tanstack/query"],
rules: {
"@tanstack/query/exhaustive-deps": "error",
"@tanstack/query/no-rest-destructuring": "warn",
"@tanstack/query/stable-query-client": "error",
"@tanstack/query/no-unstable-deps": "error",
"@tanstack/query/infinite-query-property-order": "error",
"@tanstack/query/no-void-query-fn": "error",
"@tanstack/query/mutation-property-order": "error"
}
},
"flat/recommended": [
{
name: "tanstack/query/flat/recommended",
plugins: {
"@tanstack/query": plugin
},
rules: {
"@tanstack/query/exhaustive-deps": "error",
"@tanstack/query/no-rest-destructuring": "warn",
"@tanstack/query/stable-query-client": "error",
"@tanstack/query/no-unstable-deps": "error",
"@tanstack/query/infinite-query-property-order": "error",
"@tanstack/query/no-void-query-fn": "error",
"@tanstack/query/mutation-property-order": "error"
}
}
]
});
var index_default = plugin;
export {
index_default as default,
plugin
};
//# sourceMappingURL=index.js.map