@sarj/eslint-plugin 15.24.0 → 15.25.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.
- package/dist/index.cjs +1255 -1150
- package/dist/index.d.cts +34 -22
- package/dist/index.d.ts +34 -22
- package/dist/index.js +1254 -1149
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -296,6 +296,10 @@ declare const RULES: {
|
|
|
296
296
|
readonly "no-type-member-comment-wall": DocumentedRule<readonly [Partial<WallOptions>?], "commentWall">;
|
|
297
297
|
readonly "no-unnecessary-use-client": DocumentedRule<readonly [], "unnecessaryUseClient">;
|
|
298
298
|
readonly "no-unsafe-mock-casting": DocumentedRule<[], "unsafeMockCast">;
|
|
299
|
+
readonly "no-unsafe-test-double-cast": DocumentedRule<[], "noUnsafeTestDoubleCast">;
|
|
300
|
+
readonly "no-first-party-module-mock": DocumentedRule<readonly [{
|
|
301
|
+
additionalModulePrefixes?: readonly string[];
|
|
302
|
+
}], "noFirstPartyModuleMock">;
|
|
299
303
|
readonly "no-zod-native-enum": DocumentedRule<readonly [], "nativeEnum" | "enumOfTsEnum">;
|
|
300
304
|
readonly "require-use-form-default-values": DocumentedRule<readonly [], "requireUseFormDefaultValues">;
|
|
301
305
|
readonly "require-use-server-in-actions-file": DocumentedRule<readonly [], "requireUseServerInActionsFile">;
|
|
@@ -364,7 +368,7 @@ declare const RULES: {
|
|
|
364
368
|
/** @deprecated All repositories use one policy; retained for import compatibility. */
|
|
365
369
|
declare const APPLICATION_ONLY_RULES: readonly [];
|
|
366
370
|
/** Rules staged as non-blocking warnings while corpus adoption evidence accumulates. */
|
|
367
|
-
declare const ADVISORY_RULES: readonly ["@sarj/excessive-commentary", "@sarj/no-bespoke-api-case-conversion", "@sarj/no-
|
|
371
|
+
declare const ADVISORY_RULES: readonly ["@sarj/excessive-commentary", "@sarj/no-bespoke-api-case-conversion", "@sarj/no-json-stringify-object-equality", "@sarj/no-restated-comment", "@sarj/no-restated-jsdoc", "@sarj/prefer-millisecond-control-duration-schema", "@sarj/prefer-module-level-refined-schema", "@sarj/prefer-multi-value-zod-literal", "@sarj/prefer-named-complex-return-type", "@sarj/prefer-node-crypto-hash", "@sarj/prefer-node-fs-promises", "@sarj/prefer-shared-zod-enum", "@sarj/prefer-switch-for-repeated-equality", "@sarj/prefer-whole-object-assertion", "@sarj/require-interface-for-exported-class", "@sarj/require-sql-access-class", "@sarj/sole-export-matches-filename"];
|
|
368
372
|
declare const RECOMMENDED_RULES: {
|
|
369
373
|
readonly "@sarj/no-conditional-empty-object-spread": "error";
|
|
370
374
|
readonly "@sarj/prefer-typed-reflection": "error";
|
|
@@ -373,16 +377,16 @@ declare const RECOMMENDED_RULES: {
|
|
|
373
377
|
readonly "@sarj/no-known-value-widening": "error";
|
|
374
378
|
readonly "@sarj/require-button-accessible-name": "error";
|
|
375
379
|
readonly "@sarj/require-svg-accessible-name": "error";
|
|
376
|
-
readonly "@sarj/prefer-logical-tailwind-utilities": readonly ["
|
|
380
|
+
readonly "@sarj/prefer-logical-tailwind-utilities": readonly ["error", {
|
|
377
381
|
readonly enabled: false;
|
|
378
382
|
}];
|
|
379
|
-
readonly "@sarj/no-unlocalized-toast": readonly ["
|
|
383
|
+
readonly "@sarj/no-unlocalized-toast": readonly ["error", {
|
|
380
384
|
readonly enabled: false;
|
|
381
385
|
}];
|
|
382
|
-
readonly "@sarj/no-unlocalized-jsx-attributes": readonly ["
|
|
386
|
+
readonly "@sarj/no-unlocalized-jsx-attributes": readonly ["error", {
|
|
383
387
|
readonly enabled: false;
|
|
384
388
|
}];
|
|
385
|
-
readonly "@sarj/no-unlocalized-jsx-text": readonly ["
|
|
389
|
+
readonly "@sarj/no-unlocalized-jsx-text": readonly ["error", {
|
|
386
390
|
readonly enabled: false;
|
|
387
391
|
}];
|
|
388
392
|
readonly "no-restricted-imports": readonly ["error", {
|
|
@@ -588,11 +592,11 @@ declare const RECOMMENDED_RULES: {
|
|
|
588
592
|
readonly "@sarj/no-insecure-random-id": "error";
|
|
589
593
|
readonly "@sarj/no-json-stringify-error": "error";
|
|
590
594
|
readonly "@sarj/no-impossible-zod-literal-bounds": "error";
|
|
591
|
-
readonly "@sarj/no-in-operator-on-built-in-collections": "
|
|
595
|
+
readonly "@sarj/no-in-operator-on-built-in-collections": "error";
|
|
592
596
|
readonly "@sarj/no-log-only-catch": "error";
|
|
593
597
|
readonly "@sarj/no-bare-return-from-test-catch": "error";
|
|
594
598
|
readonly "@sarj/no-bespoke-api-case-conversion": "warn";
|
|
595
|
-
readonly "@sarj/no-detached-global-fetch": "
|
|
599
|
+
readonly "@sarj/no-detached-global-fetch": "error";
|
|
596
600
|
readonly "@sarj/no-json-stringify-object-equality": "warn";
|
|
597
601
|
readonly "@sarj/no-dangerously-allow-svg": "error";
|
|
598
602
|
readonly "@sarj/no-duplicate-lifecycle-refresh-listeners": "error";
|
|
@@ -603,7 +607,7 @@ declare const RECOMMENDED_RULES: {
|
|
|
603
607
|
readonly "@sarj/no-positional-tuple-return": "error";
|
|
604
608
|
readonly "@sarj/no-production-browser-source-maps": "error";
|
|
605
609
|
readonly "@sarj/no-repeated-string-literal": "error";
|
|
606
|
-
readonly "@sarj/no-redundant-optional-array-default": "
|
|
610
|
+
readonly "@sarj/no-redundant-optional-array-default": "error";
|
|
607
611
|
readonly "@sarj/no-router-refresh-polling": "error";
|
|
608
612
|
readonly "@sarj/no-restated-comment": "warn";
|
|
609
613
|
readonly "@sarj/no-restated-jsdoc": "warn";
|
|
@@ -622,6 +626,8 @@ declare const RECOMMENDED_RULES: {
|
|
|
622
626
|
readonly "@sarj/no-type-member-comment-wall": "error";
|
|
623
627
|
readonly "@sarj/no-unnecessary-use-client": "error";
|
|
624
628
|
readonly "@sarj/no-unsafe-mock-casting": "error";
|
|
629
|
+
readonly "@sarj/no-unsafe-test-double-cast": "error";
|
|
630
|
+
readonly "@sarj/no-first-party-module-mock": "error";
|
|
625
631
|
readonly "@sarj/no-zod-native-enum": "error";
|
|
626
632
|
readonly "@sarj/test-loops-over-literal-cases": "error";
|
|
627
633
|
readonly "@sarj/prefer-constant-time-secret-compare": "error";
|
|
@@ -636,12 +642,12 @@ declare const RECOMMENDED_RULES: {
|
|
|
636
642
|
readonly "@sarj/prefer-multi-value-zod-literal": readonly ["warn", {
|
|
637
643
|
readonly zodMajorVersion: 4;
|
|
638
644
|
}];
|
|
639
|
-
readonly "@sarj/prefer-named-callback-domain": "
|
|
645
|
+
readonly "@sarj/prefer-named-callback-domain": "error";
|
|
640
646
|
readonly "@sarj/prefer-named-complex-return-type": "warn";
|
|
641
647
|
readonly "@sarj/prefer-node-crypto-hash": "warn";
|
|
642
648
|
readonly "@sarj/prefer-node-fs-promises": "warn";
|
|
643
649
|
readonly "@sarj/prefer-non-nullable-collection": "error";
|
|
644
|
-
readonly "@sarj/prefer-nullish-filter-predicate": "
|
|
650
|
+
readonly "@sarj/prefer-nullish-filter-predicate": "error";
|
|
645
651
|
readonly "@sarj/prefer-await-in-async-return": "error";
|
|
646
652
|
readonly "@sarj/prefer-schema-for-api-payload": "error";
|
|
647
653
|
readonly "@sarj/prefer-shared-zod-enum": "warn";
|
|
@@ -653,7 +659,7 @@ declare const RECOMMENDED_RULES: {
|
|
|
653
659
|
readonly "@sarj/prefer-whole-object-assertion": "warn";
|
|
654
660
|
readonly "@sarj/repeated-static-call-cases": "error";
|
|
655
661
|
readonly "@sarj/prefer-zod-infer": "error";
|
|
656
|
-
readonly "@sarj/prefer-zod-parse-output-type": "
|
|
662
|
+
readonly "@sarj/prefer-zod-parse-output-type": "error";
|
|
657
663
|
readonly "@sarj/require-assert-never": "error";
|
|
658
664
|
readonly "@sarj/require-fetch-timeout": "error";
|
|
659
665
|
readonly "@sarj/require-interface-for-exported-class": "warn";
|
|
@@ -678,16 +684,16 @@ declare const STRICT_RULES: {
|
|
|
678
684
|
readonly "@sarj/no-known-value-widening": "error";
|
|
679
685
|
readonly "@sarj/require-button-accessible-name": "error";
|
|
680
686
|
readonly "@sarj/require-svg-accessible-name": "error";
|
|
681
|
-
readonly "@sarj/prefer-logical-tailwind-utilities": readonly ["
|
|
687
|
+
readonly "@sarj/prefer-logical-tailwind-utilities": readonly ["error", {
|
|
682
688
|
readonly enabled: false;
|
|
683
689
|
}];
|
|
684
|
-
readonly "@sarj/no-unlocalized-toast": readonly ["
|
|
690
|
+
readonly "@sarj/no-unlocalized-toast": readonly ["error", {
|
|
685
691
|
readonly enabled: false;
|
|
686
692
|
}];
|
|
687
|
-
readonly "@sarj/no-unlocalized-jsx-attributes": readonly ["
|
|
693
|
+
readonly "@sarj/no-unlocalized-jsx-attributes": readonly ["error", {
|
|
688
694
|
readonly enabled: false;
|
|
689
695
|
}];
|
|
690
|
-
readonly "@sarj/no-unlocalized-jsx-text": readonly ["
|
|
696
|
+
readonly "@sarj/no-unlocalized-jsx-text": readonly ["error", {
|
|
691
697
|
readonly enabled: false;
|
|
692
698
|
}];
|
|
693
699
|
readonly "no-restricted-imports": readonly ["error", {
|
|
@@ -894,11 +900,11 @@ declare const STRICT_RULES: {
|
|
|
894
900
|
readonly "@sarj/no-insecure-random-id": "error";
|
|
895
901
|
readonly "@sarj/no-json-stringify-error": "error";
|
|
896
902
|
readonly "@sarj/no-impossible-zod-literal-bounds": "error";
|
|
897
|
-
readonly "@sarj/no-in-operator-on-built-in-collections": "
|
|
903
|
+
readonly "@sarj/no-in-operator-on-built-in-collections": "error";
|
|
898
904
|
readonly "@sarj/no-log-only-catch": "error";
|
|
899
905
|
readonly "@sarj/no-bare-return-from-test-catch": "error";
|
|
900
906
|
readonly "@sarj/no-bespoke-api-case-conversion": "warn";
|
|
901
|
-
readonly "@sarj/no-detached-global-fetch": "
|
|
907
|
+
readonly "@sarj/no-detached-global-fetch": "error";
|
|
902
908
|
readonly "@sarj/no-json-stringify-object-equality": "warn";
|
|
903
909
|
readonly "@sarj/no-dangerously-allow-svg": "error";
|
|
904
910
|
readonly "@sarj/no-duplicate-lifecycle-refresh-listeners": "error";
|
|
@@ -911,7 +917,7 @@ declare const STRICT_RULES: {
|
|
|
911
917
|
readonly "@sarj/no-raw-env": "error";
|
|
912
918
|
readonly "@sarj/no-raw-fetch-outside-clients": "error";
|
|
913
919
|
readonly "@sarj/no-repeated-string-literal": "error";
|
|
914
|
-
readonly "@sarj/no-redundant-optional-array-default": "
|
|
920
|
+
readonly "@sarj/no-redundant-optional-array-default": "error";
|
|
915
921
|
readonly "@sarj/no-router-refresh-polling": "error";
|
|
916
922
|
readonly "@sarj/no-restated-comment": "warn";
|
|
917
923
|
readonly "@sarj/no-restated-jsdoc": "warn";
|
|
@@ -931,6 +937,8 @@ declare const STRICT_RULES: {
|
|
|
931
937
|
readonly "@sarj/no-type-member-comment-wall": "error";
|
|
932
938
|
readonly "@sarj/no-unnecessary-use-client": "error";
|
|
933
939
|
readonly "@sarj/no-unsafe-mock-casting": "error";
|
|
940
|
+
readonly "@sarj/no-unsafe-test-double-cast": "error";
|
|
941
|
+
readonly "@sarj/no-first-party-module-mock": "error";
|
|
934
942
|
readonly "@sarj/no-zod-native-enum": "error";
|
|
935
943
|
readonly "@sarj/test-loops-over-literal-cases": "error";
|
|
936
944
|
readonly "@sarj/prefer-constant-time-secret-compare": "error";
|
|
@@ -945,12 +953,12 @@ declare const STRICT_RULES: {
|
|
|
945
953
|
readonly "@sarj/prefer-multi-value-zod-literal": readonly ["warn", {
|
|
946
954
|
readonly zodMajorVersion: 4;
|
|
947
955
|
}];
|
|
948
|
-
readonly "@sarj/prefer-named-callback-domain": "
|
|
956
|
+
readonly "@sarj/prefer-named-callback-domain": "error";
|
|
949
957
|
readonly "@sarj/prefer-named-complex-return-type": "warn";
|
|
950
958
|
readonly "@sarj/prefer-node-crypto-hash": "warn";
|
|
951
959
|
readonly "@sarj/prefer-node-fs-promises": "warn";
|
|
952
960
|
readonly "@sarj/prefer-non-nullable-collection": "error";
|
|
953
|
-
readonly "@sarj/prefer-nullish-filter-predicate": "
|
|
961
|
+
readonly "@sarj/prefer-nullish-filter-predicate": "error";
|
|
954
962
|
readonly "@sarj/prefer-await-in-async-return": "error";
|
|
955
963
|
readonly "@sarj/prefer-schema-for-api-payload": "error";
|
|
956
964
|
readonly "@sarj/prefer-shared-zod-enum": "warn";
|
|
@@ -962,7 +970,7 @@ declare const STRICT_RULES: {
|
|
|
962
970
|
readonly "@sarj/prefer-whole-object-assertion": "warn";
|
|
963
971
|
readonly "@sarj/repeated-static-call-cases": "error";
|
|
964
972
|
readonly "@sarj/prefer-zod-infer": "error";
|
|
965
|
-
readonly "@sarj/prefer-zod-parse-output-type": "
|
|
973
|
+
readonly "@sarj/prefer-zod-parse-output-type": "error";
|
|
966
974
|
readonly "@sarj/require-assert-never": "error";
|
|
967
975
|
readonly "@sarj/require-fetch-timeout": "error";
|
|
968
976
|
readonly "@sarj/require-interface-for-exported-class": "warn";
|
|
@@ -987,7 +995,7 @@ type FlatPreset = {
|
|
|
987
995
|
declare const PLUGIN: {
|
|
988
996
|
readonly meta: {
|
|
989
997
|
readonly name: "@sarj/eslint-plugin";
|
|
990
|
-
readonly version: "15.
|
|
998
|
+
readonly version: "15.25.1";
|
|
991
999
|
};
|
|
992
1000
|
readonly rules: {
|
|
993
1001
|
readonly "no-conditional-empty-object-spread": DocumentedRule<[], "avoid">;
|
|
@@ -1075,6 +1083,10 @@ declare const PLUGIN: {
|
|
|
1075
1083
|
readonly "no-type-member-comment-wall": DocumentedRule<readonly [Partial<WallOptions>?], "commentWall">;
|
|
1076
1084
|
readonly "no-unnecessary-use-client": DocumentedRule<readonly [], "unnecessaryUseClient">;
|
|
1077
1085
|
readonly "no-unsafe-mock-casting": DocumentedRule<[], "unsafeMockCast">;
|
|
1086
|
+
readonly "no-unsafe-test-double-cast": DocumentedRule<[], "noUnsafeTestDoubleCast">;
|
|
1087
|
+
readonly "no-first-party-module-mock": DocumentedRule<readonly [{
|
|
1088
|
+
additionalModulePrefixes?: readonly string[];
|
|
1089
|
+
}], "noFirstPartyModuleMock">;
|
|
1078
1090
|
readonly "no-zod-native-enum": DocumentedRule<readonly [], "nativeEnum" | "enumOfTsEnum">;
|
|
1079
1091
|
readonly "require-use-form-default-values": DocumentedRule<readonly [], "requireUseFormDefaultValues">;
|
|
1080
1092
|
readonly "require-use-server-in-actions-file": DocumentedRule<readonly [], "requireUseServerInActionsFile">;
|
package/dist/index.d.ts
CHANGED
|
@@ -296,6 +296,10 @@ declare const RULES: {
|
|
|
296
296
|
readonly "no-type-member-comment-wall": DocumentedRule<readonly [Partial<WallOptions>?], "commentWall">;
|
|
297
297
|
readonly "no-unnecessary-use-client": DocumentedRule<readonly [], "unnecessaryUseClient">;
|
|
298
298
|
readonly "no-unsafe-mock-casting": DocumentedRule<[], "unsafeMockCast">;
|
|
299
|
+
readonly "no-unsafe-test-double-cast": DocumentedRule<[], "noUnsafeTestDoubleCast">;
|
|
300
|
+
readonly "no-first-party-module-mock": DocumentedRule<readonly [{
|
|
301
|
+
additionalModulePrefixes?: readonly string[];
|
|
302
|
+
}], "noFirstPartyModuleMock">;
|
|
299
303
|
readonly "no-zod-native-enum": DocumentedRule<readonly [], "nativeEnum" | "enumOfTsEnum">;
|
|
300
304
|
readonly "require-use-form-default-values": DocumentedRule<readonly [], "requireUseFormDefaultValues">;
|
|
301
305
|
readonly "require-use-server-in-actions-file": DocumentedRule<readonly [], "requireUseServerInActionsFile">;
|
|
@@ -364,7 +368,7 @@ declare const RULES: {
|
|
|
364
368
|
/** @deprecated All repositories use one policy; retained for import compatibility. */
|
|
365
369
|
declare const APPLICATION_ONLY_RULES: readonly [];
|
|
366
370
|
/** Rules staged as non-blocking warnings while corpus adoption evidence accumulates. */
|
|
367
|
-
declare const ADVISORY_RULES: readonly ["@sarj/excessive-commentary", "@sarj/no-bespoke-api-case-conversion", "@sarj/no-
|
|
371
|
+
declare const ADVISORY_RULES: readonly ["@sarj/excessive-commentary", "@sarj/no-bespoke-api-case-conversion", "@sarj/no-json-stringify-object-equality", "@sarj/no-restated-comment", "@sarj/no-restated-jsdoc", "@sarj/prefer-millisecond-control-duration-schema", "@sarj/prefer-module-level-refined-schema", "@sarj/prefer-multi-value-zod-literal", "@sarj/prefer-named-complex-return-type", "@sarj/prefer-node-crypto-hash", "@sarj/prefer-node-fs-promises", "@sarj/prefer-shared-zod-enum", "@sarj/prefer-switch-for-repeated-equality", "@sarj/prefer-whole-object-assertion", "@sarj/require-interface-for-exported-class", "@sarj/require-sql-access-class", "@sarj/sole-export-matches-filename"];
|
|
368
372
|
declare const RECOMMENDED_RULES: {
|
|
369
373
|
readonly "@sarj/no-conditional-empty-object-spread": "error";
|
|
370
374
|
readonly "@sarj/prefer-typed-reflection": "error";
|
|
@@ -373,16 +377,16 @@ declare const RECOMMENDED_RULES: {
|
|
|
373
377
|
readonly "@sarj/no-known-value-widening": "error";
|
|
374
378
|
readonly "@sarj/require-button-accessible-name": "error";
|
|
375
379
|
readonly "@sarj/require-svg-accessible-name": "error";
|
|
376
|
-
readonly "@sarj/prefer-logical-tailwind-utilities": readonly ["
|
|
380
|
+
readonly "@sarj/prefer-logical-tailwind-utilities": readonly ["error", {
|
|
377
381
|
readonly enabled: false;
|
|
378
382
|
}];
|
|
379
|
-
readonly "@sarj/no-unlocalized-toast": readonly ["
|
|
383
|
+
readonly "@sarj/no-unlocalized-toast": readonly ["error", {
|
|
380
384
|
readonly enabled: false;
|
|
381
385
|
}];
|
|
382
|
-
readonly "@sarj/no-unlocalized-jsx-attributes": readonly ["
|
|
386
|
+
readonly "@sarj/no-unlocalized-jsx-attributes": readonly ["error", {
|
|
383
387
|
readonly enabled: false;
|
|
384
388
|
}];
|
|
385
|
-
readonly "@sarj/no-unlocalized-jsx-text": readonly ["
|
|
389
|
+
readonly "@sarj/no-unlocalized-jsx-text": readonly ["error", {
|
|
386
390
|
readonly enabled: false;
|
|
387
391
|
}];
|
|
388
392
|
readonly "no-restricted-imports": readonly ["error", {
|
|
@@ -588,11 +592,11 @@ declare const RECOMMENDED_RULES: {
|
|
|
588
592
|
readonly "@sarj/no-insecure-random-id": "error";
|
|
589
593
|
readonly "@sarj/no-json-stringify-error": "error";
|
|
590
594
|
readonly "@sarj/no-impossible-zod-literal-bounds": "error";
|
|
591
|
-
readonly "@sarj/no-in-operator-on-built-in-collections": "
|
|
595
|
+
readonly "@sarj/no-in-operator-on-built-in-collections": "error";
|
|
592
596
|
readonly "@sarj/no-log-only-catch": "error";
|
|
593
597
|
readonly "@sarj/no-bare-return-from-test-catch": "error";
|
|
594
598
|
readonly "@sarj/no-bespoke-api-case-conversion": "warn";
|
|
595
|
-
readonly "@sarj/no-detached-global-fetch": "
|
|
599
|
+
readonly "@sarj/no-detached-global-fetch": "error";
|
|
596
600
|
readonly "@sarj/no-json-stringify-object-equality": "warn";
|
|
597
601
|
readonly "@sarj/no-dangerously-allow-svg": "error";
|
|
598
602
|
readonly "@sarj/no-duplicate-lifecycle-refresh-listeners": "error";
|
|
@@ -603,7 +607,7 @@ declare const RECOMMENDED_RULES: {
|
|
|
603
607
|
readonly "@sarj/no-positional-tuple-return": "error";
|
|
604
608
|
readonly "@sarj/no-production-browser-source-maps": "error";
|
|
605
609
|
readonly "@sarj/no-repeated-string-literal": "error";
|
|
606
|
-
readonly "@sarj/no-redundant-optional-array-default": "
|
|
610
|
+
readonly "@sarj/no-redundant-optional-array-default": "error";
|
|
607
611
|
readonly "@sarj/no-router-refresh-polling": "error";
|
|
608
612
|
readonly "@sarj/no-restated-comment": "warn";
|
|
609
613
|
readonly "@sarj/no-restated-jsdoc": "warn";
|
|
@@ -622,6 +626,8 @@ declare const RECOMMENDED_RULES: {
|
|
|
622
626
|
readonly "@sarj/no-type-member-comment-wall": "error";
|
|
623
627
|
readonly "@sarj/no-unnecessary-use-client": "error";
|
|
624
628
|
readonly "@sarj/no-unsafe-mock-casting": "error";
|
|
629
|
+
readonly "@sarj/no-unsafe-test-double-cast": "error";
|
|
630
|
+
readonly "@sarj/no-first-party-module-mock": "error";
|
|
625
631
|
readonly "@sarj/no-zod-native-enum": "error";
|
|
626
632
|
readonly "@sarj/test-loops-over-literal-cases": "error";
|
|
627
633
|
readonly "@sarj/prefer-constant-time-secret-compare": "error";
|
|
@@ -636,12 +642,12 @@ declare const RECOMMENDED_RULES: {
|
|
|
636
642
|
readonly "@sarj/prefer-multi-value-zod-literal": readonly ["warn", {
|
|
637
643
|
readonly zodMajorVersion: 4;
|
|
638
644
|
}];
|
|
639
|
-
readonly "@sarj/prefer-named-callback-domain": "
|
|
645
|
+
readonly "@sarj/prefer-named-callback-domain": "error";
|
|
640
646
|
readonly "@sarj/prefer-named-complex-return-type": "warn";
|
|
641
647
|
readonly "@sarj/prefer-node-crypto-hash": "warn";
|
|
642
648
|
readonly "@sarj/prefer-node-fs-promises": "warn";
|
|
643
649
|
readonly "@sarj/prefer-non-nullable-collection": "error";
|
|
644
|
-
readonly "@sarj/prefer-nullish-filter-predicate": "
|
|
650
|
+
readonly "@sarj/prefer-nullish-filter-predicate": "error";
|
|
645
651
|
readonly "@sarj/prefer-await-in-async-return": "error";
|
|
646
652
|
readonly "@sarj/prefer-schema-for-api-payload": "error";
|
|
647
653
|
readonly "@sarj/prefer-shared-zod-enum": "warn";
|
|
@@ -653,7 +659,7 @@ declare const RECOMMENDED_RULES: {
|
|
|
653
659
|
readonly "@sarj/prefer-whole-object-assertion": "warn";
|
|
654
660
|
readonly "@sarj/repeated-static-call-cases": "error";
|
|
655
661
|
readonly "@sarj/prefer-zod-infer": "error";
|
|
656
|
-
readonly "@sarj/prefer-zod-parse-output-type": "
|
|
662
|
+
readonly "@sarj/prefer-zod-parse-output-type": "error";
|
|
657
663
|
readonly "@sarj/require-assert-never": "error";
|
|
658
664
|
readonly "@sarj/require-fetch-timeout": "error";
|
|
659
665
|
readonly "@sarj/require-interface-for-exported-class": "warn";
|
|
@@ -678,16 +684,16 @@ declare const STRICT_RULES: {
|
|
|
678
684
|
readonly "@sarj/no-known-value-widening": "error";
|
|
679
685
|
readonly "@sarj/require-button-accessible-name": "error";
|
|
680
686
|
readonly "@sarj/require-svg-accessible-name": "error";
|
|
681
|
-
readonly "@sarj/prefer-logical-tailwind-utilities": readonly ["
|
|
687
|
+
readonly "@sarj/prefer-logical-tailwind-utilities": readonly ["error", {
|
|
682
688
|
readonly enabled: false;
|
|
683
689
|
}];
|
|
684
|
-
readonly "@sarj/no-unlocalized-toast": readonly ["
|
|
690
|
+
readonly "@sarj/no-unlocalized-toast": readonly ["error", {
|
|
685
691
|
readonly enabled: false;
|
|
686
692
|
}];
|
|
687
|
-
readonly "@sarj/no-unlocalized-jsx-attributes": readonly ["
|
|
693
|
+
readonly "@sarj/no-unlocalized-jsx-attributes": readonly ["error", {
|
|
688
694
|
readonly enabled: false;
|
|
689
695
|
}];
|
|
690
|
-
readonly "@sarj/no-unlocalized-jsx-text": readonly ["
|
|
696
|
+
readonly "@sarj/no-unlocalized-jsx-text": readonly ["error", {
|
|
691
697
|
readonly enabled: false;
|
|
692
698
|
}];
|
|
693
699
|
readonly "no-restricted-imports": readonly ["error", {
|
|
@@ -894,11 +900,11 @@ declare const STRICT_RULES: {
|
|
|
894
900
|
readonly "@sarj/no-insecure-random-id": "error";
|
|
895
901
|
readonly "@sarj/no-json-stringify-error": "error";
|
|
896
902
|
readonly "@sarj/no-impossible-zod-literal-bounds": "error";
|
|
897
|
-
readonly "@sarj/no-in-operator-on-built-in-collections": "
|
|
903
|
+
readonly "@sarj/no-in-operator-on-built-in-collections": "error";
|
|
898
904
|
readonly "@sarj/no-log-only-catch": "error";
|
|
899
905
|
readonly "@sarj/no-bare-return-from-test-catch": "error";
|
|
900
906
|
readonly "@sarj/no-bespoke-api-case-conversion": "warn";
|
|
901
|
-
readonly "@sarj/no-detached-global-fetch": "
|
|
907
|
+
readonly "@sarj/no-detached-global-fetch": "error";
|
|
902
908
|
readonly "@sarj/no-json-stringify-object-equality": "warn";
|
|
903
909
|
readonly "@sarj/no-dangerously-allow-svg": "error";
|
|
904
910
|
readonly "@sarj/no-duplicate-lifecycle-refresh-listeners": "error";
|
|
@@ -911,7 +917,7 @@ declare const STRICT_RULES: {
|
|
|
911
917
|
readonly "@sarj/no-raw-env": "error";
|
|
912
918
|
readonly "@sarj/no-raw-fetch-outside-clients": "error";
|
|
913
919
|
readonly "@sarj/no-repeated-string-literal": "error";
|
|
914
|
-
readonly "@sarj/no-redundant-optional-array-default": "
|
|
920
|
+
readonly "@sarj/no-redundant-optional-array-default": "error";
|
|
915
921
|
readonly "@sarj/no-router-refresh-polling": "error";
|
|
916
922
|
readonly "@sarj/no-restated-comment": "warn";
|
|
917
923
|
readonly "@sarj/no-restated-jsdoc": "warn";
|
|
@@ -931,6 +937,8 @@ declare const STRICT_RULES: {
|
|
|
931
937
|
readonly "@sarj/no-type-member-comment-wall": "error";
|
|
932
938
|
readonly "@sarj/no-unnecessary-use-client": "error";
|
|
933
939
|
readonly "@sarj/no-unsafe-mock-casting": "error";
|
|
940
|
+
readonly "@sarj/no-unsafe-test-double-cast": "error";
|
|
941
|
+
readonly "@sarj/no-first-party-module-mock": "error";
|
|
934
942
|
readonly "@sarj/no-zod-native-enum": "error";
|
|
935
943
|
readonly "@sarj/test-loops-over-literal-cases": "error";
|
|
936
944
|
readonly "@sarj/prefer-constant-time-secret-compare": "error";
|
|
@@ -945,12 +953,12 @@ declare const STRICT_RULES: {
|
|
|
945
953
|
readonly "@sarj/prefer-multi-value-zod-literal": readonly ["warn", {
|
|
946
954
|
readonly zodMajorVersion: 4;
|
|
947
955
|
}];
|
|
948
|
-
readonly "@sarj/prefer-named-callback-domain": "
|
|
956
|
+
readonly "@sarj/prefer-named-callback-domain": "error";
|
|
949
957
|
readonly "@sarj/prefer-named-complex-return-type": "warn";
|
|
950
958
|
readonly "@sarj/prefer-node-crypto-hash": "warn";
|
|
951
959
|
readonly "@sarj/prefer-node-fs-promises": "warn";
|
|
952
960
|
readonly "@sarj/prefer-non-nullable-collection": "error";
|
|
953
|
-
readonly "@sarj/prefer-nullish-filter-predicate": "
|
|
961
|
+
readonly "@sarj/prefer-nullish-filter-predicate": "error";
|
|
954
962
|
readonly "@sarj/prefer-await-in-async-return": "error";
|
|
955
963
|
readonly "@sarj/prefer-schema-for-api-payload": "error";
|
|
956
964
|
readonly "@sarj/prefer-shared-zod-enum": "warn";
|
|
@@ -962,7 +970,7 @@ declare const STRICT_RULES: {
|
|
|
962
970
|
readonly "@sarj/prefer-whole-object-assertion": "warn";
|
|
963
971
|
readonly "@sarj/repeated-static-call-cases": "error";
|
|
964
972
|
readonly "@sarj/prefer-zod-infer": "error";
|
|
965
|
-
readonly "@sarj/prefer-zod-parse-output-type": "
|
|
973
|
+
readonly "@sarj/prefer-zod-parse-output-type": "error";
|
|
966
974
|
readonly "@sarj/require-assert-never": "error";
|
|
967
975
|
readonly "@sarj/require-fetch-timeout": "error";
|
|
968
976
|
readonly "@sarj/require-interface-for-exported-class": "warn";
|
|
@@ -987,7 +995,7 @@ type FlatPreset = {
|
|
|
987
995
|
declare const PLUGIN: {
|
|
988
996
|
readonly meta: {
|
|
989
997
|
readonly name: "@sarj/eslint-plugin";
|
|
990
|
-
readonly version: "15.
|
|
998
|
+
readonly version: "15.25.1";
|
|
991
999
|
};
|
|
992
1000
|
readonly rules: {
|
|
993
1001
|
readonly "no-conditional-empty-object-spread": DocumentedRule<[], "avoid">;
|
|
@@ -1075,6 +1083,10 @@ declare const PLUGIN: {
|
|
|
1075
1083
|
readonly "no-type-member-comment-wall": DocumentedRule<readonly [Partial<WallOptions>?], "commentWall">;
|
|
1076
1084
|
readonly "no-unnecessary-use-client": DocumentedRule<readonly [], "unnecessaryUseClient">;
|
|
1077
1085
|
readonly "no-unsafe-mock-casting": DocumentedRule<[], "unsafeMockCast">;
|
|
1086
|
+
readonly "no-unsafe-test-double-cast": DocumentedRule<[], "noUnsafeTestDoubleCast">;
|
|
1087
|
+
readonly "no-first-party-module-mock": DocumentedRule<readonly [{
|
|
1088
|
+
additionalModulePrefixes?: readonly string[];
|
|
1089
|
+
}], "noFirstPartyModuleMock">;
|
|
1078
1090
|
readonly "no-zod-native-enum": DocumentedRule<readonly [], "nativeEnum" | "enumOfTsEnum">;
|
|
1079
1091
|
readonly "require-use-form-default-values": DocumentedRule<readonly [], "requireUseFormDefaultValues">;
|
|
1080
1092
|
readonly "require-use-server-in-actions-file": DocumentedRule<readonly [], "requireUseServerInActionsFile">;
|