@pobammer-ts/small-rules 2.1.0 → 2.2.1

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.
Files changed (3) hide show
  1. package/dist/index.d.ts +122 -286
  2. package/dist/index.js +316 -190
  3. package/package.json +21 -22
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").CreateRule<readonly [], "useGenericArrayType", readonly []>;
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").CreateRule<readonly [], "banReactFC", readonly []>;
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", readonly []>;
80
- "directive-no-duplicate-disable": import("oxlint-plugin-utilities").CreateRule<readonly [], "duplicate" | "duplicateRule", readonly []>;
81
- "directive-no-restricted-disable": import("oxlint-plugin-utilities").CreateRule<readonly string[], "disallow", {
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", readonly []>;
89
- "directive-no-unused-enable": import("oxlint-plugin-utilities").CreateRule<readonly [], "unused" | "unusedRule", readonly []>;
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,12 +176,9 @@ declare const smallRules: import("oxlint-plugin-utilities").Plugin<{
211
176
  };
212
177
  };
213
178
  readonly type: "object";
214
- }]>;
215
- "no-array-constructor-index-assignment": import("oxlint-plugin-utilities").CreateRule<readonly [], "preferArrayLiteral", readonly []>;
179
+ }], "avoidConstructorEnumeration" | "avoidLengthConstructorInStandard" | "avoidSingleArgumentConstructor" | "collapseArrayPushInitialization" | "requireExplicitGenericOnNewArray" | "suggestArrayFromLength" | "suggestArrayLiteral" | "suggestCollapseArrayPushInitialization", undefined>;
180
+ "no-array-constructor-index-assignment": import("oxlint-plugin-utilities").CreateRule<readonly [], "preferArrayLiteral", undefined>;
216
181
  "no-array-size-assignment": import("oxlint-plugin-utilities").CreateRule<readonly [{
217
- readonly allowAutofix?: boolean;
218
- readonly environment?: "roblox-ts" | "standard";
219
- }], "usePush", readonly [{
220
182
  readonly additionalProperties: false;
221
183
  readonly properties: {
222
184
  readonly allowAutofix: {
@@ -231,12 +193,10 @@ declare const smallRules: import("oxlint-plugin-utilities").Plugin<{
231
193
  };
232
194
  };
233
195
  readonly type: "object";
234
- }]>;
235
- "no-async-constructor": import("oxlint-plugin-utilities").CreateRule<readonly [], "asyncIifeInConstructor" | "awaitInConstructor" | "orphanedPromise" | "promiseChainInConstructor" | "unhandledAsyncCall", readonly []>;
236
- "no-cascading-set-state": import("oxlint-plugin-utilities").CreateRule<readonly [], "cascadingSetState", undefined>;
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>;
237
199
  "no-color3-constructor": import("oxlint-plugin-utilities").CreateRule<readonly [{
238
- readonly reportUnknownComponents?: boolean;
239
- }], "onlyZeroArgs" | "useFromRGB", readonly [{
240
200
  readonly additionalProperties: false;
241
201
  readonly properties: {
242
202
  readonly reportUnknownComponents: {
@@ -245,10 +205,8 @@ declare const smallRules: import("oxlint-plugin-utilities").Plugin<{
245
205
  };
246
206
  };
247
207
  readonly type: "object";
248
- }]>;
208
+ }], "onlyZeroArgs" | "useFromRGB", undefined>;
249
209
  "no-commented-code": import("oxlint-plugin-utilities").CreateRule<readonly [{
250
- readonly maxLines?: number;
251
- }], "commentedCode", readonly [{
252
210
  readonly additionalProperties: false;
253
211
  readonly properties: {
254
212
  readonly maxLines: {
@@ -258,10 +216,8 @@ declare const smallRules: import("oxlint-plugin-utilities").Plugin<{
258
216
  };
259
217
  };
260
218
  readonly type: "object";
261
- }]>;
219
+ }], "commentedCode", undefined>;
262
220
  "no-constant-condition-with-break": import("oxlint-plugin-utilities").CreateRule<readonly [{
263
- readonly loopExitCalls?: readonly string[];
264
- }], "unexpected", readonly [{
265
221
  readonly additionalProperties: false;
266
222
  readonly properties: {
267
223
  readonly loopExitCalls: {
@@ -273,11 +229,9 @@ declare const smallRules: import("oxlint-plugin-utilities").Plugin<{
273
229
  };
274
230
  };
275
231
  readonly type: "object";
276
- }]>;
232
+ }], "unexpected", undefined>;
277
233
  "no-error": import("oxlint-plugin-utilities").CreateRule<readonly [], "noError", readonly []>;
