-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtypes.d.ts
51 lines (43 loc) · 1.24 KB
/
types.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
/**
* Since the ecosystem hasn't fully migrated to ESLint's new FlatConfig system yet,
* we "need" to type some of the plugins manually :(
*/
declare module 'eslint-plugin-import' {
import type { Linter, Rule } from 'eslint'
export const configs: {
recommended: { rules: Linter.RulesRecord }
}
export const rules: Record<string, Rule.RuleModule>
}
declare module 'eslint-plugin-react' {
import type { Linter, Rule } from 'eslint'
export const configs: {
recommended: { rules: Linter.RulesRecord }
all: { rules: Linter.RulesRecord }
'jsx-runtime': { rules: Linter.RulesRecord }
}
export const rules: Record<string, Rule.RuleModule>
}
declare module 'eslint-plugin-react-hooks' {
import type { Linter, Rule } from 'eslint'
export const configs: {
recommended: {
rules: {
'rules-of-hooks': Linter.RuleEntry
'exhaustive-deps': Linter.RuleEntry
}
}
}
export const rules: Record<string, Rule.RuleModule>
}
declare module 'eslint-plugin-react-compiler' {
import type { Linter, Rule } from 'eslint'
export const configs: {
recommended: {
rules: {
'react-compiler/react-compiler': Linter.RuleEntry
}
}
}
export const rules: Record<string, Rule.RuleModule>
}