-
Notifications
You must be signed in to change notification settings - Fork 326
/
Copy pathmodules.d.ts
74 lines (61 loc) · 1.83 KB
/
modules.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
/**
* @file Type definitions for modules that currently lack typings on DefinitelyTyped.
*
* This file MUST NOT `export {}` so that the modules are visible to other files.
*/
// ===========================
// === Module declarations ===
// ===========================
declare module 'eslint-plugin-react' {
/** An ESLint configuration. */
interface Config {
readonly plugins: string[]
readonly rules: Record<string, number>
readonly parserOptions: object
}
/** Configurations defined by this ESLint plugin. */
interface Configs {
readonly recommended: Config
readonly all: Config
readonly 'jsx-runtime': Config
}
/** Deprecated rules contained in this ESLint plugin. */
interface DeprecatedRules {
readonly 'jsx-sort-default-props': object
readonly 'jsx-space-before-closing': object
}
/** The default export of this ESLint plugin. */
export interface Default {
readonly rules: Record<string, object>
readonly configs: Configs
readonly deprecatedRules: DeprecatedRules
}
export const deprecatedRules: DeprecatedRules
const DEFAULT: Default
export default DEFAULT
}
declare module 'eslint-plugin-react-hooks' {
/** An ESLint configuration. */
interface Config {
readonly plugins: string[]
readonly rules: Record<string, string>
}
/** Configurations defined by this ESLint plugin. */
interface Configs {
readonly recommended: Config
}
/** Rules defined by this ESLint plugin. */
interface ReactHooksRules {
readonly 'rules-of-hooks': object
readonly 'exhaustive-deps': object
}
/** The default export of this ESLint plugin. */
export interface Default {
readonly configs: Configs
readonly rules: ReactHooksRules
}
export const configs: Configs
export const rules: ReactHooksRules
const DEFAULT: Default
export default DEFAULT
}