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

rules.ts

19 lines689 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'
5import type { ExtraRuleDocs } from './types'
6​
7export const rules: Record<
8 string,
9 ESLintUtils.RuleModule<
10 string,
11 ReadonlyArray<unknown>,
12 ExtraRuleDocs,
13 ESLintUtils.RuleListener
14 >
15> = {
16 [exhaustiveDeps.name]: exhaustiveDeps.rule,
17 [stableQueryClient.name]: stableQueryClient.rule,
18 [noRestDestructuring.name]: noRestDestructuring.rule,