@pobammer-ts/small-rules 2.14.0 → 2.15.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.
Files changed (3) hide show
  1. package/dist/index.d.ts +109 -1
  2. package/dist/index.js +38 -10
  3. package/package.json +18 -16
package/dist/index.d.ts CHANGED
@@ -251,6 +251,18 @@ declare const smallRules: import("oxlint-plugin-utilities").Plugin<{
251
251
  };
252
252
  readonly type: "object";
253
253
  }], "unmemoizedDependency", undefined>;
254
+ "no-adjust-state-on-prop-change": import("oxlint-plugin-utilities").CreateRule<readonly [{
255
+ readonly additionalProperties: false;
256
+ readonly properties: {
257
+ readonly environment: {
258
+ readonly default: "roblox-ts";
259
+ readonly description: "The React environment: 'roblox-ts' uses @rbxts/react, 'standard' uses react.";
260
+ readonly enum: readonly ["roblox-ts", "standard"];
261
+ readonly type: "string";
262
+ };
263
+ };
264
+ readonly type: "object";
265
+ }], "avoidAdjustingStateWhenAPropChanges", undefined>;
254
266
  "no-array-constructor-elements": import("oxlint-plugin-utilities").CreateRule<readonly [{
255
267
  readonly additionalProperties: false;
256
268
  readonly properties: {
@@ -360,6 +372,18 @@ declare const smallRules: import("oxlint-plugin-utilities").Plugin<{
360
372
  readonly type: "object";
361
373
  }], "noAsyncInSystem", undefined>;
362
374
  "no-cascading-set-state": import("oxlint-plugin-utilities").CreateRule<undefined, "cascadingSetState", undefined>;
375
+ "no-chain-state-updates": import("oxlint-plugin-utilities").CreateRule<readonly [{
376
+ readonly additionalProperties: false;
377
+ readonly properties: {
378
+ readonly environment: {
379
+ readonly default: "roblox-ts";
380
+ readonly description: "The React environment: 'roblox-ts' uses @rbxts/react, 'standard' uses react.";
381
+ readonly enum: readonly ["roblox-ts", "standard"];
382
+ readonly type: "string";
383
+ };
384
+ };
385
+ readonly type: "object";
386
+ }], "avoidChainingStateUpdates", undefined>;
363
387
  "no-color3-constructor": import("oxlint-plugin-utilities").CreateRule<readonly [{
364
388
  readonly additionalProperties: false;
365
389
  readonly properties: {
@@ -397,7 +421,31 @@ declare const smallRules: import("oxlint-plugin-utilities").Plugin<{
397
421
  readonly type: "object";
398
422
  }], "unexpected", undefined>;
399
423
  "no-dead-store": import("oxlint-plugin-utilities").CreateRule<readonly [], "deadStore", undefined>;
424
+ "no-derived-state": import("oxlint-plugin-utilities").CreateRule<readonly [{
425
+ readonly additionalProperties: false;
426
+ readonly properties: {
427
+ readonly environment: {
428
+ readonly default: "roblox-ts";
429
+ readonly description: "The React environment: 'roblox-ts' uses @rbxts/react, 'standard' uses react.";
430
+ readonly enum: readonly ["roblox-ts", "standard"];
431
+ readonly type: "string";
432
+ };
433
+ };
434
+ readonly type: "object";
435
+ }], "avoidDerivedState", undefined>;
400
436
  "no-error": import("oxlint-plugin-utilities").CreateRule<readonly [], "noError", readonly []>;
437
+ "no-event-handler": import("oxlint-plugin-utilities").CreateRule<readonly [{
438
+ readonly additionalProperties: false;
439
+ readonly properties: {
440
+ readonly environment: {
441
+ readonly default: "roblox-ts";
442
+ readonly description: "The React environment: 'roblox-ts' uses @rbxts/react, 'standard' uses react.";
443
+ readonly enum: readonly ["roblox-ts", "standard"];
444
+ readonly type: "string";
445
+ };
446
+ };
447
+ readonly type: "object";
448
+ }], "avoidEventHandler" | "avoidPropHandler", undefined>;
401
449
  "no-events-in-events-callback": import("oxlint-plugin-utilities").CreateRule<readonly [{
402
450
  readonly additionalProperties: false;
403
451
  readonly properties: {
@@ -413,6 +461,18 @@ declare const smallRules: import("oxlint-plugin-utilities").Plugin<{
413
461
  readonly required: readonly ["eventsImportPaths"];
414
462
  readonly type: "object";
415
463
  }], "preferFunctions", undefined>;
464
+ "no-external-store-subscription": import("oxlint-plugin-utilities").CreateRule<readonly [{
465
+ readonly additionalProperties: false;
466
+ readonly properties: {
467
+ readonly environment: {
468
+ readonly default: "roblox-ts";
469
+ readonly description: "The React environment: 'roblox-ts' uses @rbxts/react, 'standard' uses react.";
470
+ readonly enum: readonly ["roblox-ts", "standard"];
471
+ readonly type: "string";
472
+ };
473
+ };
474
+ readonly type: "object";
475
+ }], "avoidExternalStoreSubscription", undefined>;
416
476
  "no-filter-map-chain": import("oxlint-plugin-utilities").CreateRule<readonly [], "avoidFilterMapChain", undefined>;
417
477
  "no-floating-point-equality": import("oxlint-plugin-utilities").CreateRule<readonly [], "exactFloatComparison", undefined>;
418
478
  "no-giant-component": import("oxlint-plugin-utilities").CreateRule<undefined, "giantComponent", undefined>;
@@ -495,6 +555,18 @@ declare const smallRules: import("oxlint-plugin-utilities").Plugin<{
495
555
  };
496
556
  readonly type: "object";
497
557
  }], "noDecrement" | "noIncrement", undefined>;
558
+ "no-initialize-state": import("oxlint-plugin-utilities").CreateRule<readonly [{
559
+ readonly additionalProperties: false;
560
+ readonly properties: {
561
+ readonly environment: {
562
+ readonly default: "roblox-ts";
563
+ readonly description: "The React environment: 'roblox-ts' uses @rbxts/react, 'standard' uses react.";
564
+ readonly enum: readonly ["roblox-ts", "standard"];
565
+ readonly type: "string";
566
+ };
567
+ };
568
+ readonly type: "object";
569
+ }], "avoidInitializingState", undefined>;
498
570
  "no-inline-property-on-memo-component": import("oxlint-plugin-utilities").CreateRule<undefined, "inlineProperty", undefined>;
499
571
  "no-instance-methods-without-this": import("oxlint-plugin-utilities").CreateRule<readonly [{
500
572
  readonly additionalProperties: false;
@@ -545,6 +617,30 @@ declare const smallRules: import("oxlint-plugin-utilities").Plugin<{
545
617
  };
546
618
  readonly type: "object";
547
619
  }], "noNewInUseMemo", undefined>;
620
+ "no-pass-data-to-parent": import("oxlint-plugin-utilities").CreateRule<readonly [{
621
+ readonly additionalProperties: false;
622
+ readonly properties: {
623
+ readonly environment: {
624
+ readonly default: "roblox-ts";
625
+ readonly description: "The React environment: 'roblox-ts' uses @rbxts/react, 'standard' uses react.";
626
+ readonly enum: readonly ["roblox-ts", "standard"];
627
+ readonly type: "string";
628
+ };
629
+ };
630
+ readonly type: "object";
631
+ }], "avoidPassingDataToParentInComponent" | "avoidPassingDataToParentInHook", undefined>;
632
+ "no-pass-live-state-to-parent": import("oxlint-plugin-utilities").CreateRule<readonly [{
633
+ readonly additionalProperties: false;
634
+ readonly properties: {
635
+ readonly environment: {
636
+ readonly default: "roblox-ts";
637
+ readonly description: "The React environment: 'roblox-ts' uses @rbxts/react, 'standard' uses react.";
638
+ readonly enum: readonly ["roblox-ts", "standard"];
639
+ readonly type: "string";
640
+ };
641
+ };
642
+ readonly type: "object";
643
+ }], "avoidPassingLiveStateToParentInComponent" | "avoidPassingLiveStateToParentInHook", undefined>;
548
644
  "no-print": import("oxlint-plugin-utilities").CreateRule<readonly [], "noPrint", readonly []>;
549
645
  "no-recursive": import("oxlint-plugin-utilities").CreateRule<readonly [{
550
646
  readonly additionalProperties: false;
@@ -553,6 +649,18 @@ declare const smallRules: import("oxlint-plugin-utilities").Plugin<{
553
649
  }], "noRecursive", undefined>;
554
650
  "no-redundant-aspect-ratio-constraint": import("oxlint-plugin-utilities").CreateRule<readonly [], "redundantAspectRatioConstraint", undefined>;
555
651
  "no-render-helper-functions": import("oxlint-plugin-utilities").CreateRule<readonly [], "noRenderHelper", undefined>;
652
+ "no-reset-all-state-on-prop-change": import("oxlint-plugin-utilities").CreateRule<readonly [{
653
+ readonly additionalProperties: false;
654
+ readonly properties: {
655
+ readonly environment: {
656
+ readonly default: "roblox-ts";
657
+ readonly description: "The React environment: 'roblox-ts' uses @rbxts/react, 'standard' uses react.";
658
+ readonly enum: readonly ["roblox-ts", "standard"];
659
+ readonly type: "string";
660
+ };
661
+ };
662
+ readonly type: "object";
663
+ }], "avoidResettingAllStateWhenAPropChanges", undefined>;
556
664
  "no-restricted-property-assignment": import("oxlint-plugin-utilities").CreateRule<readonly [{
557
665
  readonly additionalProperties: false;
558
666
  readonly properties: {
@@ -1109,7 +1217,7 @@ declare const smallRules: import("oxlint-plugin-utilities").Plugin<{
1109
1217
  };
1110
1218
  readonly inlineFunctionDeclarations: {
1111
1219
  readonly default: false;
1112
- readonly description: "Convert effect callbacks that reference a named function declaration into inline named function expressions (standard and sloptor modes only), keeping the effect body visible to dependency analysis.";
1220
+ readonly description: "Convert effect callbacks that reference a named function declaration into inline named function expressions (standard and sloptor modes only), keeping the effect body visible to dependency analysis. When the declaration is only referenced by the effect and is not exported or commented, the fix also removes the now-unused declaration.";
1113
1221
  readonly type: "boolean";
1114
1222
  };
1115
1223
  readonly sloptor: {