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

rules.ts

21 lines816 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 * as noUnstableDeps from './rules/no-unstable-deps/no-unstable-deps.rule'
5import type { ESLintUtils } from '@typescript-eslint/utils'
6import type { ExtraRuleDocs } from './types'
7​
8export const rules: Record<
9 string,
10 ESLintUtils.RuleModule<
11 string,
12 ReadonlyArray<unknown>,
13 ExtraRuleDocs,
14 ESLintUtils.RuleListener
15 >
16> = {
17 [exhaustiveDeps.name]: exhaustiveDeps.rule,
18 [stableQueryClient.name]: stableQueryClient.rule,
19 [noRestDestructuring.name]: noRestDestructuring.rule,
20 [noUnstableDeps.name]: noUnstableDeps.rule,