@pobammer-ts/small-rules 2.0.0 → 2.2.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/dist/index.d.ts +157 -278
- package/dist/index.js +1575 -548
- package/package.json +30 -29
package/dist/index.d.ts
CHANGED
|
@@ -1,16 +1,7 @@
|
|
|
1
1
|
//#region src/index.d.ts
|
|
2
2
|
declare const smallRules: import("oxlint-plugin-utilities").Plugin<{
|
|
3
|
-
"array-type-generic": import("oxlint-plugin-utilities").
|
|
3
|
+
"array-type-generic": import("oxlint-plugin-utilities").CreateOnceRule<readonly [], "useGenericArrayType", undefined>;
|
|
4
4
|
"ban-instances": import("oxlint-plugin-utilities").CreateRule<readonly [{
|
|
5
|
-
readonly bannedInstances?: readonly string[] | {
|
|
6
|
-
readonly [x: string]: string;
|
|
7
|
-
};
|
|
8
|
-
readonly bannedProperties?: {
|
|
9
|
-
readonly [x: string]: {
|
|
10
|
-
readonly [x: string]: string;
|
|
11
|
-
};
|
|
12
|
-
};
|
|
13
|
-
}], "bannedInstance" | "bannedInstanceCustom" | "bannedProperty" | "bannedPropertyCustom", readonly [{
|
|
14
5
|
readonly additionalProperties: false;
|
|
15
6
|
readonly properties: {
|
|
16
7
|
readonly bannedInstances: {
|
|
@@ -39,13 +30,9 @@ declare const smallRules: import("oxlint-plugin-utilities").Plugin<{
|
|
|
39
30
|
};
|
|
40
31
|
};
|
|
41
32
|
readonly type: "object";
|
|
42
|
-
}]>;
|
|
43
|
-
"ban-react-fc": import("oxlint-plugin-utilities").
|
|
33
|
+
}], "bannedInstance" | "bannedInstanceCustom" | "bannedProperty" | "bannedPropertyCustom", undefined>;
|
|
34
|
+
"ban-react-fc": import("oxlint-plugin-utilities").CreateOnceRule<readonly [], "banReactFC", undefined>;
|
|
44
35
|
"ban-types": import("oxlint-plugin-utilities").CreateRule<readonly [{
|
|
45
|
-
readonly bannedTypes?: readonly string[] | {
|
|
46
|
-
readonly [x: string]: string;
|
|
47
|
-
};
|
|
48
|
-
}], "bannedType" | "bannedTypeWithReplacement", readonly [{
|
|
49
36
|
readonly additionalProperties: false;
|
|
50
37
|
readonly properties: {
|
|
51
38
|
readonly bannedTypes: {
|
|
@@ -64,10 +51,8 @@ declare const smallRules: import("oxlint-plugin-utilities").Plugin<{
|
|
|
64
51
|
};
|
|
65
52
|
};
|
|
66
53
|
readonly type: "object";
|
|
67
|
-
}]>;
|
|
54
|
+
}], "bannedType" | "bannedTypeWithReplacement", undefined>;
|
|
68
55
|
"directive-disable-enable-pair": import("oxlint-plugin-utilities").CreateRule<readonly [{
|
|
69
|
-
readonly allowWholeFile?: boolean;
|
|
70
|
-
}], "missingPair" | "missingRulePair", readonly [{
|
|
71
56
|
readonly additionalProperties: false;
|
|
72
57
|
readonly properties: {
|
|
73
58
|
allowWholeFile: {
|
|
@@ -75,21 +60,19 @@ declare const smallRules: import("oxlint-plugin-utilities").Plugin<{
|
|
|
75
60
|
};
|
|
76
61
|
};
|
|
77
62
|
readonly type: "object";
|
|
78
|
-
}]>;
|
|
79
|
-
"directive-no-aggregating-enable": import("oxlint-plugin-utilities").CreateRule<readonly [], "aggregatingEnable",
|
|
80
|
-
"directive-no-duplicate-disable": import("oxlint-plugin-utilities").CreateRule<readonly [], "duplicate" | "duplicateRule",
|
|
81
|
-
"directive-no-restricted-disable": import("oxlint-plugin-utilities").CreateRule<
|
|
63
|
+
}], "missingPair" | "missingRulePair", undefined>;
|
|
64
|
+
"directive-no-aggregating-enable": import("oxlint-plugin-utilities").CreateRule<readonly [], "aggregatingEnable", undefined>;
|
|
65
|
+
"directive-no-duplicate-disable": import("oxlint-plugin-utilities").CreateRule<readonly [], "duplicate" | "duplicateRule", undefined>;
|
|
66
|
+
"directive-no-restricted-disable": import("oxlint-plugin-utilities").CreateRule<{
|
|
82
67
|
readonly items: {
|
|
83
68
|
type: "string";
|
|
84
69
|
};
|
|
85
70
|
readonly type: "array";
|
|
86
71
|
readonly uniqueItems: true;
|
|
87
|
-
}>;
|
|
88
|
-
"directive-no-unlimited-disable": import("oxlint-plugin-utilities").CreateRule<readonly [], "unexpected",
|
|
89
|
-
"directive-no-unused-enable": import("oxlint-plugin-utilities").CreateRule<readonly [], "unused" | "unusedRule",
|
|
72
|
+
}, "disallow", undefined>;
|
|
73
|
+
"directive-no-unlimited-disable": import("oxlint-plugin-utilities").CreateRule<readonly [], "unexpected", undefined>;
|
|
74
|
+
"directive-no-unused-enable": import("oxlint-plugin-utilities").CreateRule<readonly [], "unused" | "unusedRule", undefined>;
|
|
90
75
|
"directive-no-use": import("oxlint-plugin-utilities").CreateRule<readonly [{
|
|
91
|
-
readonly allow?: readonly string[];
|
|
92
|
-
}], "disallow", readonly [{
|
|
93
76
|
readonly additionalProperties: false;
|
|
94
77
|
readonly properties: {
|
|
95
78
|
readonly allow: {
|
|
@@ -101,10 +84,8 @@ declare const smallRules: import("oxlint-plugin-utilities").Plugin<{
|
|
|
101
84
|
};
|
|
102
85
|
};
|
|
103
86
|
readonly type: "object";
|
|
104
|
-
}]>;
|
|
87
|
+
}], "disallow", undefined>;
|
|
105
88
|
"directive-require-description": import("oxlint-plugin-utilities").CreateRule<readonly [{
|
|
106
|
-
readonly ignore?: readonly string[];
|
|
107
|
-
}], "missingDescription", readonly [{
|
|
108
89
|
readonly additionalProperties: false;
|
|
109
90
|
readonly properties: {
|
|
110
91
|
readonly ignore: {
|
|
@@ -116,14 +97,8 @@ declare const smallRules: import("oxlint-plugin-utilities").Plugin<{
|
|
|
116
97
|
};
|
|
117
98
|
};
|
|
118
99
|
readonly type: "object";
|
|
119
|
-
}]>;
|
|
100
|
+
}], "missingDescription", undefined>;
|
|
120
101
|
"enforce-ianitor-check-type": import("oxlint-plugin-utilities").CreateRule<readonly [{
|
|
121
|
-
readonly baseThreshold?: number;
|
|
122
|
-
readonly errorThreshold?: number;
|
|
123
|
-
readonly interfacePenalty?: number;
|
|
124
|
-
readonly performanceMode?: boolean;
|
|
125
|
-
readonly warnThreshold?: number;
|
|
126
|
-
}], "complexInterfaceNeedsCheck" | "missingIanitorCheckType", readonly [{
|
|
127
102
|
readonly additionalProperties: false;
|
|
128
103
|
readonly properties: {
|
|
129
104
|
readonly baseThreshold: {
|
|
@@ -147,15 +122,8 @@ declare const smallRules: import("oxlint-plugin-utilities").Plugin<{
|
|
|
147
122
|
};
|
|
148
123
|
};
|
|
149
124
|
readonly type: "object";
|
|
150
|
-
}]>;
|
|
125
|
+
}], "complexInterfaceNeedsCheck" | "missingIanitorCheckType", undefined>;
|
|
151
126
|
"memoized-effect-dependencies": import("oxlint-plugin-utilities").CreateRule<readonly [{
|
|
152
|
-
readonly environment?: "roblox-ts" | "standard";
|
|
153
|
-
readonly hooks?: readonly {
|
|
154
|
-
readonly dependenciesIndex?: number;
|
|
155
|
-
readonly name: string;
|
|
156
|
-
}[];
|
|
157
|
-
readonly mode?: "aggressive" | "definite" | "moderate";
|
|
158
|
-
}], "unmemoizedDependency", readonly [{
|
|
159
127
|
readonly additionalProperties: false;
|
|
160
128
|
readonly properties: {
|
|
161
129
|
readonly environment: {
|
|
@@ -191,11 +159,8 @@ declare const smallRules: import("oxlint-plugin-utilities").Plugin<{
|
|
|
191
159
|
};
|
|
192
160
|
};
|
|
193
161
|
readonly type: "object";
|
|
194
|
-
}]>;
|
|
162
|
+
}], "unmemoizedDependency", undefined>;
|
|
195
163
|
"no-array-constructor-elements": import("oxlint-plugin-utilities").CreateRule<readonly [{
|
|
196
|
-
readonly environment?: "roblox-ts" | "standard";
|
|
197
|
-
readonly requireExplicitGenericOnNewArray?: boolean;
|
|
198
|
-
}], "avoidConstructorEnumeration" | "avoidLengthConstructorInStandard" | "avoidSingleArgumentConstructor" | "collapseArrayPushInitialization" | "requireExplicitGenericOnNewArray" | "suggestArrayFromLength" | "suggestArrayLiteral" | "suggestCollapseArrayPushInitialization", readonly [{
|
|
199
164
|
readonly additionalProperties: false;
|
|
200
165
|
readonly properties: {
|
|
201
166
|
readonly environment: {
|
|
@@ -211,24 +176,27 @@ declare const smallRules: import("oxlint-plugin-utilities").Plugin<{
|
|
|
211
176
|
};
|
|
212
177
|
};
|
|
213
178
|
readonly type: "object";
|
|
214
|
-
}]>;
|
|
179
|
+
}], "avoidConstructorEnumeration" | "avoidLengthConstructorInStandard" | "avoidSingleArgumentConstructor" | "collapseArrayPushInitialization" | "requireExplicitGenericOnNewArray" | "suggestArrayFromLength" | "suggestArrayLiteral" | "suggestCollapseArrayPushInitialization", undefined>;
|
|
180
|
+
"no-array-constructor-index-assignment": import("oxlint-plugin-utilities").CreateRule<readonly [], "preferArrayLiteral", undefined>;
|
|
215
181
|
"no-array-size-assignment": import("oxlint-plugin-utilities").CreateRule<readonly [{
|
|
216
|
-
readonly allowAutofix?: boolean;
|
|
217
|
-
}], "usePush", readonly [{
|
|
218
182
|
readonly additionalProperties: false;
|
|
219
183
|
readonly properties: {
|
|
220
184
|
readonly allowAutofix: {
|
|
221
185
|
readonly default: false;
|
|
222
186
|
readonly type: "boolean";
|
|
223
187
|
};
|
|
188
|
+
readonly environment: {
|
|
189
|
+
readonly enum: readonly ["roblox-ts", "standard"];
|
|
190
|
+
readonly type: string;
|
|
191
|
+
readonly default: "roblox-ts";
|
|
192
|
+
readonly description: "Array environment mode: 'roblox-ts' checks array[array.size()]; 'standard' checks array[array.length].";
|
|
193
|
+
};
|
|
224
194
|
};
|
|
225
195
|
readonly type: "object";
|
|
226
|
-
}]>;
|
|
227
|
-
"no-async-constructor": import("oxlint-plugin-utilities").CreateRule<readonly [], "asyncIifeInConstructor" | "awaitInConstructor" | "orphanedPromise" | "promiseChainInConstructor" | "unhandledAsyncCall",
|
|
228
|
-
"no-cascading-set-state": import("oxlint-plugin-utilities").CreateRule<
|
|
196
|
+
}], "usePush", undefined>;
|
|
197
|
+
"no-async-constructor": import("oxlint-plugin-utilities").CreateRule<readonly [], "asyncIifeInConstructor" | "awaitInConstructor" | "orphanedPromise" | "promiseChainInConstructor" | "unhandledAsyncCall", undefined>;
|
|
198
|
+
"no-cascading-set-state": import("oxlint-plugin-utilities").CreateRule<undefined, "cascadingSetState", undefined>;
|
|
229
199
|
"no-color3-constructor": import("oxlint-plugin-utilities").CreateRule<readonly [{
|
|
230
|
-
readonly reportUnknownComponents?: boolean;
|
|
231
|
-
}], "onlyZeroArgs" | "useFromRGB", readonly [{
|
|
232
200
|
readonly additionalProperties: false;
|
|
233
201
|
readonly properties: {
|
|
234
202
|
readonly reportUnknownComponents: {
|
|
@@ -237,11 +205,19 @@ declare const smallRules: import("oxlint-plugin-utilities").Plugin<{
|
|
|
237
205
|
};
|
|
238
206
|
};
|
|
239
207
|
readonly type: "object";
|
|
240
|
-
}]>;
|
|
241
|
-
"no-commented-code": import("oxlint-plugin-utilities").CreateRule<readonly [
|
|
208
|
+
}], "onlyZeroArgs" | "useFromRGB", undefined>;
|
|
209
|
+
"no-commented-code": import("oxlint-plugin-utilities").CreateRule<readonly [{
|
|
210
|
+
readonly additionalProperties: false;
|
|
211
|
+
readonly properties: {
|
|
212
|
+
readonly maxLines: {
|
|
213
|
+
readonly default: 0;
|
|
214
|
+
readonly description: "Maximum number of lines of commented code allowed without reporting. Default 0 means any commented code triggers an error.";
|
|
215
|
+
readonly type: "number";
|
|
216
|
+
};
|
|
217
|
+
};
|
|
218
|
+
readonly type: "object";
|
|
219
|
+
}], "commentedCode", undefined>;
|
|
242
220
|
"no-constant-condition-with-break": import("oxlint-plugin-utilities").CreateRule<readonly [{
|
|
243
|
-
readonly loopExitCalls?: readonly string[];
|
|
244
|
-
}], "unexpected", readonly [{
|
|
245
221
|
readonly additionalProperties: false;
|
|
246
222
|
readonly properties: {
|
|
247
223
|
readonly loopExitCalls: {
|
|
@@ -253,11 +229,9 @@ declare const smallRules: import("oxlint-plugin-utilities").Plugin<{
|
|
|
253
229
|
};
|
|
254
230
|
};
|
|
255
231
|
readonly type: "object";
|
|
256
|
-
}]>;
|
|
232
|
+
}], "unexpected", undefined>;
|
|
257
233
|
"no-error": import("oxlint-plugin-utilities").CreateRule<readonly [], "noError", readonly []>;
|
|
258
234
|
"no-events-in-events-callback": import("oxlint-plugin-utilities").CreateRule<readonly [{
|
|
259
|
-
readonly eventsImportPaths: readonly string[];
|
|
260
|
-
}], "preferFunctions", readonly [{
|
|
261
235
|
readonly additionalProperties: false;
|
|
262
236
|
readonly properties: {
|
|
263
237
|
readonly eventsImportPaths: {
|
|
@@ -270,18 +244,9 @@ declare const smallRules: import("oxlint-plugin-utilities").Plugin<{
|
|
|
270
244
|
};
|
|
271
245
|
readonly required: readonly ["eventsImportPaths"];
|
|
272
246
|
readonly type: "object";
|
|
273
|
-
}]>;
|
|
274
|
-
"no-giant-component": import("oxlint-plugin-utilities").CreateRule<
|
|
247
|
+
}], "preferFunctions", undefined>;
|
|
248
|
+
"no-giant-component": import("oxlint-plugin-utilities").CreateRule<undefined, "giantComponent", undefined>;
|
|
275
249
|
"no-god-components": import("oxlint-plugin-utilities").CreateRule<readonly [{
|
|
276
|
-
readonly enforceTargetLines?: boolean;
|
|
277
|
-
readonly ignoreComponents?: readonly string[];
|
|
278
|
-
readonly maxDestructuredProps?: number;
|
|
279
|
-
readonly maxLines?: number;
|
|
280
|
-
readonly maxStateHooks?: number;
|
|
281
|
-
readonly maxTsxNesting?: number;
|
|
282
|
-
readonly stateHooks?: readonly string[];
|
|
283
|
-
readonly targetLines?: number;
|
|
284
|
-
}], "exceedsMaxLines" | "exceedsTargetLines" | "nullLiteral" | "tooManyProps" | "tooManyStateHooks" | "tsxNestingTooDeep", readonly [{
|
|
285
250
|
readonly additionalProperties: false;
|
|
286
251
|
readonly properties: {
|
|
287
252
|
readonly enforceTargetLines: {
|
|
@@ -331,12 +296,10 @@ declare const smallRules: import("oxlint-plugin-utilities").Plugin<{
|
|
|
331
296
|
};
|
|
332
297
|
};
|
|
333
298
|
readonly type: "object";
|
|
334
|
-
}]>;
|
|
335
|
-
"no-ianitor-in-function-body": import("oxlint-plugin-utilities").CreateRule<readonly [], "hoistIanitorValidator",
|
|
336
|
-
"no-ianitor-success-access": import("oxlint-plugin-utilities").CreateRule<readonly [], "preferCreateGuard",
|
|
299
|
+
}], "exceedsMaxLines" | "exceedsTargetLines" | "nullLiteral" | "tooManyProps" | "tooManyStateHooks" | "tsxNestingTooDeep", undefined>;
|
|
300
|
+
"no-ianitor-in-function-body": import("oxlint-plugin-utilities").CreateRule<readonly [], "hoistIanitorValidator", undefined>;
|
|
301
|
+
"no-ianitor-success-access": import("oxlint-plugin-utilities").CreateRule<readonly [], "preferCreateGuard", undefined>;
|
|
337
302
|
"no-identity-map": import("oxlint-plugin-utilities").CreateRule<readonly [{
|
|
338
|
-
readonly bindingPatterns?: readonly string[];
|
|
339
|
-
}], "identityArrayMap" | "identityBindingMap", readonly [{
|
|
340
303
|
readonly additionalProperties: false;
|
|
341
304
|
readonly properties: {
|
|
342
305
|
readonly bindingPatterns: {
|
|
@@ -349,10 +312,8 @@ declare const smallRules: import("oxlint-plugin-utilities").Plugin<{
|
|
|
349
312
|
};
|
|
350
313
|
};
|
|
351
314
|
readonly type: "object";
|
|
352
|
-
}]>;
|
|
315
|
+
}], "identityArrayMap" | "identityBindingMap", undefined>;
|
|
353
316
|
"no-increment-decrement": import("oxlint-plugin-utilities").CreateRule<readonly [{
|
|
354
|
-
readonly allowAutofix?: boolean;
|
|
355
|
-
}], "noDecrement" | "noIncrement", readonly [{
|
|
356
317
|
readonly additionalProperties: false;
|
|
357
318
|
readonly properties: {
|
|
358
319
|
readonly allowAutofix: {
|
|
@@ -361,13 +322,9 @@ declare const smallRules: import("oxlint-plugin-utilities").Plugin<{
|
|
|
361
322
|
};
|
|
362
323
|
};
|
|
363
324
|
readonly type: "object";
|
|
364
|
-
}]>;
|
|
365
|
-
"no-inline-property-on-memo-component": import("oxlint-plugin-utilities").CreateRule<
|
|
325
|
+
}], "noDecrement" | "noIncrement", undefined>;
|
|
326
|
+
"no-inline-property-on-memo-component": import("oxlint-plugin-utilities").CreateRule<undefined, "inlineProperty", undefined>;
|
|
366
327
|
"no-instance-methods-without-this": import("oxlint-plugin-utilities").CreateRule<readonly [{
|
|
367
|
-
readonly checkPrivate?: boolean;
|
|
368
|
-
readonly checkProtected?: boolean;
|
|
369
|
-
readonly checkPublic?: boolean;
|
|
370
|
-
}], "noInstanceMethodWithoutThis", readonly [{
|
|
371
328
|
readonly additionalProperties: false;
|
|
372
329
|
readonly properties: {
|
|
373
330
|
readonly checkPrivate: {
|
|
@@ -387,13 +344,9 @@ declare const smallRules: import("oxlint-plugin-utilities").Plugin<{
|
|
|
387
344
|
};
|
|
388
345
|
};
|
|
389
346
|
readonly type: "object";
|
|
390
|
-
}]>;
|
|
391
|
-
"no-native-properties-spread": import("oxlint-plugin-utilities").CreateRule<readonly [], "noElementSpread" | "noNativePropertiesSpread",
|
|
347
|
+
}], "noInstanceMethodWithoutThis", undefined>;
|
|
348
|
+
"no-native-properties-spread": import("oxlint-plugin-utilities").CreateRule<readonly [], "noElementSpread" | "noNativePropertiesSpread", undefined>;
|
|
392
349
|
"no-new-instance-in-use-memo": import("oxlint-plugin-utilities").CreateRule<readonly [{
|
|
393
|
-
readonly constructors?: readonly string[];
|
|
394
|
-
readonly environment?: "roblox-ts" | "standard";
|
|
395
|
-
readonly maxHelperTraceDepth?: number;
|
|
396
|
-
}], "noNewInUseMemo", readonly [{
|
|
397
350
|
readonly additionalProperties: false;
|
|
398
351
|
readonly properties: {
|
|
399
352
|
readonly constructors: {
|
|
@@ -417,14 +370,51 @@ declare const smallRules: import("oxlint-plugin-utilities").Plugin<{
|
|
|
417
370
|
};
|
|
418
371
|
};
|
|
419
372
|
readonly type: "object";
|
|
420
|
-
}]>;
|
|
373
|
+
}], "noNewInUseMemo", undefined>;
|
|
421
374
|
"no-print": import("oxlint-plugin-utilities").CreateRule<readonly [], "noPrint", readonly []>;
|
|
422
|
-
"no-
|
|
423
|
-
|
|
424
|
-
|
|
375
|
+
"no-recursive": import("oxlint-plugin-utilities").CreateRule<readonly [{
|
|
376
|
+
readonly additionalProperties: false;
|
|
377
|
+
readonly properties: {};
|
|
378
|
+
readonly type: "object";
|
|
379
|
+
}], "noRecursive", undefined>;
|
|
380
|
+
"no-redundant-aspect-ratio-constraint": import("oxlint-plugin-utilities").CreateRule<readonly [], "redundantAspectRatioConstraint", undefined>;
|
|
381
|
+
"no-render-helper-functions": import("oxlint-plugin-utilities").CreateRule<readonly [], "noRenderHelper", undefined>;
|
|
382
|
+
"no-restricted-property-assignment": import("oxlint-plugin-utilities").CreateOnceRule<readonly [{
|
|
383
|
+
readonly additionalProperties: false;
|
|
384
|
+
readonly properties: {
|
|
385
|
+
readonly checkComputed: {
|
|
386
|
+
readonly default: true;
|
|
387
|
+
readonly type: "boolean";
|
|
388
|
+
};
|
|
389
|
+
readonly restrictions: {
|
|
390
|
+
readonly items: {
|
|
391
|
+
readonly additionalProperties: false;
|
|
392
|
+
readonly properties: {
|
|
393
|
+
readonly message: {
|
|
394
|
+
readonly type: "string";
|
|
395
|
+
};
|
|
396
|
+
readonly object: {
|
|
397
|
+
readonly type: "string";
|
|
398
|
+
};
|
|
399
|
+
readonly properties: {
|
|
400
|
+
readonly items: {
|
|
401
|
+
readonly type: "string";
|
|
402
|
+
};
|
|
403
|
+
readonly minItems: 1;
|
|
404
|
+
readonly type: "array";
|
|
405
|
+
};
|
|
406
|
+
};
|
|
407
|
+
readonly required: readonly ["object", "properties"];
|
|
408
|
+
readonly type: "object";
|
|
409
|
+
};
|
|
410
|
+
readonly type: "array";
|
|
411
|
+
};
|
|
412
|
+
};
|
|
413
|
+
readonly required: readonly ["restrictions"];
|
|
414
|
+
readonly type: "object";
|
|
415
|
+
}], "restricted" | "restrictedCustom", undefined>;
|
|
416
|
+
"no-spec-file-extension": import("oxlint-plugin-utilities").CreateOnceRule<readonly [], "noSpecFileExtension", undefined>;
|
|
425
417
|
"no-static-react-create-element": import("oxlint-plugin-utilities").CreateRule<readonly [{
|
|
426
|
-
readonly environment?: "roblox-ts" | "standard";
|
|
427
|
-
}], "useJsx", readonly [{
|
|
428
418
|
readonly additionalProperties: false;
|
|
429
419
|
readonly properties: {
|
|
430
420
|
environment: {
|
|
@@ -433,13 +423,11 @@ declare const smallRules: import("oxlint-plugin-utilities").Plugin<{
|
|
|
433
423
|
};
|
|
434
424
|
};
|
|
435
425
|
readonly type: "object";
|
|
436
|
-
}]>;
|
|
437
|
-
"no-table-create-map": import("oxlint-plugin-utilities").CreateRule<readonly [], "avoidConstructThenMap",
|
|
438
|
-
"no-task-wait": import("oxlint-plugin-utilities").
|
|
439
|
-
"no-underscore-react-props": import("oxlint-plugin-utilities").
|
|
426
|
+
}], "useJsx", undefined>;
|
|
427
|
+
"no-table-create-map": import("oxlint-plugin-utilities").CreateRule<readonly [], "avoidConstructThenMap", undefined>;
|
|
428
|
+
"no-task-wait": import("oxlint-plugin-utilities").CreateOnceRule<readonly [], "noPromiseDelayAwait" | "noTaskWait", undefined>;
|
|
429
|
+
"no-underscore-react-props": import("oxlint-plugin-utilities").CreateOnceRule<readonly [], "noUnderscoreReactProp", undefined>;
|
|
440
430
|
"no-unused-imports": import("oxlint-plugin-utilities").CreateRule<readonly [{
|
|
441
|
-
readonly checkJSDoc?: boolean;
|
|
442
|
-
}], "unusedImport", readonly [{
|
|
443
431
|
readonly additionalProperties: false;
|
|
444
432
|
readonly properties: {
|
|
445
433
|
readonly checkJSDoc: {
|
|
@@ -449,10 +437,8 @@ declare const smallRules: import("oxlint-plugin-utilities").Plugin<{
|
|
|
449
437
|
};
|
|
450
438
|
};
|
|
451
439
|
readonly type: "object";
|
|
452
|
-
}]>;
|
|
440
|
+
}], "unusedImport", undefined>;
|
|
453
441
|
"no-unused-use-memo": import("oxlint-plugin-utilities").CreateRule<readonly [{
|
|
454
|
-
readonly environment?: "roblox-ts" | "standard";
|
|
455
|
-
}], "unusedUseMemo", readonly [{
|
|
456
442
|
readonly additionalProperties: false;
|
|
457
443
|
readonly properties: {
|
|
458
444
|
readonly environment: {
|
|
@@ -462,11 +448,9 @@ declare const smallRules: import("oxlint-plugin-utilities").Plugin<{
|
|
|
462
448
|
};
|
|
463
449
|
};
|
|
464
450
|
readonly type: "object";
|
|
465
|
-
}]>;
|
|
466
|
-
"no-use-memo-simple-expression": import("oxlint-plugin-utilities").CreateRule<
|
|
451
|
+
}], "unusedUseMemo", undefined>;
|
|
452
|
+
"no-use-memo-simple-expression": import("oxlint-plugin-utilities").CreateRule<undefined, "simpleMemo", undefined>;
|
|
467
453
|
"no-useless-constants": import("oxlint-plugin-utilities").CreateRule<readonly [{
|
|
468
|
-
readonly ignoreCallPatterns?: readonly string[];
|
|
469
|
-
}], "uselessConstant" | "uselessConstantNoFix" | "uselessConstants", readonly [{
|
|
470
454
|
readonly additionalProperties: false;
|
|
471
455
|
readonly properties: {
|
|
472
456
|
readonly ignoreCallPatterns: {
|
|
@@ -478,29 +462,9 @@ declare const smallRules: import("oxlint-plugin-utilities").Plugin<{
|
|
|
478
462
|
};
|
|
479
463
|
};
|
|
480
464
|
readonly type: "object";
|
|
481
|
-
}]>;
|
|
482
|
-
"no-useless-default": import("oxlint-plugin-utilities").CreateRule<readonly [], "uselessDefault",
|
|
465
|
+
}], "uselessConstant" | "uselessConstantNoFix" | "uselessConstants", undefined>;
|
|
466
|
+
"no-useless-default": import("oxlint-plugin-utilities").CreateRule<readonly [], "uselessDefault", undefined>;
|
|
483
467
|
"no-useless-use-effect": import("oxlint-plugin-utilities").CreateRule<readonly [{
|
|
484
|
-
readonly environment?: "roblox-ts" | "standard";
|
|
485
|
-
readonly hooks?: readonly string[];
|
|
486
|
-
readonly propertyCallbackPrefixes?: readonly string[];
|
|
487
|
-
readonly refHooks?: readonly string[];
|
|
488
|
-
readonly reportAdjustState?: boolean;
|
|
489
|
-
readonly reportDerivedState?: boolean;
|
|
490
|
-
readonly reportDuplicateDeps?: boolean;
|
|
491
|
-
readonly reportEffectChain?: boolean;
|
|
492
|
-
readonly reportEmptyEffect?: boolean;
|
|
493
|
-
readonly reportEventFlag?: boolean;
|
|
494
|
-
readonly reportEventSpecificLogic?: boolean;
|
|
495
|
-
readonly reportExternalStore?: boolean;
|
|
496
|
-
readonly reportInitializeState?: boolean;
|
|
497
|
-
readonly reportLogOnly?: boolean;
|
|
498
|
-
readonly reportMixedDerivedState?: boolean;
|
|
499
|
-
readonly reportNotifyParent?: boolean;
|
|
500
|
-
readonly reportPassRefToParent?: boolean;
|
|
501
|
-
readonly reportResetState?: boolean;
|
|
502
|
-
readonly stateHooks?: readonly string[];
|
|
503
|
-
}], "adjustState" | "derivedState" | "duplicateDeps" | "effectChain" | "emptyEffect" | "eventFlag" | "eventSpecificLogic" | "externalStore" | "initializeState" | "logOnly" | "mixedDerivedState" | "notifyParent" | "passRefToParent" | "resetState", readonly [{
|
|
504
468
|
readonly additionalProperties: false;
|
|
505
469
|
readonly properties: {
|
|
506
470
|
readonly environment: {
|
|
@@ -597,12 +561,8 @@ declare const smallRules: import("oxlint-plugin-utilities").Plugin<{
|
|
|
597
561
|
};
|
|
598
562
|
};
|
|
599
563
|
readonly type: "object";
|
|
600
|
-
}]>;
|
|
564
|
+
}], "adjustState" | "derivedState" | "duplicateDeps" | "effectChain" | "emptyEffect" | "eventFlag" | "eventSpecificLogic" | "externalStore" | "initializeState" | "logOnly" | "mixedDerivedState" | "notifyParent" | "passRefToParent" | "resetState", undefined>;
|
|
601
565
|
"no-useless-use-memo": import("oxlint-plugin-utilities").CreateRule<readonly [{
|
|
602
|
-
readonly dependencyMode?: "aggressive" | "empty-or-omitted" | "non-updating";
|
|
603
|
-
readonly environment?: "roblox-ts" | "standard";
|
|
604
|
-
readonly staticGlobalFactories?: readonly string[];
|
|
605
|
-
}], "uselessUseMemo", readonly [{
|
|
606
566
|
readonly additionalProperties: false;
|
|
607
567
|
readonly properties: {
|
|
608
568
|
readonly dependencyMode: {
|
|
@@ -623,12 +583,8 @@ declare const smallRules: import("oxlint-plugin-utilities").Plugin<{
|
|
|
623
583
|
};
|
|
624
584
|
};
|
|
625
585
|
readonly type: "object";
|
|
626
|
-
}]>;
|
|
586
|
+
}], "uselessUseMemo", undefined>;
|
|
627
587
|
"no-useless-use-spring": import("oxlint-plugin-utilities").CreateRule<readonly [{
|
|
628
|
-
readonly springHooks?: readonly string[];
|
|
629
|
-
readonly staticGlobalFactories?: readonly string[];
|
|
630
|
-
readonly treatEmptyDepsAsViolation?: boolean;
|
|
631
|
-
}], "uselessSpring", readonly [{
|
|
632
588
|
readonly additionalProperties: false;
|
|
633
589
|
readonly default: {
|
|
634
590
|
readonly staticGlobalFactories: readonly string[];
|
|
@@ -657,18 +613,16 @@ declare const smallRules: import("oxlint-plugin-utilities").Plugin<{
|
|
|
657
613
|
};
|
|
658
614
|
};
|
|
659
615
|
readonly type: "object";
|
|
660
|
-
}]>;
|
|
616
|
+
}], "uselessSpring", undefined>;
|
|
661
617
|
"no-warn": import("oxlint-plugin-utilities").CreateRule<readonly [], "noWarn", readonly []>;
|
|
662
|
-
"only-type-imports": import("oxlint-plugin-utilities").CreateRule<readonly [], "onlyTypeImports",
|
|
663
|
-
"prefer-class-properties": import("oxlint-plugin-utilities").CreateRule<readonly [
|
|
618
|
+
"only-type-imports": import("oxlint-plugin-utilities").CreateRule<readonly [], "onlyTypeImports", undefined>;
|
|
619
|
+
"prefer-class-properties": import("oxlint-plugin-utilities").CreateRule<readonly [{
|
|
664
620
|
readonly enum: readonly ["always", "never"];
|
|
665
621
|
readonly type: "string";
|
|
666
|
-
}]>;
|
|
667
|
-
"prefer-constant-dispatch": import("oxlint-plugin-utilities").CreateRule<readonly [], "preferConstantDispatch",
|
|
668
|
-
"prefer-context-stack": import("oxlint-plugin-utilities").CreateRule<readonly [], "preferContextStack",
|
|
622
|
+
}], "unexpectedAssignment" | "unexpectedClassProperty", undefined>;
|
|
623
|
+
"prefer-constant-dispatch": import("oxlint-plugin-utilities").CreateRule<readonly [], "preferConstantDispatch", undefined>;
|
|
624
|
+
"prefer-context-stack": import("oxlint-plugin-utilities").CreateRule<readonly [], "preferContextStack", undefined>;
|
|
669
625
|
"prefer-early-return": import("oxlint-plugin-utilities").CreateRule<readonly [{
|
|
670
|
-
readonly maximumStatements?: number;
|
|
671
|
-
}], "preferEarlyReturn", readonly [{
|
|
672
626
|
readonly additionalProperties: false;
|
|
673
627
|
readonly properties: {
|
|
674
628
|
readonly maximumStatements: {
|
|
@@ -678,14 +632,8 @@ declare const smallRules: import("oxlint-plugin-utilities").Plugin<{
|
|
|
678
632
|
};
|
|
679
633
|
};
|
|
680
634
|
readonly type: "object";
|
|
681
|
-
}]>;
|
|
635
|
+
}], "preferEarlyReturn", undefined>;
|
|
682
636
|
"prefer-expect-assertions": import("oxlint-plugin-utilities").CreateRule<readonly [{
|
|
683
|
-
readonly additionalAssertionFunctions?: readonly string[];
|
|
684
|
-
readonly additionalExpectCallNames?: readonly string[];
|
|
685
|
-
readonly onlyFunctionsWithAsyncKeyword?: boolean;
|
|
686
|
-
readonly onlyFunctionsWithExpectInCallback?: boolean;
|
|
687
|
-
readonly onlyFunctionsWithExpectInLoop?: boolean;
|
|
688
|
-
}], "assertionsRequiresNumberArgument" | "assertionsRequiresOneArgument" | "hasAssertionsTakesNoArguments" | "haveExpectAssertions" | "preferAssertionsCount" | "suggestAddingAssertions" | "suggestAddingHasAssertions" | "wrongAssertionCount", readonly [{
|
|
689
637
|
readonly additionalProperties: false;
|
|
690
638
|
readonly properties: {
|
|
691
639
|
readonly additionalAssertionFunctions: {
|
|
@@ -711,11 +659,8 @@ declare const smallRules: import("oxlint-plugin-utilities").Plugin<{
|
|
|
711
659
|
};
|
|
712
660
|
};
|
|
713
661
|
readonly type: "object";
|
|
714
|
-
}]>;
|
|
662
|
+
}], "assertionsRequiresNumberArgument" | "assertionsRequiresOneArgument" | "hasAssertionsTakesNoArguments" | "haveExpectAssertions" | "preferAssertionsCount" | "suggestAddingAssertions" | "suggestAddingHasAssertions" | "wrongAssertionCount", undefined>;
|
|
715
663
|
"prefer-hoisted-jsx-elements": import("oxlint-plugin-utilities").CreateRule<readonly [{
|
|
716
|
-
readonly additionalHoistableComponents?: readonly string[];
|
|
717
|
-
readonly additionalStaticFactories?: readonly string[];
|
|
718
|
-
}], "hoistableJsxElement", readonly [{
|
|
719
664
|
readonly additionalProperties: false;
|
|
720
665
|
readonly properties: {
|
|
721
666
|
readonly additionalHoistableComponents: {
|
|
@@ -734,45 +679,22 @@ declare const smallRules: import("oxlint-plugin-utilities").Plugin<{
|
|
|
734
679
|
};
|
|
735
680
|
};
|
|
736
681
|
readonly type: "object";
|
|
737
|
-
}]>;
|
|
738
|
-
"prefer-hoisted-jsx-object-properties": import("oxlint-plugin-utilities").CreateRule<readonly [], "hoistableObjectProp",
|
|
739
|
-
"prefer-idiv": import("oxlint-plugin-utilities").
|
|
740
|
-
"prefer-local-portal-component": import("oxlint-plugin-utilities").CreateRule<readonly [], "preferPortalComponent",
|
|
741
|
-
"prefer-math-min-max": import("oxlint-plugin-utilities").CreateRule<readonly [], "preferMathMethod",
|
|
742
|
-
"prefer-modding-inspect": import("oxlint-plugin-utilities").CreateRule<readonly [], "preferModdingInspect",
|
|
743
|
-
"prefer-module-scope-constants": import("oxlint-plugin-utilities").CreateRule<readonly [], "mustBeModuleScope" | "mustUseConst",
|
|
744
|
-
"prefer-padding-components": import("oxlint-plugin-utilities").CreateRule<readonly [], "preferDirectionalPadding" | "preferEqualPadding",
|
|
745
|
-
"prefer-pascal-case-enums": import("oxlint-plugin-utilities").
|
|
746
|
-
"prefer-sequence-overloads": import("oxlint-plugin-utilities").
|
|
747
|
-
"prefer-single-world-query": import("oxlint-plugin-utilities").CreateRule<readonly [], "preferSingleGet" | "preferSingleHas",
|
|
748
|
-
"prefer-singular-enums": import("oxlint-plugin-utilities").
|
|
749
|
-
"prefer-ternary-conditional-rendering": import("oxlint-plugin-utilities").CreateRule<readonly [], "preferTernaryConditionalRendering",
|
|
750
|
-
"prefer-udim2-shorthand": import("oxlint-plugin-utilities").CreateRule<readonly [], "preferFromOffset" | "preferFromScale",
|
|
751
|
-
"prefer-use-reducer": import("oxlint-plugin-utilities").CreateRule<
|
|
682
|
+
}], "hoistableJsxElement", undefined>;
|
|
683
|
+
"prefer-hoisted-jsx-object-properties": import("oxlint-plugin-utilities").CreateRule<readonly [], "hoistableObjectProp", undefined>;
|
|
684
|
+
"prefer-idiv": import("oxlint-plugin-utilities").CreateOnceRule<readonly [], "useIdiv", undefined>;
|
|
685
|
+
"prefer-local-portal-component": import("oxlint-plugin-utilities").CreateRule<readonly [], "preferPortalComponent", undefined>;
|
|
686
|
+
"prefer-math-min-max": import("oxlint-plugin-utilities").CreateRule<readonly [], "preferMathMethod", undefined>;
|
|
687
|
+
"prefer-modding-inspect": import("oxlint-plugin-utilities").CreateRule<readonly [], "preferModdingInspect", undefined>;
|
|
688
|
+
"prefer-module-scope-constants": import("oxlint-plugin-utilities").CreateRule<readonly [], "mustBeModuleScope" | "mustUseConst", undefined>;
|
|
689
|
+
"prefer-padding-components": import("oxlint-plugin-utilities").CreateRule<readonly [], "preferDirectionalPadding" | "preferEqualPadding", undefined>;
|
|
690
|
+
"prefer-pascal-case-enums": import("oxlint-plugin-utilities").CreateOnceRule<readonly [], "notPascalCase", undefined>;
|
|
691
|
+
"prefer-sequence-overloads": import("oxlint-plugin-utilities").CreateOnceRule<readonly [], "preferSingleOverload" | "preferTwoPointOverload", undefined>;
|
|
692
|
+
"prefer-single-world-query": import("oxlint-plugin-utilities").CreateRule<readonly [], "preferSingleGet" | "preferSingleHas", undefined>;
|
|
693
|
+
"prefer-singular-enums": import("oxlint-plugin-utilities").CreateOnceRule<readonly [], "notSingular", undefined>;
|
|
694
|
+
"prefer-ternary-conditional-rendering": import("oxlint-plugin-utilities").CreateRule<readonly [], "preferTernaryConditionalRendering", undefined>;
|
|
695
|
+
"prefer-udim2-shorthand": import("oxlint-plugin-utilities").CreateRule<readonly [], "preferFromOffset" | "preferFromScale", undefined>;
|
|
696
|
+
"prefer-use-reducer": import("oxlint-plugin-utilities").CreateRule<undefined, "excessiveUseState", undefined>;
|
|
752
697
|
"prevent-abbreviations": import("oxlint-plugin-utilities").CreateRule<readonly [{
|
|
753
|
-
readonly allowList?: {
|
|
754
|
-
readonly [x: string]: boolean;
|
|
755
|
-
};
|
|
756
|
-
readonly allowPropertyAccess?: readonly string[];
|
|
757
|
-
readonly checkDefaultAndNamespaceImports?: "internal" | boolean;
|
|
758
|
-
readonly checkFilenames?: boolean;
|
|
759
|
-
readonly checkProperties?: boolean;
|
|
760
|
-
readonly checkShorthandImports?: "internal" | boolean;
|
|
761
|
-
readonly checkShorthandProperties?: boolean;
|
|
762
|
-
readonly checkVariables?: boolean;
|
|
763
|
-
readonly extendDefaultAllowList?: boolean;
|
|
764
|
-
readonly extendDefaultReplacements?: boolean;
|
|
765
|
-
readonly ignore?: readonly (string | {})[];
|
|
766
|
-
readonly ignoreShorthands?: readonly string[];
|
|
767
|
-
readonly replacements?: {
|
|
768
|
-
readonly [x: string]: false | {
|
|
769
|
-
readonly [x: string]: boolean;
|
|
770
|
-
};
|
|
771
|
-
};
|
|
772
|
-
readonly shorthands?: {
|
|
773
|
-
readonly [x: string]: string;
|
|
774
|
-
};
|
|
775
|
-
}], "replace" | "suggestion", readonly [{
|
|
776
698
|
readonly additionalProperties: false;
|
|
777
699
|
readonly properties: {
|
|
778
700
|
readonly allowList: {
|
|
@@ -848,14 +770,21 @@ declare const smallRules: import("oxlint-plugin-utilities").Plugin<{
|
|
|
848
770
|
};
|
|
849
771
|
};
|
|
850
772
|
readonly type: "object";
|
|
851
|
-
}]>;
|
|
852
|
-
"react-hooks-strict-return": import("oxlint-plugin-utilities").CreateRule<readonly [], "tooManyReturnValues",
|
|
853
|
-
"require-async-suffix": import("oxlint-plugin-utilities").CreateRule<readonly [
|
|
854
|
-
|
|
855
|
-
readonly
|
|
856
|
-
readonly
|
|
773
|
+
}], "replace" | "suggestion", undefined>;
|
|
774
|
+
"react-hooks-strict-return": import("oxlint-plugin-utilities").CreateRule<readonly [], "tooManyReturnValues", undefined>;
|
|
775
|
+
"require-async-suffix": import("oxlint-plugin-utilities").CreateRule<readonly [{
|
|
776
|
+
readonly additionalProperties: false;
|
|
777
|
+
readonly properties: {
|
|
778
|
+
readonly except: {
|
|
779
|
+
readonly items: {
|
|
780
|
+
readonly type: "string";
|
|
781
|
+
};
|
|
782
|
+
readonly type: "array";
|
|
783
|
+
};
|
|
857
784
|
};
|
|
858
|
-
|
|
785
|
+
readonly type: "object";
|
|
786
|
+
}], "missingAsyncSuffix", undefined>;
|
|
787
|
+
"require-module-level-instantiation": import("oxlint-plugin-utilities").CreateRule<readonly [{
|
|
859
788
|
readonly additionalProperties: false;
|
|
860
789
|
readonly properties: {
|
|
861
790
|
readonly classes: {
|
|
@@ -866,14 +795,8 @@ declare const smallRules: import("oxlint-plugin-utilities").Plugin<{
|
|
|
866
795
|
};
|
|
867
796
|
};
|
|
868
797
|
readonly type: "object";
|
|
869
|
-
}]>;
|
|
798
|
+
}], "mustBeModuleLevel", undefined>;
|
|
870
799
|
"require-named-effect-functions": import("oxlint-plugin-utilities").CreateRule<readonly [{
|
|
871
|
-
readonly environment?: "roblox-ts" | "standard";
|
|
872
|
-
readonly hooks?: readonly {
|
|
873
|
-
readonly allowAsync: boolean;
|
|
874
|
-
readonly name: string;
|
|
875
|
-
}[];
|
|
876
|
-
}], "anonymousFunction" | "arrowFunction" | "asyncAnonymousFunction" | "asyncArrowFunction" | "asyncFunctionDeclaration" | "asyncFunctionExpression" | "functionExpression" | "identifierReferencesArrow" | "identifierReferencesAsyncArrow" | "identifierReferencesAsyncFunction" | "identifierReferencesCallback", readonly [{
|
|
877
800
|
readonly additionalProperties: false;
|
|
878
801
|
readonly properties: {
|
|
879
802
|
readonly environment: {
|
|
@@ -903,21 +826,8 @@ declare const smallRules: import("oxlint-plugin-utilities").Plugin<{
|
|
|
903
826
|
};
|
|
904
827
|
};
|
|
905
828
|
readonly type: "object";
|
|
906
|
-
}]>;
|
|
829
|
+
}], "anonymousFunction" | "arrowFunction" | "asyncAnonymousFunction" | "asyncArrowFunction" | "asyncFunctionDeclaration" | "asyncFunctionExpression" | "functionExpression" | "identifierReferencesArrow" | "identifierReferencesAsyncArrow" | "identifierReferencesAsyncFunction" | "identifierReferencesCallback", undefined>;
|
|
907
830
|
"require-paired-calls": import("oxlint-plugin-utilities").CreateRule<readonly [{
|
|
908
|
-
readonly allowConditionalClosers?: boolean;
|
|
909
|
-
readonly allowMultipleOpeners?: boolean;
|
|
910
|
-
readonly maxNestingDepth?: number;
|
|
911
|
-
readonly pairs: readonly {
|
|
912
|
-
readonly alternatives?: readonly string[];
|
|
913
|
-
readonly closer: string | readonly string[];
|
|
914
|
-
readonly opener: string;
|
|
915
|
-
readonly openerAlternatives?: readonly string[];
|
|
916
|
-
readonly platform?: "roblox";
|
|
917
|
-
readonly requireSync?: boolean;
|
|
918
|
-
readonly yieldingFunctions?: readonly string[];
|
|
919
|
-
}[];
|
|
920
|
-
}], "asyncViolation" | "conditionalOpener" | "maxNestingExceeded" | "multipleOpeners" | "robloxYieldViolation" | "unexpectedCloser" | "unpairedCloser" | "unpairedOpener" | "wrongOrder", readonly [{
|
|
921
831
|
readonly additionalProperties: false;
|
|
922
832
|
readonly properties: {
|
|
923
833
|
readonly allowConditionalClosers: {
|
|
@@ -993,13 +903,8 @@ declare const smallRules: import("oxlint-plugin-utilities").Plugin<{
|
|
|
993
903
|
};
|
|
994
904
|
readonly required: readonly ["pairs"];
|
|
995
905
|
readonly type: "object";
|
|
996
|
-
}]>;
|
|
906
|
+
}], "asyncViolation" | "conditionalOpener" | "maxNestingExceeded" | "multipleOpeners" | "robloxYieldViolation" | "unexpectedCloser" | "unpairedCloser" | "unpairedOpener" | "wrongOrder", undefined>;
|
|
997
907
|
"require-react-component-keys": import("oxlint-plugin-utilities").CreateRule<readonly [{
|
|
998
|
-
readonly allowRootKeys?: boolean;
|
|
999
|
-
readonly ignoreCallExpressions?: readonly string[];
|
|
1000
|
-
readonly iterationMethods?: readonly string[];
|
|
1001
|
-
readonly memoizationHooks?: readonly string[];
|
|
1002
|
-
}], "missingKey" | "rootComponentWithKey", readonly [{
|
|
1003
908
|
readonly additionalProperties: false;
|
|
1004
909
|
readonly properties: {
|
|
1005
910
|
readonly allowRootKeys: {
|
|
@@ -1033,10 +938,8 @@ declare const smallRules: import("oxlint-plugin-utilities").Plugin<{
|
|
|
1033
938
|
};
|
|
1034
939
|
};
|
|
1035
940
|
readonly type: "object";
|
|
1036
|
-
}]>;
|
|
941
|
+
}], "missingKey" | "rootComponentWithKey", undefined>;
|
|
1037
942
|
"require-react-display-names": import("oxlint-plugin-utilities").CreateRule<readonly [{
|
|
1038
|
-
readonly environment?: "roblox-ts" | "standard";
|
|
1039
|
-
}], "directContextExport" | "directMemoExport" | "missingContextDisplayName" | "missingMemoDisplayName", readonly [{
|
|
1040
943
|
readonly additionalProperties: false;
|
|
1041
944
|
readonly properties: {
|
|
1042
945
|
environment: {
|
|
@@ -1045,10 +948,8 @@ declare const smallRules: import("oxlint-plugin-utilities").Plugin<{
|
|
|
1045
948
|
};
|
|
1046
949
|
};
|
|
1047
950
|
readonly type: "object";
|
|
1048
|
-
}]>;
|
|
951
|
+
}], "directContextExport" | "directMemoExport" | "missingContextDisplayName" | "missingMemoDisplayName", undefined>;
|
|
1049
952
|
"require-switch-case-braces": import("oxlint-plugin-utilities").CreateRule<readonly [{
|
|
1050
|
-
readonly metric?: "lines" | "statements";
|
|
1051
|
-
}], "wrapCaseBody", readonly [{
|
|
1052
953
|
readonly additionalProperties: false;
|
|
1053
954
|
readonly properties: {
|
|
1054
955
|
readonly metric: {
|
|
@@ -1058,14 +959,8 @@ declare const smallRules: import("oxlint-plugin-utilities").Plugin<{
|
|
|
1058
959
|
};
|
|
1059
960
|
};
|
|
1060
961
|
readonly type: "object";
|
|
1061
|
-
}]>;
|
|
962
|
+
}], "wrapCaseBody", undefined>;
|
|
1062
963
|
"require-throw-error-capture": import("oxlint-plugin-utilities").CreateRule<readonly [{
|
|
1063
|
-
readonly allow?: readonly (string | {
|
|
1064
|
-
readonly from?: "file" | "lib" | "package";
|
|
1065
|
-
readonly name: string | readonly string[];
|
|
1066
|
-
readonly package?: string;
|
|
1067
|
-
})[];
|
|
1068
|
-
}], "missingCaptureStackTrace", readonly [{
|
|
1069
964
|
readonly additionalProperties: false;
|
|
1070
965
|
readonly properties: {
|
|
1071
966
|
readonly allow: {
|
|
@@ -1078,7 +973,7 @@ declare const smallRules: import("oxlint-plugin-utilities").Plugin<{
|
|
|
1078
973
|
readonly properties: {
|
|
1079
974
|
readonly from: {
|
|
1080
975
|
readonly description: "Where the error class is declared";
|
|
1081
|
-
readonly enum: readonly ["file", "
|
|
976
|
+
readonly enum: readonly ["file", "library", "package"];
|
|
1082
977
|
readonly type: "string";
|
|
1083
978
|
};
|
|
1084
979
|
readonly name: {
|
|
@@ -1096,6 +991,10 @@ declare const smallRules: import("oxlint-plugin-utilities").Plugin<{
|
|
|
1096
991
|
readonly description: "Package the error class is imported from (required when from is 'package')";
|
|
1097
992
|
readonly type: "string";
|
|
1098
993
|
};
|
|
994
|
+
readonly path: {
|
|
995
|
+
readonly description: "Optional file path filter for file specifiers (matched against the end of the file path)";
|
|
996
|
+
readonly type: "string";
|
|
997
|
+
};
|
|
1099
998
|
};
|
|
1100
999
|
readonly required: readonly ["name"];
|
|
1101
1000
|
readonly type: "object";
|
|
@@ -1105,13 +1004,10 @@ declare const smallRules: import("oxlint-plugin-utilities").Plugin<{
|
|
|
1105
1004
|
};
|
|
1106
1005
|
};
|
|
1107
1006
|
readonly type: "object";
|
|
1108
|
-
}]>;
|
|
1109
|
-
"require-unicode-regex": import("oxlint-plugin-utilities").
|
|
1110
|
-
"rerender-memo-with-default-value": import("oxlint-plugin-utilities").CreateRule<
|
|
1007
|
+
}], "missingCaptureStackTrace", undefined>;
|
|
1008
|
+
"require-unicode-regex": import("oxlint-plugin-utilities").CreateOnceRule<readonly [], "requireUnicodeFlag", undefined>;
|
|
1009
|
+
"rerender-memo-with-default-value": import("oxlint-plugin-utilities").CreateRule<undefined, "emptyArrayDefault" | "emptyObjectDefault", undefined>;
|
|
1111
1010
|
"strict-component-boundaries": import("oxlint-plugin-utilities").CreateRule<readonly [{
|
|
1112
|
-
readonly allow?: readonly string[];
|
|
1113
|
-
readonly maxDepth?: number;
|
|
1114
|
-
}], "noReachingIntoComponent", readonly [{
|
|
1115
1011
|
readonly additionalProperties: false;
|
|
1116
1012
|
readonly properties: {
|
|
1117
1013
|
readonly allow: {
|
|
@@ -1125,19 +1021,8 @@ declare const smallRules: import("oxlint-plugin-utilities").Plugin<{
|
|
|
1125
1021
|
};
|
|
1126
1022
|
};
|
|
1127
1023
|
readonly type: "object";
|
|
1128
|
-
}]>;
|
|
1024
|
+
}], "noReachingIntoComponent", undefined>;
|
|
1129
1025
|
"use-exhaustive-dependencies": import("oxlint-plugin-utilities").CreateRule<readonly [{
|
|
1130
|
-
readonly hooks?: readonly {
|
|
1131
|
-
readonly closureIndex?: number;
|
|
1132
|
-
readonly dependenciesIndex?: number;
|
|
1133
|
-
readonly name: string;
|
|
1134
|
-
readonly stableResult?: number | boolean | readonly string[] | readonly number[];
|
|
1135
|
-
}[];
|
|
1136
|
-
readonly reportMissingDependenciesArray?: boolean;
|
|
1137
|
-
readonly reportUnnecessaryDependencies?: boolean;
|
|
1138
|
-
readonly reportUnnecessaryStableDependencies?: boolean;
|
|
1139
|
-
readonly resolveExpressionDependencies?: boolean;
|
|
1140
|
-
}], "addDependenciesArraySuggestion" | "addDependencySuggestion" | "addMissingDependenciesSuggestion" | "missingDependencies" | "missingDependenciesArray" | "missingDependency" | "removeDependencySuggestion" | "unnecessaryDependency" | "unstableDependency", readonly [{
|
|
1141
1026
|
readonly additionalProperties: false;
|
|
1142
1027
|
readonly properties: {
|
|
1143
1028
|
readonly hooks: {
|
|
@@ -1203,14 +1088,8 @@ declare const smallRules: import("oxlint-plugin-utilities").Plugin<{
|
|
|
1203
1088
|
};
|
|
1204
1089
|
};
|
|
1205
1090
|
readonly type: "object";
|
|
1206
|
-
}]>;
|
|
1091
|
+
}], "addDependenciesArraySuggestion" | "addDependencySuggestion" | "addMissingDependenciesSuggestion" | "missingDependencies" | "missingDependenciesArray" | "missingDependency" | "removeDependencySuggestion" | "unnecessaryDependency" | "unstableDependency", undefined>;
|
|
1207
1092
|
"use-hook-at-top-level": import("oxlint-plugin-utilities").CreateRule<readonly [{
|
|
1208
|
-
readonly ignoreHooks?: readonly string[];
|
|
1209
|
-
readonly importSources?: {
|
|
1210
|
-
readonly [x: string]: boolean;
|
|
1211
|
-
};
|
|
1212
|
-
readonly onlyHooks?: readonly string[];
|
|
1213
|
-
}], "afterEarlyReturn" | "conditionalHook" | "loopHook" | "nestedFunction" | "recursiveHookCall" | "tryBlockHook", readonly [{
|
|
1214
1093
|
readonly additionalProperties: false;
|
|
1215
1094
|
readonly properties: {
|
|
1216
1095
|
readonly ignoreHooks: {
|
|
@@ -1233,7 +1112,7 @@ declare const smallRules: import("oxlint-plugin-utilities").Plugin<{
|
|
|
1233
1112
|
};
|
|
1234
1113
|
};
|
|
1235
1114
|
readonly type: "object";
|
|
1236
|
-
}]>;
|
|
1115
|
+
}], "afterEarlyReturn" | "conditionalHook" | "loopHook" | "nestedFunction" | "recursiveHookCall" | "tryBlockHook", undefined>;
|
|
1237
1116
|
}>;
|
|
1238
1117
|
//#endregion
|
|
1239
1118
|
export { smallRules as default };
|