-
Notifications
You must be signed in to change notification settings - Fork 0
/
import-types.d.ts
157 lines (111 loc) · 4.8 KB
/
import-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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
declare module 'eslint-plugin-promise' {
import type { TSESLint } from '@typescript-eslint/utils';
import type { Rule } from 'eslint';
const plugin: {
configs: {
'recommended': Required<Pick<TSESLint.ClassicConfig.Config, 'plugins' | 'rules'>>;
'flat/recommended': Required<Pick<TSESLint.FlatConfig.Config, 'plugins' | 'rules'>>;
};
rules: Record<string, Rule.RuleModule>;
};
export default plugin;
}
declare module 'eslint-plugin-jest' {
import type { TSESLint } from '@typescript-eslint/utils';
import type { Rule } from 'eslint';
const plugin: {
configs:
& Record<'all' | 'recommended' | 'style', Required<Pick<TSESLint.ClassicConfig.Config, 'env' | 'rules' | 'plugins'>>>
& Record<'flat/all' | 'flat/recommended' | 'flat/style', Required<Pick<TSESLint.FlatConfig.Config, 'plugins' | 'languageOptions' | 'rules'>>>;
rules: Record<string, Rule.RuleModule>;
};
export default plugin;
}
declare module 'eslint-plugin-jest-formatting' {
import type { Rule } from 'eslint';
export const rules: Record<string, Rule.RuleModule>;
}
declare module 'eslint-plugin-lodash' {
import type { Rule } from 'eslint';
const plugin: { rules: Record<string, Rule.RuleModule> };
export default plugin;
}
declare module 'eslint-plugin-react-hooks' {
import type { TSESLint } from '@typescript-eslint/utils';
import type { Rule } from 'eslint';
export const configs: Record<'recommended', Required<Pick<TSESLint.ClassicConfig.Config, 'plugins' | 'rules'>>>;
export const rules: Record<string, Rule.RuleModule>;
}
declare module 'eslint-plugin-react' {
import type { TSESLint } from '@typescript-eslint/utils';
import type { Rule } from 'eslint';
type ClassicConfig = Required<Pick<TSESLint.ClassicConfig.Config, 'parserOptions' | 'plugins' | 'rules'>>;
type FlatConfig = Required<Pick<TSESLint.FlatConfig.Config, 'languageOptions' | 'plugins' | 'rules'>>;
const plugin: {
configs: Record<'all' | 'recommended' | 'jsx-runtime', ClassicConfig> & { flat: Record<'all' | 'recommended' | 'jsx-runtime', FlatConfig> };
rules: Record<string, Rule.RuleModule>;
};
export default plugin;
}
declare module 'eslint-plugin-jsx-a11y' {
import type { TSESLint } from '@typescript-eslint/utils';
import type { Rule } from 'eslint';
const plugin: {
configs: Record<'recommended' | 'strict', TSESLint.ClassicConfig.Config>;
flatConfigs: Record<'recommended' | 'strict', TSESLint.FlatConfig.Config>;
rules: Record<string, Rule.RuleModule>;
};
export default plugin;
}
declare module '@next/eslint-plugin-next' {
import type { TSESLint } from '@typescript-eslint/utils';
import type { Rule } from 'eslint';
const plugin: {
configs: { recommended: TSESLint.ClassicConfig.Config };
rules: Record<string, Rule.RuleModule>;
};
export default plugin;
}
declare module 'eslint-plugin-security-node' {
import type { TSESLint } from '@typescript-eslint/utils';
import type { Rule } from 'eslint';
const plugin: {
configs: { recommended: TSESLint.ClassicConfig.Config };
rules: Record<string, Rule.RuleModule>;
};
export default plugin;
}
declare module 'eslint-plugin-cypress/flat' {
import type { TSESLint } from '@typescript-eslint/utils';
import type { Rule } from 'eslint';
const plugin: {
configs: {
globals: Required<Pick<TSESLint.FlatConfig.Config, 'plugins' | 'languageOptions'>>;
recommended: Required<Pick<TSESLint.FlatConfig.Config, 'plugins' | 'languageOptions' | 'rules'>>;
};
rules: Record<string, Rule.RuleModule>;
};
export default plugin;
}
declare module 'eslint-plugin-testing-library' {
import type { TSESLint } from '@typescript-eslint/utils';
import type { Rule } from 'eslint';
const plugin: {
configs:
& Record<'react' | 'vue' | 'marko' | 'dom' | 'angular', Required<Pick<TSESLint.ClassicConfig.Config, 'plugins' | 'rules'>>>
& Record<'flat/react' | 'flat/vue' | 'flat/marko' | 'flat/dom' | 'flat/angular', Required<Pick<TSESLint.FlatConfig.Config, 'plugins' | 'rules'>>>;
rules: Record<string, Rule.RuleModule>;
};
export default plugin;
}
declare module 'eslint-plugin-jest-dom' {
import type { TSESLint } from '@typescript-eslint/utils';
import type { Rule } from 'eslint';
const plugin: {
configs:
& Record<'recommended' | 'all', Required<Pick<TSESLint.ClassicConfig.Config, 'plugins' | 'rules'>>>
& Record<'flat/recommended' | 'flat/all', Required<Pick<TSESLint.FlatConfig.Config>, 'plugins' | 'rules'>>;
rules: Record<string, Rule.RuleModule>;
};
export default plugin;
}