278
234
  "no-events-in-events-callback": import("oxlint-plugin-utilities").CreateRule<readonly [{
279
- readonly eventsImportPaths: readonly string[];
280
- }], "preferFunctions", readonly [{
281
235
  readonly additionalProperties: false;
282
236
  readonly properties: {
283
237
  readonly eventsImportPaths: {
@@ -290,18 +244,9 @@ declare const smallRules: import("oxlint-plugin-utilities").Plugin<{
290
244
  };
291
245
  readonly required: readonly ["eventsImportPaths"];
292
246
  readonly type: "object";
293
- }]>;
294
- "no-giant-component": import("oxlint-plugin-utilities").CreateRule<readonly [], "giantComponent", undefined>;
247
+ }], "preferFunctions", undefined>;
248
+ "no-giant-component": import("oxlint-plugin-utilities").CreateRule<undefined, "giantComponent", undefined>;
295
249
  "no-god-components": import("oxlint-plugin-utilities").CreateRule<readonly [{
296
- readonly enforceTargetLines?: boolean;
297
- readonly ignoreComponents?: readonly string[];
298
- readonly maxDestructuredProps?: number;
299
- readonly maxLines?: number;
300
- readonly maxStateHooks?: number;
301
- readonly maxTsxNesting?: number;
302
- readonly stateHooks?: readonly string[];
303
- readonly targetLines?: number;
304
- }], "exceedsMaxLines" | "exceedsTargetLines" | "nullLiteral" | "tooManyProps" | "tooManyStateHooks" | "tsxNestingTooDeep", readonly [{
305
250
  readonly additionalProperties: false;
306
251
  readonly properties: {
307
252
  readonly enforceTargetLines: {
@@ -351,12 +296,10 @@ declare const smallRules: import("oxlint-plugin-utilities").Plugin<{
351
296
  };
352
297
  };
353
298
  readonly type: "object";
354
- }]>;
355
- "no-ianitor-in-function-body": import("oxlint-plugin-utilities").CreateRule<readonly [], "hoistIanitorValidator", readonly []>;
356
- "no-ianitor-success-access": import("oxlint-plugin-utilities").CreateRule<readonly [], "preferCreateGuard", readonly []>;
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>;
357
302
  "no-identity-map": import("oxlint-plugin-utilities").CreateRule<readonly [{
358
- readonly bindingPatterns?: readonly string[];
359
- }], "identityArrayMap" | "identityBindingMap", readonly [{
360
303
  readonly additionalProperties: false;
361
304
  readonly properties: {
362
305
  readonly bindingPatterns: {
@@ -369,10 +312,8 @@ declare const smallRules: import("oxlint-plugin-utilities").Plugin<{
369
312
  };
370
313
  };
371
314
  readonly type: "object";
372
- }]>;
315
+ }], "identityArrayMap" | "identityBindingMap", undefined>;
373
316
  "no-increment-decrement": import("oxlint-plugin-utilities").CreateRule<readonly [{
374
- readonly allowAutofix?: boolean;
375
- }], "noDecrement" | "noIncrement", readonly [{
376
317
  readonly additionalProperties: false;
377
318
  readonly properties: {
378
319
  readonly allowAutofix: {
@@ -381,13 +322,9 @@ declare const smallRules: import("oxlint-plugin-utilities").Plugin<{
381
322
  };
382
323
  };
383
324
  readonly type: "object";
384
- }]>;
385
- "no-inline-property-on-memo-component": import("oxlint-plugin-utilities").CreateRule<readonly [], "inlineProperty", undefined>;
325
+ }], "noDecrement" | "noIncrement", undefined>;
326
+ "no-inline-property-on-memo-component": import("oxlint-plugin-utilities").CreateRule<undefined, "inlineProperty", undefined>;
386
327
  "no-instance-methods-without-this": import("oxlint-plugin-utilities").CreateRule<readonly [{
387
- readonly checkPrivate?: boolean;
388
- readonly checkProtected?: boolean;
389
- readonly checkPublic?: boolean;
390
- }], "noInstanceMethodWithoutThis", readonly [{
391
328
  readonly additionalProperties: false;
392
329
  readonly properties: {
393
330
  readonly checkPrivate: {
@@ -407,13 +344,9 @@ declare const smallRules: import("oxlint-plugin-utilities").Plugin<{
407
344
  };
408
345
  };
409
346
  readonly type: "object";
410
- }]>;
411
- "no-native-properties-spread": import("oxlint-plugin-utilities").CreateRule<readonly [], "noElementSpread" | "noNativePropertiesSpread", readonly []>;
347
+ }], "noInstanceMethodWithoutThis", undefined>;
348
+ "no-native-properties-spread": import("oxlint-plugin-utilities").CreateRule<readonly [], "noElementSpread" | "noNativePropertiesSpread", undefined>;
412
349
  "no-new-instance-in-use-memo": import("oxlint-plugin-utilities").CreateRule<readonly [{
413
- readonly constructors?: readonly string[];
414
- readonly environment?: "roblox-ts" | "standard";
415
- readonly maxHelperTraceDepth?: number;
416
- }], "noNewInUseMemo", readonly [{
417
350
  readonly additionalProperties: false;
418
351
  readonly properties: {
419
352
  readonly constructors: {
@@ -437,19 +370,51 @@ declare const smallRules: import("oxlint-plugin-utilities").Plugin<{
437
370
  };
438
371
  };
439
372
  readonly type: "object";
440
- }]>;
373
+ }], "noNewInUseMemo", undefined>;
441
374
  "no-print": import("oxlint-plugin-utilities").CreateRule<readonly [], "noPrint", readonly []>;
