@thomaflette/eslint-plugin-solid-2 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +87 -0
- package/dist/index.cjs +1920 -0
- package/dist/index.d.cts +314 -0
- package/dist/index.d.mts +315 -0
- package/dist/index.mjs +1897 -0
- package/package.json +67 -0
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,314 @@
|
|
|
1
|
+
import * as _$_typescript_eslint_utils_ts_eslint0 from "@typescript-eslint/utils/ts-eslint";
|
|
2
|
+
|
|
3
|
+
//#region src/configs/recommended.d.ts
|
|
4
|
+
type SolidRuleLevel = "off" | "warn" | "error";
|
|
5
|
+
type SolidRuleConfig = SolidRuleLevel | [SolidRuleLevel, ...unknown[]];
|
|
6
|
+
type SolidRuleMap = Record<string, SolidRuleConfig>;
|
|
7
|
+
//#endregion
|
|
8
|
+
//#region src/index.d.ts
|
|
9
|
+
declare const pluginWithConfigs: {
|
|
10
|
+
meta: {
|
|
11
|
+
name: string;
|
|
12
|
+
};
|
|
13
|
+
rules: {
|
|
14
|
+
"components-return-once": _$_typescript_eslint_utils_ts_eslint0.RuleModule<"noConditionalReturn" | "noEarlyReturn", [({
|
|
15
|
+
typescriptEnabled?: boolean;
|
|
16
|
+
} | undefined)?], unknown, _$_typescript_eslint_utils_ts_eslint0.RuleListener> & {
|
|
17
|
+
name: string;
|
|
18
|
+
};
|
|
19
|
+
"jsx-no-duplicate-props": _$_typescript_eslint_utils_ts_eslint0.RuleModule<"noDuplicateChildren", [], unknown, _$_typescript_eslint_utils_ts_eslint0.RuleListener> & {
|
|
20
|
+
name: string;
|
|
21
|
+
};
|
|
22
|
+
"no-destructure": _$_typescript_eslint_utils_ts_eslint0.RuleModule<"noDestructure", [({
|
|
23
|
+
typescriptEnabled?: boolean;
|
|
24
|
+
} | undefined)?], unknown, _$_typescript_eslint_utils_ts_eslint0.RuleListener> & {
|
|
25
|
+
name: string;
|
|
26
|
+
};
|
|
27
|
+
"no-leaf-owner-operations": _$_typescript_eslint_utils_ts_eslint0.RuleModule<"noCleanup" | "noFlush" | "noPrimitives", [], unknown, _$_typescript_eslint_utils_ts_eslint0.RuleListener> & {
|
|
28
|
+
name: string;
|
|
29
|
+
};
|
|
30
|
+
"no-owned-scope-writes": _$_typescript_eslint_utils_ts_eslint0.RuleModule<"noActionInOwnedScope" | "noOwnedScopeWrite", [({
|
|
31
|
+
typescriptEnabled?: boolean;
|
|
32
|
+
} | undefined)?], unknown, _$_typescript_eslint_utils_ts_eslint0.RuleListener> & {
|
|
33
|
+
name: string;
|
|
34
|
+
};
|
|
35
|
+
"no-reactive-read-after-await": _$_typescript_eslint_utils_ts_eslint0.RuleModule<"reactiveReadAfterAwait", [({
|
|
36
|
+
typescriptEnabled?: boolean;
|
|
37
|
+
} | undefined)?], unknown, _$_typescript_eslint_utils_ts_eslint0.RuleListener> & {
|
|
38
|
+
name: string;
|
|
39
|
+
};
|
|
40
|
+
"no-stale-props-alias": _$_typescript_eslint_utils_ts_eslint0.RuleModule<"stalePropsAlias", [({
|
|
41
|
+
typescriptEnabled?: boolean;
|
|
42
|
+
} | undefined)?], unknown, _$_typescript_eslint_utils_ts_eslint0.RuleListener> & {
|
|
43
|
+
name: string;
|
|
44
|
+
};
|
|
45
|
+
"no-untracked-read-in-effect-apply": _$_typescript_eslint_utils_ts_eslint0.RuleModule<"signalRead" | "storeProxyRead", [], unknown, _$_typescript_eslint_utils_ts_eslint0.RuleListener> & {
|
|
46
|
+
name: string;
|
|
47
|
+
};
|
|
48
|
+
"prefer-for": _$_typescript_eslint_utils_ts_eslint0.RuleModule<"preferFor", [({
|
|
49
|
+
typescriptEnabled?: boolean;
|
|
50
|
+
} | undefined)?], unknown, _$_typescript_eslint_utils_ts_eslint0.RuleListener> & {
|
|
51
|
+
name: string;
|
|
52
|
+
};
|
|
53
|
+
"prefer-show": _$_typescript_eslint_utils_ts_eslint0.RuleModule<"convertToShow" | "preferShowAnd" | "preferShowTernary", [], unknown, _$_typescript_eslint_utils_ts_eslint0.RuleListener> & {
|
|
54
|
+
name: string;
|
|
55
|
+
};
|
|
56
|
+
"self-closing-comp": _$_typescript_eslint_utils_ts_eslint0.RuleModule<"dontSelfClose" | "selfClose", [({
|
|
57
|
+
component?: "all" | "none";
|
|
58
|
+
html?: "all" | "none" | "void";
|
|
59
|
+
} | undefined)?], unknown, _$_typescript_eslint_utils_ts_eslint0.RuleListener> & {
|
|
60
|
+
name: string;
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
configs: {
|
|
64
|
+
recommended: {
|
|
65
|
+
name: string;
|
|
66
|
+
plugins: {
|
|
67
|
+
solid: {
|
|
68
|
+
meta: {
|
|
69
|
+
name: string;
|
|
70
|
+
};
|
|
71
|
+
rules: {
|
|
72
|
+
"components-return-once": _$_typescript_eslint_utils_ts_eslint0.RuleModule<"noConditionalReturn" | "noEarlyReturn", [({
|
|
73
|
+
typescriptEnabled?: boolean;
|
|
74
|
+
} | undefined)?], unknown, _$_typescript_eslint_utils_ts_eslint0.RuleListener> & {
|
|
75
|
+
name: string;
|
|
76
|
+
};
|
|
77
|
+
"jsx-no-duplicate-props": _$_typescript_eslint_utils_ts_eslint0.RuleModule<"noDuplicateChildren", [], unknown, _$_typescript_eslint_utils_ts_eslint0.RuleListener> & {
|
|
78
|
+
name: string;
|
|
79
|
+
};
|
|
80
|
+
"no-destructure": _$_typescript_eslint_utils_ts_eslint0.RuleModule<"noDestructure", [({
|
|
81
|
+
typescriptEnabled?: boolean;
|
|
82
|
+
} | undefined)?], unknown, _$_typescript_eslint_utils_ts_eslint0.RuleListener> & {
|
|
83
|
+
name: string;
|
|
84
|
+
};
|
|
85
|
+
"no-leaf-owner-operations": _$_typescript_eslint_utils_ts_eslint0.RuleModule<"noCleanup" | "noFlush" | "noPrimitives", [], unknown, _$_typescript_eslint_utils_ts_eslint0.RuleListener> & {
|
|
86
|
+
name: string;
|
|
87
|
+
};
|
|
88
|
+
"no-owned-scope-writes": _$_typescript_eslint_utils_ts_eslint0.RuleModule<"noActionInOwnedScope" | "noOwnedScopeWrite", [({
|
|
89
|
+
typescriptEnabled?: boolean;
|
|
90
|
+
} | undefined)?], unknown, _$_typescript_eslint_utils_ts_eslint0.RuleListener> & {
|
|
91
|
+
name: string;
|
|
92
|
+
};
|
|
93
|
+
"no-reactive-read-after-await": _$_typescript_eslint_utils_ts_eslint0.RuleModule<"reactiveReadAfterAwait", [({
|
|
94
|
+
typescriptEnabled?: boolean;
|
|
95
|
+
} | undefined)?], unknown, _$_typescript_eslint_utils_ts_eslint0.RuleListener> & {
|
|
96
|
+
name: string;
|
|
97
|
+
};
|
|
98
|
+
"no-stale-props-alias": _$_typescript_eslint_utils_ts_eslint0.RuleModule<"stalePropsAlias", [({
|
|
99
|
+
typescriptEnabled?: boolean;
|
|
100
|
+
} | undefined)?], unknown, _$_typescript_eslint_utils_ts_eslint0.RuleListener> & {
|
|
101
|
+
name: string;
|
|
102
|
+
};
|
|
103
|
+
"no-untracked-read-in-effect-apply": _$_typescript_eslint_utils_ts_eslint0.RuleModule<"signalRead" | "storeProxyRead", [], unknown, _$_typescript_eslint_utils_ts_eslint0.RuleListener> & {
|
|
104
|
+
name: string;
|
|
105
|
+
};
|
|
106
|
+
"prefer-for": _$_typescript_eslint_utils_ts_eslint0.RuleModule<"preferFor", [({
|
|
107
|
+
typescriptEnabled?: boolean;
|
|
108
|
+
} | undefined)?], unknown, _$_typescript_eslint_utils_ts_eslint0.RuleListener> & {
|
|
109
|
+
name: string;
|
|
110
|
+
};
|
|
111
|
+
"prefer-show": _$_typescript_eslint_utils_ts_eslint0.RuleModule<"convertToShow" | "preferShowAnd" | "preferShowTernary", [], unknown, _$_typescript_eslint_utils_ts_eslint0.RuleListener> & {
|
|
112
|
+
name: string;
|
|
113
|
+
};
|
|
114
|
+
"self-closing-comp": _$_typescript_eslint_utils_ts_eslint0.RuleModule<"dontSelfClose" | "selfClose", [({
|
|
115
|
+
component?: "all" | "none";
|
|
116
|
+
html?: "all" | "none" | "void";
|
|
117
|
+
} | undefined)?], unknown, _$_typescript_eslint_utils_ts_eslint0.RuleListener> & {
|
|
118
|
+
name: string;
|
|
119
|
+
};
|
|
120
|
+
};
|
|
121
|
+
};
|
|
122
|
+
};
|
|
123
|
+
rules: SolidRuleMap;
|
|
124
|
+
};
|
|
125
|
+
"flat/recommended": {
|
|
126
|
+
name: string;
|
|
127
|
+
plugins: {
|
|
128
|
+
solid: {
|
|
129
|
+
meta: {
|
|
130
|
+
name: string;
|
|
131
|
+
};
|
|
132
|
+
rules: {
|
|
133
|
+
"components-return-once": _$_typescript_eslint_utils_ts_eslint0.RuleModule<"noConditionalReturn" | "noEarlyReturn", [({
|
|
134
|
+
typescriptEnabled?: boolean;
|
|
135
|
+
} | undefined)?], unknown, _$_typescript_eslint_utils_ts_eslint0.RuleListener> & {
|
|
136
|
+
name: string;
|
|
137
|
+
};
|
|
138
|
+
"jsx-no-duplicate-props": _$_typescript_eslint_utils_ts_eslint0.RuleModule<"noDuplicateChildren", [], unknown, _$_typescript_eslint_utils_ts_eslint0.RuleListener> & {
|
|
139
|
+
name: string;
|
|
140
|
+
};
|
|
141
|
+
"no-destructure": _$_typescript_eslint_utils_ts_eslint0.RuleModule<"noDestructure", [({
|
|
142
|
+
typescriptEnabled?: boolean;
|
|
143
|
+
} | undefined)?], unknown, _$_typescript_eslint_utils_ts_eslint0.RuleListener> & {
|
|
144
|
+
name: string;
|
|
145
|
+
};
|
|
146
|
+
"no-leaf-owner-operations": _$_typescript_eslint_utils_ts_eslint0.RuleModule<"noCleanup" | "noFlush" | "noPrimitives", [], unknown, _$_typescript_eslint_utils_ts_eslint0.RuleListener> & {
|
|
147
|
+
name: string;
|
|
148
|
+
};
|
|
149
|
+
"no-owned-scope-writes": _$_typescript_eslint_utils_ts_eslint0.RuleModule<"noActionInOwnedScope" | "noOwnedScopeWrite", [({
|
|
150
|
+
typescriptEnabled?: boolean;
|
|
151
|
+
} | undefined)?], unknown, _$_typescript_eslint_utils_ts_eslint0.RuleListener> & {
|
|
152
|
+
name: string;
|
|
153
|
+
};
|
|
154
|
+
"no-reactive-read-after-await": _$_typescript_eslint_utils_ts_eslint0.RuleModule<"reactiveReadAfterAwait", [({
|
|
155
|
+
typescriptEnabled?: boolean;
|
|
156
|
+
} | undefined)?], unknown, _$_typescript_eslint_utils_ts_eslint0.RuleListener> & {
|
|
157
|
+
name: string;
|
|
158
|
+
};
|
|
159
|
+
"no-stale-props-alias": _$_typescript_eslint_utils_ts_eslint0.RuleModule<"stalePropsAlias", [({
|
|
160
|
+
typescriptEnabled?: boolean;
|
|
161
|
+
} | undefined)?], unknown, _$_typescript_eslint_utils_ts_eslint0.RuleListener> & {
|
|
162
|
+
name: string;
|
|
163
|
+
};
|
|
164
|
+
"no-untracked-read-in-effect-apply": _$_typescript_eslint_utils_ts_eslint0.RuleModule<"signalRead" | "storeProxyRead", [], unknown, _$_typescript_eslint_utils_ts_eslint0.RuleListener> & {
|
|
165
|
+
name: string;
|
|
166
|
+
};
|
|
167
|
+
"prefer-for": _$_typescript_eslint_utils_ts_eslint0.RuleModule<"preferFor", [({
|
|
168
|
+
typescriptEnabled?: boolean;
|
|
169
|
+
} | undefined)?], unknown, _$_typescript_eslint_utils_ts_eslint0.RuleListener> & {
|
|
170
|
+
name: string;
|
|
171
|
+
};
|
|
172
|
+
"prefer-show": _$_typescript_eslint_utils_ts_eslint0.RuleModule<"convertToShow" | "preferShowAnd" | "preferShowTernary", [], unknown, _$_typescript_eslint_utils_ts_eslint0.RuleListener> & {
|
|
173
|
+
name: string;
|
|
174
|
+
};
|
|
175
|
+
"self-closing-comp": _$_typescript_eslint_utils_ts_eslint0.RuleModule<"dontSelfClose" | "selfClose", [({
|
|
176
|
+
component?: "all" | "none";
|
|
177
|
+
html?: "all" | "none" | "void";
|
|
178
|
+
} | undefined)?], unknown, _$_typescript_eslint_utils_ts_eslint0.RuleListener> & {
|
|
179
|
+
name: string;
|
|
180
|
+
};
|
|
181
|
+
};
|
|
182
|
+
};
|
|
183
|
+
};
|
|
184
|
+
rules: SolidRuleMap;
|
|
185
|
+
};
|
|
186
|
+
"recommended-type-checked": {
|
|
187
|
+
name: string;
|
|
188
|
+
plugins: {
|
|
189
|
+
solid: {
|
|
190
|
+
meta: {
|
|
191
|
+
name: string;
|
|
192
|
+
};
|
|
193
|
+
rules: {
|
|
194
|
+
"components-return-once": _$_typescript_eslint_utils_ts_eslint0.RuleModule<"noConditionalReturn" | "noEarlyReturn", [({
|
|
195
|
+
typescriptEnabled?: boolean;
|
|
196
|
+
} | undefined)?], unknown, _$_typescript_eslint_utils_ts_eslint0.RuleListener> & {
|
|
197
|
+
name: string;
|
|
198
|
+
};
|
|
199
|
+
"jsx-no-duplicate-props": _$_typescript_eslint_utils_ts_eslint0.RuleModule<"noDuplicateChildren", [], unknown, _$_typescript_eslint_utils_ts_eslint0.RuleListener> & {
|
|
200
|
+
name: string;
|
|
201
|
+
};
|
|
202
|
+
"no-destructure": _$_typescript_eslint_utils_ts_eslint0.RuleModule<"noDestructure", [({
|
|
203
|
+
typescriptEnabled?: boolean;
|
|
204
|
+
} | undefined)?], unknown, _$_typescript_eslint_utils_ts_eslint0.RuleListener> & {
|
|
205
|
+
name: string;
|
|
206
|
+
};
|
|
207
|
+
"no-leaf-owner-operations": _$_typescript_eslint_utils_ts_eslint0.RuleModule<"noCleanup" | "noFlush" | "noPrimitives", [], unknown, _$_typescript_eslint_utils_ts_eslint0.RuleListener> & {
|
|
208
|
+
name: string;
|
|
209
|
+
};
|
|
210
|
+
"no-owned-scope-writes": _$_typescript_eslint_utils_ts_eslint0.RuleModule<"noActionInOwnedScope" | "noOwnedScopeWrite", [({
|
|
211
|
+
typescriptEnabled?: boolean;
|
|
212
|
+
} | undefined)?], unknown, _$_typescript_eslint_utils_ts_eslint0.RuleListener> & {
|
|
213
|
+
name: string;
|
|
214
|
+
};
|
|
215
|
+
"no-reactive-read-after-await": _$_typescript_eslint_utils_ts_eslint0.RuleModule<"reactiveReadAfterAwait", [({
|
|
216
|
+
typescriptEnabled?: boolean;
|
|
217
|
+
} | undefined)?], unknown, _$_typescript_eslint_utils_ts_eslint0.RuleListener> & {
|
|
218
|
+
name: string;
|
|
219
|
+
};
|
|
220
|
+
"no-stale-props-alias": _$_typescript_eslint_utils_ts_eslint0.RuleModule<"stalePropsAlias", [({
|
|
221
|
+
typescriptEnabled?: boolean;
|
|
222
|
+
} | undefined)?], unknown, _$_typescript_eslint_utils_ts_eslint0.RuleListener> & {
|
|
223
|
+
name: string;
|
|
224
|
+
};
|
|
225
|
+
"no-untracked-read-in-effect-apply": _$_typescript_eslint_utils_ts_eslint0.RuleModule<"signalRead" | "storeProxyRead", [], unknown, _$_typescript_eslint_utils_ts_eslint0.RuleListener> & {
|
|
226
|
+
name: string;
|
|
227
|
+
};
|
|
228
|
+
"prefer-for": _$_typescript_eslint_utils_ts_eslint0.RuleModule<"preferFor", [({
|
|
229
|
+
typescriptEnabled?: boolean;
|
|
230
|
+
} | undefined)?], unknown, _$_typescript_eslint_utils_ts_eslint0.RuleListener> & {
|
|
231
|
+
name: string;
|
|
232
|
+
};
|
|
233
|
+
"prefer-show": _$_typescript_eslint_utils_ts_eslint0.RuleModule<"convertToShow" | "preferShowAnd" | "preferShowTernary", [], unknown, _$_typescript_eslint_utils_ts_eslint0.RuleListener> & {
|
|
234
|
+
name: string;
|
|
235
|
+
};
|
|
236
|
+
"self-closing-comp": _$_typescript_eslint_utils_ts_eslint0.RuleModule<"dontSelfClose" | "selfClose", [({
|
|
237
|
+
component?: "all" | "none";
|
|
238
|
+
html?: "all" | "none" | "void";
|
|
239
|
+
} | undefined)?], unknown, _$_typescript_eslint_utils_ts_eslint0.RuleListener> & {
|
|
240
|
+
name: string;
|
|
241
|
+
};
|
|
242
|
+
};
|
|
243
|
+
};
|
|
244
|
+
};
|
|
245
|
+
rules: {
|
|
246
|
+
[x: string]: SolidRuleConfig;
|
|
247
|
+
};
|
|
248
|
+
};
|
|
249
|
+
"flat/recommended-type-checked": {
|
|
250
|
+
name: string;
|
|
251
|
+
plugins: {
|
|
252
|
+
solid: {
|
|
253
|
+
meta: {
|
|
254
|
+
name: string;
|
|
255
|
+
};
|
|
256
|
+
rules: {
|
|
257
|
+
"components-return-once": _$_typescript_eslint_utils_ts_eslint0.RuleModule<"noConditionalReturn" | "noEarlyReturn", [({
|
|
258
|
+
typescriptEnabled?: boolean;
|
|
259
|
+
} | undefined)?], unknown, _$_typescript_eslint_utils_ts_eslint0.RuleListener> & {
|
|
260
|
+
name: string;
|
|
261
|
+
};
|
|
262
|
+
"jsx-no-duplicate-props": _$_typescript_eslint_utils_ts_eslint0.RuleModule<"noDuplicateChildren", [], unknown, _$_typescript_eslint_utils_ts_eslint0.RuleListener> & {
|
|
263
|
+
name: string;
|
|
264
|
+
};
|
|
265
|
+
"no-destructure": _$_typescript_eslint_utils_ts_eslint0.RuleModule<"noDestructure", [({
|
|
266
|
+
typescriptEnabled?: boolean;
|
|
267
|
+
} | undefined)?], unknown, _$_typescript_eslint_utils_ts_eslint0.RuleListener> & {
|
|
268
|
+
name: string;
|
|
269
|
+
};
|
|
270
|
+
"no-leaf-owner-operations": _$_typescript_eslint_utils_ts_eslint0.RuleModule<"noCleanup" | "noFlush" | "noPrimitives", [], unknown, _$_typescript_eslint_utils_ts_eslint0.RuleListener> & {
|
|
271
|
+
name: string;
|
|
272
|
+
};
|
|
273
|
+
"no-owned-scope-writes": _$_typescript_eslint_utils_ts_eslint0.RuleModule<"noActionInOwnedScope" | "noOwnedScopeWrite", [({
|
|
274
|
+
typescriptEnabled?: boolean;
|
|
275
|
+
} | undefined)?], unknown, _$_typescript_eslint_utils_ts_eslint0.RuleListener> & {
|
|
276
|
+
name: string;
|
|
277
|
+
};
|
|
278
|
+
"no-reactive-read-after-await": _$_typescript_eslint_utils_ts_eslint0.RuleModule<"reactiveReadAfterAwait", [({
|
|
279
|
+
typescriptEnabled?: boolean;
|
|
280
|
+
} | undefined)?], unknown, _$_typescript_eslint_utils_ts_eslint0.RuleListener> & {
|
|
281
|
+
name: string;
|
|
282
|
+
};
|
|
283
|
+
"no-stale-props-alias": _$_typescript_eslint_utils_ts_eslint0.RuleModule<"stalePropsAlias", [({
|
|
284
|
+
typescriptEnabled?: boolean;
|
|
285
|
+
} | undefined)?], unknown, _$_typescript_eslint_utils_ts_eslint0.RuleListener> & {
|
|
286
|
+
name: string;
|
|
287
|
+
};
|
|
288
|
+
"no-untracked-read-in-effect-apply": _$_typescript_eslint_utils_ts_eslint0.RuleModule<"signalRead" | "storeProxyRead", [], unknown, _$_typescript_eslint_utils_ts_eslint0.RuleListener> & {
|
|
289
|
+
name: string;
|
|
290
|
+
};
|
|
291
|
+
"prefer-for": _$_typescript_eslint_utils_ts_eslint0.RuleModule<"preferFor", [({
|
|
292
|
+
typescriptEnabled?: boolean;
|
|
293
|
+
} | undefined)?], unknown, _$_typescript_eslint_utils_ts_eslint0.RuleListener> & {
|
|
294
|
+
name: string;
|
|
295
|
+
};
|
|
296
|
+
"prefer-show": _$_typescript_eslint_utils_ts_eslint0.RuleModule<"convertToShow" | "preferShowAnd" | "preferShowTernary", [], unknown, _$_typescript_eslint_utils_ts_eslint0.RuleListener> & {
|
|
297
|
+
name: string;
|
|
298
|
+
};
|
|
299
|
+
"self-closing-comp": _$_typescript_eslint_utils_ts_eslint0.RuleModule<"dontSelfClose" | "selfClose", [({
|
|
300
|
+
component?: "all" | "none";
|
|
301
|
+
html?: "all" | "none" | "void";
|
|
302
|
+
} | undefined)?], unknown, _$_typescript_eslint_utils_ts_eslint0.RuleListener> & {
|
|
303
|
+
name: string;
|
|
304
|
+
};
|
|
305
|
+
};
|
|
306
|
+
};
|
|
307
|
+
};
|
|
308
|
+
rules: {
|
|
309
|
+
[x: string]: SolidRuleConfig;
|
|
310
|
+
};
|
|
311
|
+
};
|
|
312
|
+
};
|
|
313
|
+
};
|
|
314
|
+
export = pluginWithConfigs;
|
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,315 @@
|
|
|
1
|
+
import * as _$_typescript_eslint_utils_ts_eslint0 from "@typescript-eslint/utils/ts-eslint";
|
|
2
|
+
|
|
3
|
+
//#region src/configs/recommended.d.ts
|
|
4
|
+
type SolidRuleLevel = "off" | "warn" | "error";
|
|
5
|
+
type SolidRuleConfig = SolidRuleLevel | [SolidRuleLevel, ...unknown[]];
|
|
6
|
+
type SolidRuleMap = Record<string, SolidRuleConfig>;
|
|
7
|
+
//#endregion
|
|
8
|
+
//#region src/index.d.ts
|
|
9
|
+
declare const pluginWithConfigs: {
|
|
10
|
+
meta: {
|
|
11
|
+
name: string;
|
|
12
|
+
};
|
|
13
|
+
rules: {
|
|
14
|
+
"components-return-once": _$_typescript_eslint_utils_ts_eslint0.RuleModule<"noConditionalReturn" | "noEarlyReturn", [({
|
|
15
|
+
typescriptEnabled?: boolean;
|
|
16
|
+
} | undefined)?], unknown, _$_typescript_eslint_utils_ts_eslint0.RuleListener> & {
|
|
17
|
+
name: string;
|
|
18
|
+
};
|
|
19
|
+
"jsx-no-duplicate-props": _$_typescript_eslint_utils_ts_eslint0.RuleModule<"noDuplicateChildren", [], unknown, _$_typescript_eslint_utils_ts_eslint0.RuleListener> & {
|
|
20
|
+
name: string;
|
|
21
|
+
};
|
|
22
|
+
"no-destructure": _$_typescript_eslint_utils_ts_eslint0.RuleModule<"noDestructure", [({
|
|
23
|
+
typescriptEnabled?: boolean;
|
|
24
|
+
} | undefined)?], unknown, _$_typescript_eslint_utils_ts_eslint0.RuleListener> & {
|
|
25
|
+
name: string;
|
|
26
|
+
};
|
|
27
|
+
"no-leaf-owner-operations": _$_typescript_eslint_utils_ts_eslint0.RuleModule<"noCleanup" | "noFlush" | "noPrimitives", [], unknown, _$_typescript_eslint_utils_ts_eslint0.RuleListener> & {
|
|
28
|
+
name: string;
|
|
29
|
+
};
|
|
30
|
+
"no-owned-scope-writes": _$_typescript_eslint_utils_ts_eslint0.RuleModule<"noActionInOwnedScope" | "noOwnedScopeWrite", [({
|
|
31
|
+
typescriptEnabled?: boolean;
|
|
32
|
+
} | undefined)?], unknown, _$_typescript_eslint_utils_ts_eslint0.RuleListener> & {
|
|
33
|
+
name: string;
|
|
34
|
+
};
|
|
35
|
+
"no-reactive-read-after-await": _$_typescript_eslint_utils_ts_eslint0.RuleModule<"reactiveReadAfterAwait", [({
|
|
36
|
+
typescriptEnabled?: boolean;
|
|
37
|
+
} | undefined)?], unknown, _$_typescript_eslint_utils_ts_eslint0.RuleListener> & {
|
|
38
|
+
name: string;
|
|
39
|
+
};
|
|
40
|
+
"no-stale-props-alias": _$_typescript_eslint_utils_ts_eslint0.RuleModule<"stalePropsAlias", [({
|
|
41
|
+
typescriptEnabled?: boolean;
|
|
42
|
+
} | undefined)?], unknown, _$_typescript_eslint_utils_ts_eslint0.RuleListener> & {
|
|
43
|
+
name: string;
|
|
44
|
+
};
|
|
45
|
+
"no-untracked-read-in-effect-apply": _$_typescript_eslint_utils_ts_eslint0.RuleModule<"signalRead" | "storeProxyRead", [], unknown, _$_typescript_eslint_utils_ts_eslint0.RuleListener> & {
|
|
46
|
+
name: string;
|
|
47
|
+
};
|
|
48
|
+
"prefer-for": _$_typescript_eslint_utils_ts_eslint0.RuleModule<"preferFor", [({
|
|
49
|
+
typescriptEnabled?: boolean;
|
|
50
|
+
} | undefined)?], unknown, _$_typescript_eslint_utils_ts_eslint0.RuleListener> & {
|
|
51
|
+
name: string;
|
|
52
|
+
};
|
|
53
|
+
"prefer-show": _$_typescript_eslint_utils_ts_eslint0.RuleModule<"convertToShow" | "preferShowAnd" | "preferShowTernary", [], unknown, _$_typescript_eslint_utils_ts_eslint0.RuleListener> & {
|
|
54
|
+
name: string;
|
|
55
|
+
};
|
|
56
|
+
"self-closing-comp": _$_typescript_eslint_utils_ts_eslint0.RuleModule<"dontSelfClose" | "selfClose", [({
|
|
57
|
+
component?: "all" | "none";
|
|
58
|
+
html?: "all" | "none" | "void";
|
|
59
|
+
} | undefined)?], unknown, _$_typescript_eslint_utils_ts_eslint0.RuleListener> & {
|
|
60
|
+
name: string;
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
configs: {
|
|
64
|
+
recommended: {
|
|
65
|
+
name: string;
|
|
66
|
+
plugins: {
|
|
67
|
+
solid: {
|
|
68
|
+
meta: {
|
|
69
|
+
name: string;
|
|
70
|
+
};
|
|
71
|
+
rules: {
|
|
72
|
+
"components-return-once": _$_typescript_eslint_utils_ts_eslint0.RuleModule<"noConditionalReturn" | "noEarlyReturn", [({
|
|
73
|
+
typescriptEnabled?: boolean;
|
|
74
|
+
} | undefined)?], unknown, _$_typescript_eslint_utils_ts_eslint0.RuleListener> & {
|
|
75
|
+
name: string;
|
|
76
|
+
};
|
|
77
|
+
"jsx-no-duplicate-props": _$_typescript_eslint_utils_ts_eslint0.RuleModule<"noDuplicateChildren", [], unknown, _$_typescript_eslint_utils_ts_eslint0.RuleListener> & {
|
|
78
|
+
name: string;
|
|
79
|
+
};
|
|
80
|
+
"no-destructure": _$_typescript_eslint_utils_ts_eslint0.RuleModule<"noDestructure", [({
|
|
81
|
+
typescriptEnabled?: boolean;
|
|
82
|
+
} | undefined)?], unknown, _$_typescript_eslint_utils_ts_eslint0.RuleListener> & {
|
|
83
|
+
name: string;
|
|
84
|
+
};
|
|
85
|
+
"no-leaf-owner-operations": _$_typescript_eslint_utils_ts_eslint0.RuleModule<"noCleanup" | "noFlush" | "noPrimitives", [], unknown, _$_typescript_eslint_utils_ts_eslint0.RuleListener> & {
|
|
86
|
+
name: string;
|
|
87
|
+
};
|
|
88
|
+
"no-owned-scope-writes": _$_typescript_eslint_utils_ts_eslint0.RuleModule<"noActionInOwnedScope" | "noOwnedScopeWrite", [({
|
|
89
|
+
typescriptEnabled?: boolean;
|
|
90
|
+
} | undefined)?], unknown, _$_typescript_eslint_utils_ts_eslint0.RuleListener> & {
|
|
91
|
+
name: string;
|
|
92
|
+
};
|
|
93
|
+
"no-reactive-read-after-await": _$_typescript_eslint_utils_ts_eslint0.RuleModule<"reactiveReadAfterAwait", [({
|
|
94
|
+
typescriptEnabled?: boolean;
|
|
95
|
+
} | undefined)?], unknown, _$_typescript_eslint_utils_ts_eslint0.RuleListener> & {
|
|
96
|
+
name: string;
|
|
97
|
+
};
|
|
98
|
+
"no-stale-props-alias": _$_typescript_eslint_utils_ts_eslint0.RuleModule<"stalePropsAlias", [({
|
|
99
|
+
typescriptEnabled?: boolean;
|
|
100
|
+
} | undefined)?], unknown, _$_typescript_eslint_utils_ts_eslint0.RuleListener> & {
|
|
101
|
+
name: string;
|
|
102
|
+
};
|
|
103
|
+
"no-untracked-read-in-effect-apply": _$_typescript_eslint_utils_ts_eslint0.RuleModule<"signalRead" | "storeProxyRead", [], unknown, _$_typescript_eslint_utils_ts_eslint0.RuleListener> & {
|
|
104
|
+
name: string;
|
|
105
|
+
};
|
|
106
|
+
"prefer-for": _$_typescript_eslint_utils_ts_eslint0.RuleModule<"preferFor", [({
|
|
107
|
+
typescriptEnabled?: boolean;
|
|
108
|
+
} | undefined)?], unknown, _$_typescript_eslint_utils_ts_eslint0.RuleListener> & {
|
|
109
|
+
name: string;
|
|
110
|
+
};
|
|
111
|
+
"prefer-show": _$_typescript_eslint_utils_ts_eslint0.RuleModule<"convertToShow" | "preferShowAnd" | "preferShowTernary", [], unknown, _$_typescript_eslint_utils_ts_eslint0.RuleListener> & {
|
|
112
|
+
name: string;
|
|
113
|
+
};
|
|
114
|
+
"self-closing-comp": _$_typescript_eslint_utils_ts_eslint0.RuleModule<"dontSelfClose" | "selfClose", [({
|
|
115
|
+
component?: "all" | "none";
|
|
116
|
+
html?: "all" | "none" | "void";
|
|
117
|
+
} | undefined)?], unknown, _$_typescript_eslint_utils_ts_eslint0.RuleListener> & {
|
|
118
|
+
name: string;
|
|
119
|
+
};
|
|
120
|
+
};
|
|
121
|
+
};
|
|
122
|
+
};
|
|
123
|
+
rules: SolidRuleMap;
|
|
124
|
+
};
|
|
125
|
+
"flat/recommended": {
|
|
126
|
+
name: string;
|
|
127
|
+
plugins: {
|
|
128
|
+
solid: {
|
|
129
|
+
meta: {
|
|
130
|
+
name: string;
|
|
131
|
+
};
|
|
132
|
+
rules: {
|
|
133
|
+
"components-return-once": _$_typescript_eslint_utils_ts_eslint0.RuleModule<"noConditionalReturn" | "noEarlyReturn", [({
|
|
134
|
+
typescriptEnabled?: boolean;
|
|
135
|
+
} | undefined)?], unknown, _$_typescript_eslint_utils_ts_eslint0.RuleListener> & {
|
|
136
|
+
name: string;
|
|
137
|
+
};
|
|
138
|
+
"jsx-no-duplicate-props": _$_typescript_eslint_utils_ts_eslint0.RuleModule<"noDuplicateChildren", [], unknown, _$_typescript_eslint_utils_ts_eslint0.RuleListener> & {
|
|
139
|
+
name: string;
|
|
140
|
+
};
|
|
141
|
+
"no-destructure": _$_typescript_eslint_utils_ts_eslint0.RuleModule<"noDestructure", [({
|
|
142
|
+
typescriptEnabled?: boolean;
|
|
143
|
+
} | undefined)?], unknown, _$_typescript_eslint_utils_ts_eslint0.RuleListener> & {
|
|
144
|
+
name: string;
|
|
145
|
+
};
|
|
146
|
+
"no-leaf-owner-operations": _$_typescript_eslint_utils_ts_eslint0.RuleModule<"noCleanup" | "noFlush" | "noPrimitives", [], unknown, _$_typescript_eslint_utils_ts_eslint0.RuleListener> & {
|
|
147
|
+
name: string;
|
|
148
|
+
};
|
|
149
|
+
"no-owned-scope-writes": _$_typescript_eslint_utils_ts_eslint0.RuleModule<"noActionInOwnedScope" | "noOwnedScopeWrite", [({
|
|
150
|
+
typescriptEnabled?: boolean;
|
|
151
|
+
} | undefined)?], unknown, _$_typescript_eslint_utils_ts_eslint0.RuleListener> & {
|
|
152
|
+
name: string;
|
|
153
|
+
};
|
|
154
|
+
"no-reactive-read-after-await": _$_typescript_eslint_utils_ts_eslint0.RuleModule<"reactiveReadAfterAwait", [({
|
|
155
|
+
typescriptEnabled?: boolean;
|
|
156
|
+
} | undefined)?], unknown, _$_typescript_eslint_utils_ts_eslint0.RuleListener> & {
|
|
157
|
+
name: string;
|
|
158
|
+
};
|
|
159
|
+
"no-stale-props-alias": _$_typescript_eslint_utils_ts_eslint0.RuleModule<"stalePropsAlias", [({
|
|
160
|
+
typescriptEnabled?: boolean;
|
|
161
|
+
} | undefined)?], unknown, _$_typescript_eslint_utils_ts_eslint0.RuleListener> & {
|
|
162
|
+
name: string;
|
|
163
|
+
};
|
|
164
|
+
"no-untracked-read-in-effect-apply": _$_typescript_eslint_utils_ts_eslint0.RuleModule<"signalRead" | "storeProxyRead", [], unknown, _$_typescript_eslint_utils_ts_eslint0.RuleListener> & {
|
|
165
|
+
name: string;
|
|
166
|
+
};
|
|
167
|
+
"prefer-for": _$_typescript_eslint_utils_ts_eslint0.RuleModule<"preferFor", [({
|
|
168
|
+
typescriptEnabled?: boolean;
|
|
169
|
+
} | undefined)?], unknown, _$_typescript_eslint_utils_ts_eslint0.RuleListener> & {
|
|
170
|
+
name: string;
|
|
171
|
+
};
|
|
172
|
+
"prefer-show": _$_typescript_eslint_utils_ts_eslint0.RuleModule<"convertToShow" | "preferShowAnd" | "preferShowTernary", [], unknown, _$_typescript_eslint_utils_ts_eslint0.RuleListener> & {
|
|
173
|
+
name: string;
|
|
174
|
+
};
|
|
175
|
+
"self-closing-comp": _$_typescript_eslint_utils_ts_eslint0.RuleModule<"dontSelfClose" | "selfClose", [({
|
|
176
|
+
component?: "all" | "none";
|
|
177
|
+
html?: "all" | "none" | "void";
|
|
178
|
+
} | undefined)?], unknown, _$_typescript_eslint_utils_ts_eslint0.RuleListener> & {
|
|
179
|
+
name: string;
|
|
180
|
+
};
|
|
181
|
+
};
|
|
182
|
+
};
|
|
183
|
+
};
|
|
184
|
+
rules: SolidRuleMap;
|
|
185
|
+
};
|
|
186
|
+
"recommended-type-checked": {
|
|
187
|
+
name: string;
|
|
188
|
+
plugins: {
|
|
189
|
+
solid: {
|
|
190
|
+
meta: {
|
|
191
|
+
name: string;
|
|
192
|
+
};
|
|
193
|
+
rules: {
|
|
194
|
+
"components-return-once": _$_typescript_eslint_utils_ts_eslint0.RuleModule<"noConditionalReturn" | "noEarlyReturn", [({
|
|
195
|
+
typescriptEnabled?: boolean;
|
|
196
|
+
} | undefined)?], unknown, _$_typescript_eslint_utils_ts_eslint0.RuleListener> & {
|
|
197
|
+
name: string;
|
|
198
|
+
};
|
|
199
|
+
"jsx-no-duplicate-props": _$_typescript_eslint_utils_ts_eslint0.RuleModule<"noDuplicateChildren", [], unknown, _$_typescript_eslint_utils_ts_eslint0.RuleListener> & {
|
|
200
|
+
name: string;
|
|
201
|
+
};
|
|
202
|
+
"no-destructure": _$_typescript_eslint_utils_ts_eslint0.RuleModule<"noDestructure", [({
|
|
203
|
+
typescriptEnabled?: boolean;
|
|
204
|
+
} | undefined)?], unknown, _$_typescript_eslint_utils_ts_eslint0.RuleListener> & {
|
|
205
|
+
name: string;
|
|
206
|
+
};
|
|
207
|
+
"no-leaf-owner-operations": _$_typescript_eslint_utils_ts_eslint0.RuleModule<"noCleanup" | "noFlush" | "noPrimitives", [], unknown, _$_typescript_eslint_utils_ts_eslint0.RuleListener> & {
|
|
208
|
+
name: string;
|
|
209
|
+
};
|
|
210
|
+
"no-owned-scope-writes": _$_typescript_eslint_utils_ts_eslint0.RuleModule<"noActionInOwnedScope" | "noOwnedScopeWrite", [({
|
|
211
|
+
typescriptEnabled?: boolean;
|
|
212
|
+
} | undefined)?], unknown, _$_typescript_eslint_utils_ts_eslint0.RuleListener> & {
|
|
213
|
+
name: string;
|
|
214
|
+
};
|
|
215
|
+
"no-reactive-read-after-await": _$_typescript_eslint_utils_ts_eslint0.RuleModule<"reactiveReadAfterAwait", [({
|
|
216
|
+
typescriptEnabled?: boolean;
|
|
217
|
+
} | undefined)?], unknown, _$_typescript_eslint_utils_ts_eslint0.RuleListener> & {
|
|
218
|
+
name: string;
|
|
219
|
+
};
|
|
220
|
+
"no-stale-props-alias": _$_typescript_eslint_utils_ts_eslint0.RuleModule<"stalePropsAlias", [({
|
|
221
|
+
typescriptEnabled?: boolean;
|
|
222
|
+
} | undefined)?], unknown, _$_typescript_eslint_utils_ts_eslint0.RuleListener> & {
|
|
223
|
+
name: string;
|
|
224
|
+
};
|
|
225
|
+
"no-untracked-read-in-effect-apply": _$_typescript_eslint_utils_ts_eslint0.RuleModule<"signalRead" | "storeProxyRead", [], unknown, _$_typescript_eslint_utils_ts_eslint0.RuleListener> & {
|
|
226
|
+
name: string;
|
|
227
|
+
};
|
|
228
|
+
"prefer-for": _$_typescript_eslint_utils_ts_eslint0.RuleModule<"preferFor", [({
|
|
229
|
+
typescriptEnabled?: boolean;
|
|
230
|
+
} | undefined)?], unknown, _$_typescript_eslint_utils_ts_eslint0.RuleListener> & {
|
|
231
|
+
name: string;
|
|
232
|
+
};
|
|
233
|
+
"prefer-show": _$_typescript_eslint_utils_ts_eslint0.RuleModule<"convertToShow" | "preferShowAnd" | "preferShowTernary", [], unknown, _$_typescript_eslint_utils_ts_eslint0.RuleListener> & {
|
|
234
|
+
name: string;
|
|
235
|
+
};
|
|
236
|
+
"self-closing-comp": _$_typescript_eslint_utils_ts_eslint0.RuleModule<"dontSelfClose" | "selfClose", [({
|
|
237
|
+
component?: "all" | "none";
|
|
238
|
+
html?: "all" | "none" | "void";
|
|
239
|
+
} | undefined)?], unknown, _$_typescript_eslint_utils_ts_eslint0.RuleListener> & {
|
|
240
|
+
name: string;
|
|
241
|
+
};
|
|
242
|
+
};
|
|
243
|
+
};
|
|
244
|
+
};
|
|
245
|
+
rules: {
|
|
246
|
+
[x: string]: SolidRuleConfig;
|
|
247
|
+
};
|
|
248
|
+
};
|
|
249
|
+
"flat/recommended-type-checked": {
|
|
250
|
+
name: string;
|
|
251
|
+
plugins: {
|
|
252
|
+
solid: {
|
|
253
|
+
meta: {
|
|
254
|
+
name: string;
|
|
255
|
+
};
|
|
256
|
+
rules: {
|
|
257
|
+
"components-return-once": _$_typescript_eslint_utils_ts_eslint0.RuleModule<"noConditionalReturn" | "noEarlyReturn", [({
|
|
258
|
+
typescriptEnabled?: boolean;
|
|
259
|
+
} | undefined)?], unknown, _$_typescript_eslint_utils_ts_eslint0.RuleListener> & {
|
|
260
|
+
name: string;
|
|
261
|
+
};
|
|
262
|
+
"jsx-no-duplicate-props": _$_typescript_eslint_utils_ts_eslint0.RuleModule<"noDuplicateChildren", [], unknown, _$_typescript_eslint_utils_ts_eslint0.RuleListener> & {
|
|
263
|
+
name: string;
|
|
264
|
+
};
|
|
265
|
+
"no-destructure": _$_typescript_eslint_utils_ts_eslint0.RuleModule<"noDestructure", [({
|
|
266
|
+
typescriptEnabled?: boolean;
|
|
267
|
+
} | undefined)?], unknown, _$_typescript_eslint_utils_ts_eslint0.RuleListener> & {
|
|
268
|
+
name: string;
|
|
269
|
+
};
|
|
270
|
+
"no-leaf-owner-operations": _$_typescript_eslint_utils_ts_eslint0.RuleModule<"noCleanup" | "noFlush" | "noPrimitives", [], unknown, _$_typescript_eslint_utils_ts_eslint0.RuleListener> & {
|
|
271
|
+
name: string;
|
|
272
|
+
};
|
|
273
|
+
"no-owned-scope-writes": _$_typescript_eslint_utils_ts_eslint0.RuleModule<"noActionInOwnedScope" | "noOwnedScopeWrite", [({
|
|
274
|
+
typescriptEnabled?: boolean;
|
|
275
|
+
} | undefined)?], unknown, _$_typescript_eslint_utils_ts_eslint0.RuleListener> & {
|
|
276
|
+
name: string;
|
|
277
|
+
};
|
|
278
|
+
"no-reactive-read-after-await": _$_typescript_eslint_utils_ts_eslint0.RuleModule<"reactiveReadAfterAwait", [({
|
|
279
|
+
typescriptEnabled?: boolean;
|
|
280
|
+
} | undefined)?], unknown, _$_typescript_eslint_utils_ts_eslint0.RuleListener> & {
|
|
281
|
+
name: string;
|
|
282
|
+
};
|
|
283
|
+
"no-stale-props-alias": _$_typescript_eslint_utils_ts_eslint0.RuleModule<"stalePropsAlias", [({
|
|
284
|
+
typescriptEnabled?: boolean;
|
|
285
|
+
} | undefined)?], unknown, _$_typescript_eslint_utils_ts_eslint0.RuleListener> & {
|
|
286
|
+
name: string;
|
|
287
|
+
};
|
|
288
|
+
"no-untracked-read-in-effect-apply": _$_typescript_eslint_utils_ts_eslint0.RuleModule<"signalRead" | "storeProxyRead", [], unknown, _$_typescript_eslint_utils_ts_eslint0.RuleListener> & {
|
|
289
|
+
name: string;
|
|
290
|
+
};
|
|
291
|
+
"prefer-for": _$_typescript_eslint_utils_ts_eslint0.RuleModule<"preferFor", [({
|
|
292
|
+
typescriptEnabled?: boolean;
|
|
293
|
+
} | undefined)?], unknown, _$_typescript_eslint_utils_ts_eslint0.RuleListener> & {
|
|
294
|
+
name: string;
|
|
295
|
+
};
|
|
296
|
+
"prefer-show": _$_typescript_eslint_utils_ts_eslint0.RuleModule<"convertToShow" | "preferShowAnd" | "preferShowTernary", [], unknown, _$_typescript_eslint_utils_ts_eslint0.RuleListener> & {
|
|
297
|
+
name: string;
|
|
298
|
+
};
|
|
299
|
+
"self-closing-comp": _$_typescript_eslint_utils_ts_eslint0.RuleModule<"dontSelfClose" | "selfClose", [({
|
|
300
|
+
component?: "all" | "none";
|
|
301
|
+
html?: "all" | "none" | "void";
|
|
302
|
+
} | undefined)?], unknown, _$_typescript_eslint_utils_ts_eslint0.RuleListener> & {
|
|
303
|
+
name: string;
|
|
304
|
+
};
|
|
305
|
+
};
|
|
306
|
+
};
|
|
307
|
+
};
|
|
308
|
+
rules: {
|
|
309
|
+
[x: string]: SolidRuleConfig;
|
|
310
|
+
};
|
|
311
|
+
};
|
|
312
|
+
};
|
|
313
|
+
};
|
|
314
|
+
//#endregion
|
|
315
|
+
export { pluginWithConfigs as default };
|