@sarj/eslint-plugin 4.0.0 → 4.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.cts CHANGED
@@ -280,6 +280,12 @@ declare const rules: {
280
280
  "prefer-zod-enum": _typescript_eslint_utils_ts_eslint.RuleModule<"preferEnum", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
281
281
  name: string;
282
282
  };
283
+ "prefer-zod-infer": _typescript_eslint_utils_ts_eslint.RuleModule<"handWrittenTwin", readonly [{
284
+ ignoreTypeNames?: readonly string[];
285
+ requireIdenticalShape?: boolean;
286
+ }?], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
287
+ name: string;
288
+ };
283
289
  "no-silent-promise-catch": _typescript_eslint_utils_ts_eslint.RuleModule<"silentCatch", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
284
290
  name: string;
285
291
  };
@@ -303,6 +309,12 @@ declare const rules: {
303
309
  "no-sleep-in-test-body": _typescript_eslint_utils_ts_eslint.RuleModule<"noSleepInTestBody", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
304
310
  name: string;
305
311
  };
312
+ "no-hand-rolled-sleep": _typescript_eslint_utils_ts_eslint.RuleModule<"handRolledSleep" | "handRolledTimeoutRace", readonly [{
313
+ allowIn?: readonly string[];
314
+ checkClientModules?: boolean;
315
+ }?], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
316
+ name: string;
317
+ };
306
318
  "no-conditional-in-test": _typescript_eslint_utils_ts_eslint.RuleModule<"noConditionalInTest", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
307
319
  name: string;
308
320
  };
@@ -449,6 +461,12 @@ declare const plugin: {
449
461
  "prefer-zod-enum": _typescript_eslint_utils_ts_eslint.RuleModule<"preferEnum", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
450
462
  name: string;
451
463
  };
464
+ "prefer-zod-infer": _typescript_eslint_utils_ts_eslint.RuleModule<"handWrittenTwin", readonly [{
465
+ ignoreTypeNames?: readonly string[];
466
+ requireIdenticalShape?: boolean;
467
+ }?], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
468
+ name: string;
469
+ };
452
470
  "no-silent-promise-catch": _typescript_eslint_utils_ts_eslint.RuleModule<"silentCatch", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
453
471
  name: string;
454
472
  };
@@ -472,6 +490,12 @@ declare const plugin: {
472
490
  "no-sleep-in-test-body": _typescript_eslint_utils_ts_eslint.RuleModule<"noSleepInTestBody", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
473
491
  name: string;
474
492
  };
493
+ "no-hand-rolled-sleep": _typescript_eslint_utils_ts_eslint.RuleModule<"handRolledSleep" | "handRolledTimeoutRace", readonly [{
494
+ allowIn?: readonly string[];
495
+ checkClientModules?: boolean;
496
+ }?], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
497
+ name: string;
498
+ };
475
499
  "no-conditional-in-test": _typescript_eslint_utils_ts_eslint.RuleModule<"noConditionalInTest", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
476
500
  name: string;
477
501
  };
@@ -558,12 +582,14 @@ declare const plugin: {
558
582
  "@sarj/no-unsafe-mock-casting": string;
559
583
  "@sarj/prefer-string-literal-union": string;
560
584
  "@sarj/prefer-zod-enum": string;
585
+ "@sarj/prefer-zod-infer": string;
561
586
  "@sarj/require-fetch-timeout": string;
562
587
  "@sarj/no-silent-promise-catch": string;
563
588
  "@sarj/prefer-constant-time-secret-compare": string;
564
589
  "@sarj/store-insert-requires-on-conflict": string;
565
590
  "@sarj/no-offset-pagination": string;
566
591
  "@sarj/no-select-star": string;
592
+ "@sarj/no-hand-rolled-sleep": string;
567
593
  "@sarj/no-sleep-in-test-body": string;
568
594
  "@sarj/no-conditional-in-test": string;
569
595
  "@sarj/no-repeated-string-literal": string;
@@ -612,12 +638,14 @@ declare const plugin: {
612
638
  "@sarj/no-unsafe-mock-casting": string;
613
639
  "@sarj/prefer-string-literal-union": string;
614
640
  "@sarj/prefer-zod-enum": string;
641
+ "@sarj/prefer-zod-infer": string;
615
642
  "@sarj/require-fetch-timeout": string;
616
643
  "@sarj/no-silent-promise-catch": string;
617
644
  "@sarj/prefer-constant-time-secret-compare": string;
618
645
  "@sarj/store-insert-requires-on-conflict": string;
619
646
  "@sarj/no-offset-pagination": string;
620
647
  "@sarj/no-select-star": string;
648
+ "@sarj/no-hand-rolled-sleep": string;
621
649
  "@sarj/no-sleep-in-test-body": string;
622
650
  "@sarj/no-conditional-in-test": string;
623
651
  "@sarj/no-repeated-string-literal": string;
package/dist/index.d.ts CHANGED
@@ -280,6 +280,12 @@ declare const rules: {
280
280
  "prefer-zod-enum": _typescript_eslint_utils_ts_eslint.RuleModule<"preferEnum", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
281
281
  name: string;
282
282
  };
283
+ "prefer-zod-infer": _typescript_eslint_utils_ts_eslint.RuleModule<"handWrittenTwin", readonly [{
284
+ ignoreTypeNames?: readonly string[];
285
+ requireIdenticalShape?: boolean;
286
+ }?], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
287
+ name: string;
288
+ };
283
289
  "no-silent-promise-catch": _typescript_eslint_utils_ts_eslint.RuleModule<"silentCatch", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
284
290
  name: string;
285
291
  };