442
- "no-recursive": import("oxlint-plugin-utilities").CreateRule<readonly [{}], "noRecursive", readonly [{
375
+ "no-recursive": import("oxlint-plugin-utilities").CreateRule<readonly [{
443
376
  readonly additionalProperties: false;
444
377
  readonly properties: {};
445
378
  readonly type: "object";
446
- }]>;
447
- "no-redundant-aspect-ratio-constraint": import("oxlint-plugin-utilities").CreateRule<readonly [], "redundantAspectRatioConstraint", readonly []>;
448
- "no-render-helper-functions": import("oxlint-plugin-utilities").CreateRule<readonly [], "noRenderHelper", readonly []>;
449
- "no-spec-file-extension": import("oxlint-plugin-utilities").CreateRule<readonly [], "noSpecFileExtension", readonly []>;
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>;
450
417
  "no-static-react-create-element": import("oxlint-plugin-utilities").CreateRule<readonly [{
451
- readonly environment?: "roblox-ts" | "standard";
452
- }], "useJsx", readonly [{
453
418
  readonly additionalProperties: false;
454
419
  readonly properties: {
455
420
  environment: {
@@ -458,13 +423,11 @@ declare const smallRules: import("oxlint-plugin-utilities").Plugin<{
458
423
  };
459
424
  };
460
425
  readonly type: "object";
461
- }]>;
462
- "no-table-create-map": import("oxlint-plugin-utilities").CreateRule<readonly [], "avoidConstructThenMap", readonly []>;
463
- "no-task-wait": import("oxlint-plugin-utilities").CreateRule<readonly [], "noPromiseDelayAwait" | "noTaskWait", readonly []>;
464
- "no-underscore-react-props": import("oxlint-plugin-utilities").CreateRule<readonly [], "noUnderscoreReactProp", readonly []>;
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>;
465
430
  "no-unused-imports": import("oxlint-plugin-utilities").CreateRule<readonly [{
466
- readonly checkJSDoc?: boolean;
467
- }], "unusedImport", readonly [{
468
431
  readonly additionalProperties: false;
469
432
  readonly properties: {
470
433
  readonly checkJSDoc: {
@@ -474,10 +437,8 @@ declare const smallRules: import("oxlint-plugin-utilities").Plugin<{
474
437
  };
475
438
  };
476
439
  readonly type: "object";
477
- }]>;
440
+ }], "unusedImport", undefined>;
478
441
  "no-unused-use-memo": import("oxlint-plugin-utilities").CreateRule<readonly [{
479
- readonly environment?: "roblox-ts" | "standard";
480
- }], "unusedUseMemo", readonly [{
481
442
  readonly additionalProperties: false;
482
443
  readonly properties: {
483
444
  readonly environment: {
@@ -487,11 +448,9 @@ declare const smallRules: import("oxlint-plugin-utilities").Plugin<{
487
448
  };
488
449
  };
489
450
  readonly type: "object";
490
- }]>;
491
- "no-use-memo-simple-expression": import("oxlint-plugin-utilities").CreateRule<readonly [], "simpleMemo", undefined>;
451
+ }], "unusedUseMemo", undefined>;
452
+ "no-use-memo-simple-expression": import("oxlint-plugin-utilities").CreateRule<undefined, "simpleMemo", undefined>;
492
453
  "no-useless-constants": import("oxlint-plugin-utilities").CreateRule<readonly [{
493
- readonly ignoreCallPatterns?: readonly string[];
494
- }], "uselessConstant" | "uselessConstantNoFix" | "uselessConstants", readonly [{
495
454
  readonly additionalProperties: false;
496
455
  readonly properties: {
497
456
  readonly ignoreCallPatterns: {
@@ -503,29 +462,9 @@ declare const smallRules: import("oxlint-plugin-utilities").Plugin<{
503
462
  };
504
463
  };
505
464
  readonly type: "object";
506
- }]>;
507
- "no-useless-default": import("oxlint-plugin-utilities").CreateRule<readonly [], "uselessDefault", readonly []>;
465
+ }], "uselessConstant" | "uselessConstantNoFix" | "uselessConstants", undefined>;
466
+ "no-useless-default": import("oxlint-plugin-utilities").CreateRule<readonly [], "uselessDefault", undefined>;
508
467
  "no-useless-use-effect": import("oxlint-plugin-utilities").CreateRule<readonly [{
509
- readonly environment?: "roblox-ts" | "standard";
510
- readonly hooks?: readonly string[];
511
- readonly propertyCallbackPrefixes?: readonly string[];
512
- readonly refHooks?: readonly string[];
513
- readonly reportAdjustState?: boolean;
514
- readonly reportDerivedState?: boolean;
515
- readonly reportDuplicateDeps?: boolean;
516
- readonly reportEffectChain?: boolean;
517
- readonly reportEmptyEffect?: boolean;
518
- readonly reportEventFlag?: boolean;
519
- readonly reportEventSpecificLogic?: boolean;
520
- readonly reportExternalStore?: boolean;
521
- readonly reportInitializeState?: boolean;
522
- readonly reportLogOnly?: boolean;
523
- readonly reportMixedDerivedState?: boolean;
524
- readonly reportNotifyParent?: boolean;
525
- readonly reportPassRefToParent?: boolean;
526
- readonly reportResetState?: boolean;
527
- readonly stateHooks?: readonly string[];
528
- }], "adjustState" | "derivedState" | "duplicateDeps" | "effectChain" | "emptyEffect" | "eventFlag" | "eventSpecificLogic" | "externalStore" | "initializeState" | "logOnly" | "mixedDerivedState" | "notifyParent" | "passRefToParent" | "resetState", readonly [{
529
468
  readonly additionalProperties: false;
530
469
  readonly properties: {
531
470
  readonly environment: {
@@ -622,12 +561,8 @@ declare const smallRules: import("oxlint-plugin-utilities").Plugin<{
622
561
  };
623
562
  };
624
563
  readonly type: "object";
625
- }]>;
564
+ }], "adjustState" | "derivedState" | "duplicateDeps" | "effectChain" | "emptyEffect" | "eventFlag" | "eventSpecificLogic" | "externalStore" | "initializeState" | "logOnly" | "mixedDerivedState" | "notifyParent" | "passRefToParent" | "resetState", undefined>;
626
565
  "no-useless-use-memo": import("oxlint-plugin-utilities").CreateRule<readonly [{
627
- readonly dependencyMode?: "aggressive" | "empty-or-omitted" | "non-updating";
628
- readonly environment?: "roblox-ts" | "standard";
629
- readonly staticGlobalFactories?: readonly string[];
630
- }], "uselessUseMemo", readonly [{
631
566
  readonly additionalProperties: false;
632
567
  readonly properties: {
633
568
  readonly dependencyMode: {
@@ -648,12 +583,8 @@ declare const smallRules: import("oxlint-plugin-utilities").Plugin<{
648
583
  };
649
584
  };
650
585
  readonly type: "object";
651
- }]>;
586
+ }], "uselessUseMemo", undefined>;
652
587
  "no-useless-use-spring": import("oxlint-plugin-utilities").CreateRule<readonly [{
653
- readonly springHooks?: readonly string[];
654
- readonly staticGlobalFactories?: readonly string[];
655
- readonly treatEmptyDepsAsViolation?: boolean;
656
- }], "uselessSpring", readonly [{
657
588
  readonly additionalProperties: false;
658
589
  readonly default: {
659
590
  readonly staticGlobalFactories: readonly string[];
@@ -682,18 +613,16 @@ declare const smallRules: import("oxlint-plugin-utilities").Plugin<{
682
613
  };
683
614
  };
684
615
  readonly type: "object";
685
- }]>;
616
+ }], "uselessSpring", undefined>;
686
617
  "no-warn": import("oxlint-plugin-utilities").CreateRule<readonly [], "noWarn", readonly []>;
