Skip to content
Source
Sign inSign up
TanStack/query
Open History to see the last commit

rules.ts

17 lines625 Bytes

1import * as exhaustiveDeps from './rules/exhaustive-deps/exhaustive-deps.rule'
2import * as stableQueryClient from './rules/stable-query-client/stable-query-client.rule'
3import * as noRestDestructuring from './rules/no-rest-destructuring/no-rest-destructuring.rule'
4import type { ESLintUtils } from '@typescript-eslint/utils'
5​
6export const rules: Record<
7 string,
8 ESLintUtils.RuleModule<
9 string,
10 ReadonlyArray<unknown>,
11 ESLintUtils.RuleListener
12 >
13> = {
14 [exhaustiveDeps.name]: exhaustiveDeps.rule,
15 [stableQueryClient.name]: stableQueryClient.rule,
16 [noRestDestructuring.name]: noRestDestructuring.rule,