@@ -303,6 +309,12 @@ declare const rules: {
303
309
  "no-sleep-in-test-body": _typescript_eslint_utils_ts_eslint.RuleModule<"noSleepInTestBody", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
304
310
  name: string;
305
311
  };
312
+ "no-hand-rolled-sleep": _typescript_eslint_utils_ts_eslint.RuleModule<"handRolledSleep" | "handRolledTimeoutRace", readonly [{
313
+ allowIn?: readonly string[];
314
+ checkClientModules?: boolean;
315
+ }?], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
316
+ name: string;
317
+ };
306
318
  "no-conditional-in-test": _typescript_eslint_utils_ts_eslint.RuleModule<"noConditionalInTest", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
307
319
  name: string;
308
320
  };
@@ -449,6 +461,12 @@ declare const plugin: {
449
461
  "prefer-zod-enum": _typescript_eslint_utils_ts_eslint.RuleModule<"preferEnum", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
450
462
  name: string;
451
463
  };
464
+ "prefer-zod-infer": _typescript_eslint_utils_ts_eslint.RuleModule<"handWrittenTwin", readonly [{
465
+ ignoreTypeNames?: readonly string[];
466
+ requireIdenticalShape?: boolean;
467
+ }?], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
468
+ name: string;
469
+ };
452
470
  "no-silent-promise-catch": _typescript_eslint_utils_ts_eslint.RuleModule<"silentCatch", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
453
471
  name: string;
454
472
  };
@@ -472,6 +490,12 @@ declare const plugin: {
472
490
  "no-sleep-in-test-body": _typescript_eslint_utils_ts_eslint.RuleModule<"noSleepInTestBody", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
473
491
  name: string;
474
492
  };
493
+ "no-hand-rolled-sleep": _typescript_eslint_utils_ts_eslint.RuleModule<"handRolledSleep" | "handRolledTimeoutRace", readonly [{
494
+ allowIn?: readonly string[];
495
+ checkClientModules?: boolean;
496
+ }?], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
497
+ name: string;
498
+ };
475
499
  "no-conditional-in-test": _typescript_eslint_utils_ts_eslint.RuleModule<"noConditionalInTest", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
476
500
  name: string;
477
501
  };
@@ -558,12 +582,14 @@ declare const plugin: {
558
582
  "@sarj/no-unsafe-mock-casting": string;
559
583
  "@sarj/prefer-string-literal-union": string;
560
584
  "@sarj/prefer-zod-enum": string;
585
+ "@sarj/prefer-zod-infer": string;
561
586
  "@sarj/require-fetch-timeout": string;
562
587
  "@sarj/no-silent-promise-catch": string;
563
588
  "@sarj/prefer-constant-time-secret-compare": string;
564
589
  "@sarj/store-insert-requires-on-conflict": string;
565
590
  "@sarj/no-offset-pagination": string;
566
591
  "@sarj/no-select-star": string;
592
+ "@sarj/no-hand-rolled-sleep": string;
567
593
  "@sarj/no-sleep-in-test-body": string;
568
594
  "@sarj/no-conditional-in-test": string;
569
595
  "@sarj/no-repeated-string-literal": string;
@@ -612,12 +638,14 @@ declare const plugin: {
612
638
  "@sarj/no-unsafe-mock-casting": string;
613
639
  "@sarj/prefer-string-literal-union": string;
614
640
  "@sarj/prefer-zod-enum": string;
641
+ "@sarj/prefer-zod-infer": string;
615
642
  "@sarj/require-fetch-timeout": string;
616
643
  "@sarj/no-silent-promise-catch": string;
617
644
  "@sarj/prefer-constant-time-secret-compare": string;
618
645
  "@sarj/store-insert-requires-on-conflict": string;
619
646
  "@sarj/no-offset-pagination": string;
620
647
  "@sarj/no-select-star": string;
648
+ "@sarj/no-hand-rolled-sleep": string;
621
649
  "@sarj/no-sleep-in-test-body": string;
622
650
  "@sarj/no-conditional-in-test": string;
623
651
  "@sarj/no-repeated-string-literal": string;