687
- "only-type-imports": import("oxlint-plugin-utilities").CreateRule<readonly [], "onlyTypeImports", readonly []>;
688
- "prefer-class-properties": import("oxlint-plugin-utilities").CreateRule<readonly ["always" | "never"], "unexpectedAssignment" | "unexpectedClassProperty", readonly [{
618
+ "only-type-imports": import("oxlint-plugin-utilities").CreateRule<readonly [], "onlyTypeImports", undefined>;
619
+ "prefer-class-properties": import("oxlint-plugin-utilities").CreateRule<readonly [{
689
620
  readonly enum: readonly ["always", "never"];
690
621
  readonly type: "string";
691
- }]>;
692
- "prefer-constant-dispatch": import("oxlint-plugin-utilities").CreateRule<readonly [], "preferConstantDispatch", readonly []>;
693
- "prefer-context-stack": import("oxlint-plugin-utilities").CreateRule<readonly [], "preferContextStack", readonly []>;
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>;
694
625
  "prefer-early-return": import("oxlint-plugin-utilities").CreateRule<readonly [{
695
- readonly maximumStatements?: number;
696
- }], "preferEarlyReturn", readonly [{
697
626
  readonly additionalProperties: false;
698
627
  readonly properties: {
699
628
  readonly maximumStatements: {
@@ -703,14 +632,8 @@ declare const smallRules: import("oxlint-plugin-utilities").Plugin<{
703
632
  };
704
633
  };
705
634
  readonly type: "object";
706
- }]>;
635
+ }], "preferEarlyReturn", undefined>;
707
636
  "prefer-expect-assertions": import("oxlint-plugin-utilities").CreateRule<readonly [{
708
- readonly additionalAssertionFunctions?: readonly string[];
709
- readonly additionalExpectCallNames?: readonly string[];
710
- readonly onlyFunctionsWithAsyncKeyword?: boolean;
711
- readonly onlyFunctionsWithExpectInCallback?: boolean;
712
- readonly onlyFunctionsWithExpectInLoop?: boolean;
713
- }], "assertionsRequiresNumberArgument" | "assertionsRequiresOneArgument" | "hasAssertionsTakesNoArguments" | "haveExpectAssertions" | "preferAssertionsCount" | "suggestAddingAssertions" | "suggestAddingHasAssertions" | "wrongAssertionCount", readonly [{
714
637
  readonly additionalProperties: false;
715
638
  readonly properties: {
716
639
  readonly additionalAssertionFunctions: {
@@ -736,11 +659,8 @@ declare const smallRules: import("oxlint-plugin-utilities").Plugin<{
736
659
  };
737
660
  };
738
661
  readonly type: "object";
739
- }]>;
662
+ }], "assertionsRequiresNumberArgument" | "assertionsRequiresOneArgument" | "hasAssertionsTakesNoArguments" | "haveExpectAssertions" | "preferAssertionsCount" | "suggestAddingAssertions" | "suggestAddingHasAssertions" | "wrongAssertionCount", undefined>;
740
663
  "prefer-hoisted-jsx-elements": import("oxlint-plugin-utilities").CreateRule<readonly [{
741
- readonly additionalHoistableComponents?: readonly string[];
742
- readonly additionalStaticFactories?: readonly string[];
743
- }], "hoistableJsxElement", readonly [{
744
664
  readonly additionalProperties: false;
745
665
  readonly properties: {
746
666
  readonly additionalHoistableComponents: {
@@ -759,45 +679,22 @@ declare const smallRules: import("oxlint-plugin-utilities").Plugin<{
759
679
  };
760
680
  };
761
681
  readonly type: "object";
762
- }]>;
763
- "prefer-hoisted-jsx-object-properties": import("oxlint-plugin-utilities").CreateRule<readonly [], "hoistableObjectProp", readonly []>;
764
- "prefer-idiv": import("oxlint-plugin-utilities").CreateRule<readonly [], "useIdiv", readonly []>;
765
- "prefer-local-portal-component": import("oxlint-plugin-utilities").CreateRule<readonly [], "preferPortalComponent", readonly []>;
766
- "prefer-math-min-max": import("oxlint-plugin-utilities").CreateRule<readonly [], "preferMathMethod", readonly []>;
767
- "prefer-modding-inspect": import("oxlint-plugin-utilities").CreateRule<readonly [], "preferModdingInspect", readonly []>;
768
- "prefer-module-scope-constants": import("oxlint-plugin-utilities").CreateRule<readonly [], "mustBeModuleScope" | "mustUseConst", readonly []>;
769
- "prefer-padding-components": import("oxlint-plugin-utilities").CreateRule<readonly [], "preferDirectionalPadding" | "preferEqualPadding", readonly []>;
770
- "prefer-pascal-case-enums": import("oxlint-plugin-utilities").CreateRule<readonly [], "notPascalCase", readonly []>;
771
- "prefer-sequence-overloads": import("oxlint-plugin-utilities").CreateRule<readonly [], "preferSingleOverload" | "preferTwoPointOverload", readonly []>;
772
- "prefer-single-world-query": import("oxlint-plugin-utilities").CreateRule<readonly [], "preferSingleGet" | "preferSingleHas", readonly []>;
773
- "prefer-singular-enums": import("oxlint-plugin-utilities").CreateRule<readonly [], "notSingular", readonly []>;
774
- "prefer-ternary-conditional-rendering": import("oxlint-plugin-utilities").CreateRule<readonly [], "preferTernaryConditionalRendering", readonly []>;
775
- "prefer-udim2-shorthand": import("oxlint-plugin-utilities").CreateRule<readonly [], "preferFromOffset" | "preferFromScale", readonly []>;
776
- "prefer-use-reducer": import("oxlint-plugin-utilities").CreateRule<readonly [], "excessiveUseState", undefined>;
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>;
777
697
  "prevent-abbreviations": import("oxlint-plugin-utilities").CreateRule<readonly [{
778
- readonly allowList?: {
779
- readonly [x: string]: boolean;
780
- };
781
- readonly allowPropertyAccess?: readonly string[];
782
- readonly checkDefaultAndNamespaceImports?: "internal" | boolean;
783
- readonly checkFilenames?: boolean;
784
- readonly checkProperties?: boolean;
785
- readonly checkShorthandImports?: "internal" | boolean;
786
- readonly checkShorthandProperties?: boolean;
787
- readonly checkVariables?: boolean;
788
- readonly extendDefaultAllowList?: boolean;
789
- readonly extendDefaultReplacements?: boolean;
790
- readonly ignore?: readonly (string | {})[];
791
- readonly ignoreShorthands?: readonly string[];
792
- readonly replacements?: {
793
- readonly [x: string]: false | {
794
- readonly [x: string]: boolean;
795
- };
796
- };
797
- readonly shorthands?: {
798
- readonly [x: string]: string;
799
- };
800
- }], "replace" | "suggestion", readonly [{
801
698
  readonly additionalProperties: false;
802
699
  readonly properties: {
803
700
  readonly allowList: {
@@ -873,11 +770,9 @@ declare const smallRules: import("oxlint-plugin-utilities").Plugin<{
873
770
  };
874
771
  };
875
772
  readonly type: "object";
876
- }]>;
877
- "react-hooks-strict-return": import("oxlint-plugin-utilities").CreateRule<readonly [], "tooManyReturnValues", readonly []>;
773
+ }], "replace" | "suggestion", undefined>;
774
+ "react-hooks-strict-return": import("oxlint-plugin-utilities").CreateRule<readonly [], "tooManyReturnValues", undefined>;
878
775
  "require-async-suffix": import("oxlint-plugin-utilities").CreateRule<readonly [{
879
- readonly except?: readonly string[];
880
- }], "missingAsyncSuffix", readonly [{
881
776
  readonly additionalProperties: false;
882
777
  readonly properties: {
883
778
  readonly except: {
@@ -888,12 +783,8 @@ declare const smallRules: import("oxlint-plugin-utilities").Plugin<{
888
783
  };
889
784
  };
890
785
  readonly type: "object";
891
- }]>;
786
+ }], "missingAsyncSuffix", undefined>;
892
787
  "require-module-level-instantiation": import("oxlint-plugin-utilities").CreateRule<readonly [{
893
- readonly classes?: {
894
- readonly [x: string]: string;
895
- };
896
- }], "mustBeModuleLevel", readonly [{
897
788
  readonly additionalProperties: false;
898
789
  readonly properties: {
899
790
  readonly classes: {
@@ -904,14 +795,8 @@ declare const smallRules: import("oxlint-plugin-utilities").Plugin<{
904
795
  };
905
796
  };
906
797
  readonly type: "object";
907
- }]>;
798
+ }], "mustBeModuleLevel", undefined>;
908
799
  "require-named-effect-functions": import("oxlint-plugin-utilities").CreateRule<readonly [{
909
- readonly environment?: "roblox-ts" | "standard";
910
- readonly hooks?: readonly {
911
- readonly allowAsync: boolean;
912
- readonly name: string;
913
- }[];
914
- }], "anonymousFunction" | "arrowFunction" | "asyncAnonymousFunction" | "asyncArrowFunction" | "asyncFunctionDeclaration" | "asyncFunctionExpression" | "functionExpression" | "identifierReferencesArrow" | "identifierReferencesAsyncArrow" | "identifierReferencesAsyncFunction" | "identifierReferencesCallback", readonly [{
915
800
  readonly additionalProperties: false;
916
801
  readonly properties: {
917
802
  readonly environment: {
@@ -941,21 +826,8 @@ declare const smallRules: import("oxlint-plugin-utilities").Plugin<{
941
826
  };
942
827
  };
943
828
  readonly type: "object";
944
- }]>;
829
+ }], "anonymousFunction" | "arrowFunction" | "asyncAnonymousFunction" | "asyncArrowFunction" | "asyncFunctionDeclaration" | "asyncFunctionExpression" | "functionExpression" | "identifierReferencesArrow" | "identifierReferencesAsyncArrow" | "identifierReferencesAsyncFunction" | "identifierReferencesCallback", undefined>;
945
830
  "require-paired-calls": import("oxlint-plugin-utilities").CreateRule<readonly [{
946
- readonly allowConditionalClosers?: boolean;
947
- readonly allowMultipleOpeners?: boolean;
948
- readonly maxNestingDepth?: number;
949
- readonly pairs: readonly {
950
- readonly alternatives?: readonly string[];
951
- readonly closer: string | readonly string[];
952
- readonly opener: string;
953
- readonly openerAlternatives?: readonly string[];
954
- readonly platform?: "roblox";
955
- readonly requireSync?: boolean;
956
- readonly yieldingFunctions?: readonly string[];
957
- }[];
958
- }], "asyncViolation" | "conditionalOpener" | "maxNestingExceeded" | "multipleOpeners" | "robloxYieldViolation" | "unexpectedCloser" | "unpairedCloser" | "unpairedOpener" | "wrongOrder", readonly [{
959
831
  readonly additionalProperties: false;
960
832
  readonly properties: {
961
833
  readonly allowConditionalClosers: {
@@ -1031,13 +903,8 @@ declare const smallRules: import("oxlint-plugin-utilities").Plugin<{
1031
903
  };
1032
904
  readonly required: readonly ["pairs"];
1033
905
  readonly type: "object";
1034
- }]>;
906
+ }], "asyncViolation" | "conditionalOpener" | "maxNestingExceeded" | "multipleOpeners" | "robloxYieldViolation" | "unexpectedCloser" | "unpairedCloser" | "unpairedOpener" | "wrongOrder", undefined>;
1035
907
  "require-react-component-keys": import("oxlint-plugin-utilities").CreateRule<readonly [{
1036
- readonly allowRootKeys?: boolean;
1037
- readonly ignoreCallExpressions?: readonly string[];
1038
- readonly iterationMethods?: readonly string[];
1039
- readonly memoizationHooks?: readonly string[];
1040
- }], "missingKey" | "rootComponentWithKey", readonly [{
1041
908
  readonly additionalProperties: false;
1042
909
  readonly properties: {
1043
910
  readonly allowRootKeys: {
@@ -1071,10 +938,8 @@ declare const smallRules: import("oxlint-plugin-utilities").Plugin<{
1071
938
  };
1072
939
  };
1073
940
  readonly type: "object";
1074
- }]>;
941
+ }], "missingKey" | "rootComponentWithKey", undefined>;
1075
942
  "require-react-display-names": import("oxlint-plugin-utilities").CreateRule<readonly [{
1076
- readonly environment?: "roblox-ts" | "standard";
1077
- }], "directContextExport" | "directMemoExport" | "missingContextDisplayName" | "missingMemoDisplayName", readonly [{
1078
943
  readonly additionalProperties: false;
1079
944
  readonly properties: {
1080
945
  environment: {
@@ -1083,10 +948,8 @@ declare const smallRules: import("oxlint-plugin-utilities").Plugin<{
1083
948
  };
1084
949
  };
1085
950
  readonly type: "object";
1086
- }]>;
951
+ }], "directContextExport" | "directMemoExport" | "missingContextDisplayName" | "missingMemoDisplayName", undefined>;
1087
952
  "require-switch-case-braces": import("oxlint-plugin-utilities").CreateRule<readonly [{
1088
- readonly metric?: "lines" | "statements";
1089
- }], "wrapCaseBody", readonly [{
1090
953
  readonly additionalProperties: false;
1091
954
  readonly properties: {
1092
955
  readonly metric: {
@@ -1096,15 +959,8 @@ declare const smallRules: import("oxlint-plugin-utilities").Plugin<{
1096
959
  };
1097
960
  };
1098
961
  readonly type: "object";
1099
- }]>;
962
+ }], "wrapCaseBody", undefined>;
1100
963
  "require-throw-error-capture": import("oxlint-plugin-utilities").CreateRule<readonly [{
1101
- readonly allow?: readonly (string | {
1102
- readonly from?: "file" | "library" | "package";
1103
- readonly name: string | readonly string[];
1104
- readonly package?: string;
1105
- readonly path?: string;
1106
- })[];
1107
- }], "missingCaptureStackTrace", readonly [{
1108
964
  readonly additionalProperties: false;
1109
965
  readonly properties: {
1110
966
  readonly allow: {
@@ -1148,13 +1004,10 @@ declare const smallRules: import("oxlint-plugin-utilities").Plugin<{
1148
1004
  };
1149
1005
  };
1150
1006
  readonly type: "object";
1151
- }]>;
1152
- "require-unicode-regex": import("oxlint-plugin-utilities").CreateRule<readonly [], "requireUnicodeFlag", readonly []>;
1153
- "rerender-memo-with-default-value": import("oxlint-plugin-utilities").CreateRule<readonly [], "emptyArrayDefault" | "emptyObjectDefault", undefined>;
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>;
1154
1010
  "strict-component-boundaries": import("oxlint-plugin-utilities").CreateRule<readonly [{
1155
- readonly allow?: readonly string[];
1156
- readonly maxDepth?: number;
1157
- }], "noReachingIntoComponent", readonly [{
1158
1011
  readonly additionalProperties: false;
1159
1012
  readonly properties: {
1160
1013
  readonly allow: {
@@ -1168,19 +1021,8 @@ declare const smallRules: import("oxlint-plugin-utilities").Plugin<{
1168
1021
  };
1169
1022
  };
1170
1023
  readonly type: "object";
1171
- }]>;
1024
+ }], "noReachingIntoComponent", undefined>;
1172
1025
  "use-exhaustive-dependencies": import("oxlint-plugin-utilities").CreateRule<readonly [{
1173
- readonly hooks?: readonly {
1174
- readonly closureIndex?: number;
1175
- readonly dependenciesIndex?: number;
1176
- readonly name: string;
1177
- readonly stableResult?: number | boolean | readonly string[] | readonly number[];
1178
- }[];
1179
- readonly reportMissingDependenciesArray?: boolean;
1180
- readonly reportUnnecessaryDependencies?: boolean;
1181
- readonly reportUnnecessaryStableDependencies?: boolean;
1182
- readonly resolveExpressionDependencies?: boolean;
1183
- }], "addDependenciesArraySuggestion" | "addDependencySuggestion" | "addMissingDependenciesSuggestion" | "missingDependencies" | "missingDependenciesArray" | "missingDependency" | "removeDependencySuggestion" | "unnecessaryDependency" | "unstableDependency", readonly [{
1184
1026
  readonly additionalProperties: false;
1185
1027
  readonly properties: {
1186
1028
  readonly hooks: {
@@ -1246,14 +1088,8 @@ declare const smallRules: import("oxlint-plugin-utilities").Plugin<{
1246
1088
  };
1247
1089
  };
1248
1090
  readonly type: "object";
1249
- }]>;
1091
+ }], "addDependenciesArraySuggestion" | "addDependencySuggestion" | "addMissingDependenciesSuggestion" | "missingDependencies" | "missingDependenciesArray" | "missingDependency" | "removeDependencySuggestion" | "unnecessaryDependency" | "unstableDependency", undefined>;
1250
1092
  "use-hook-at-top-level": import("oxlint-plugin-utilities").CreateRule<readonly [{
1251
- readonly ignoreHooks?: readonly string[];
1252
- readonly importSources?: {
1253
- readonly [x: string]: boolean;
1254
- };
1255
- readonly onlyHooks?: readonly string[];
1256
- }], "afterEarlyReturn" | "conditionalHook" | "loopHook" | "nestedFunction" | "recursiveHookCall" | "tryBlockHook", readonly [{
1257
1093
  readonly additionalProperties: false;
1258
1094
  readonly properties: {
1259
1095
  readonly ignoreHooks: {
@@ -1276,7 +1112,7 @@ declare const smallRules: import("oxlint-plugin-utilities").Plugin<{
1276
1112
  };
1277
1113
  };
1278
1114
  readonly type: "object";
1279
- }]>;
1115
+ }], "afterEarlyReturn" | "conditionalHook" | "loopHook" | "nestedFunction" | "recursiveHookCall" | "tryBlockHook", undefined>;
1280
1116
  }>;
1281
1117
  //#endregion
1282
1118
  export { smallRules as default };