@sarj/eslint-plugin 15.25.0 → 15.26.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.cjs +2062 -1993
- package/dist/index.d.cts +30 -26
- package/dist/index.d.ts +30 -26
- package/dist/index.js +1949 -1880
- package/package.json +19 -17
package/dist/index.d.cts
CHANGED
|
@@ -220,6 +220,7 @@ declare const RULES: {
|
|
|
220
220
|
readonly components?: readonly ComponentImport[];
|
|
221
221
|
readonly iconModules?: readonly string[];
|
|
222
222
|
}?], "missingName">;
|
|
223
|
+
readonly "require-camelcase-properties": DocumentedRule<readonly [], "requireCamelcaseProperty">;
|
|
223
224
|
readonly "require-svg-accessible-name": DocumentedRule<readonly [], "missingName">;
|
|
224
225
|
readonly "prefer-logical-tailwind-utilities": DocumentedRule<readonly [{
|
|
225
226
|
readonly enabled?: boolean;
|
|
@@ -368,7 +369,7 @@ declare const RULES: {
|
|
|
368
369
|
/** @deprecated All repositories use one policy; retained for import compatibility. */
|
|
369
370
|
declare const APPLICATION_ONLY_RULES: readonly [];
|
|
370
371
|
/** Rules staged as non-blocking warnings while corpus adoption evidence accumulates. */
|
|
371
|
-
declare const ADVISORY_RULES: readonly ["@sarj/excessive-commentary", "@sarj/no-bespoke-api-case-conversion", "@sarj/no-
|
|
372
|
+
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-camelcase-properties", "@sarj/require-interface-for-exported-class", "@sarj/require-sql-access-class", "@sarj/sole-export-matches-filename"];
|
|
372
373
|
declare const RECOMMENDED_RULES: {
|
|
373
374
|
readonly "@sarj/no-conditional-empty-object-spread": "error";
|
|
374
375
|
readonly "@sarj/prefer-typed-reflection": "error";
|
|
@@ -376,17 +377,18 @@ declare const RECOMMENDED_RULES: {
|
|
|
376
377
|
readonly "@sarj/no-reduce-accumulator-copy": "error";
|
|
377
378
|
readonly "@sarj/no-known-value-widening": "error";
|
|
378
379
|
readonly "@sarj/require-button-accessible-name": "error";
|
|
380
|
+
readonly "@sarj/require-camelcase-properties": "warn";
|
|
379
381
|
readonly "@sarj/require-svg-accessible-name": "error";
|
|
380
|
-
readonly "@sarj/prefer-logical-tailwind-utilities": readonly ["
|
|
382
|
+
readonly "@sarj/prefer-logical-tailwind-utilities": readonly ["error", {
|
|
381
383
|
readonly enabled: false;
|
|
382
384
|
}];
|
|
383
|
-
readonly "@sarj/no-unlocalized-toast": readonly ["
|
|
385
|
+
readonly "@sarj/no-unlocalized-toast": readonly ["error", {
|
|
384
386
|
readonly enabled: false;
|
|
385
387
|
}];
|
|
386
|
-
readonly "@sarj/no-unlocalized-jsx-attributes": readonly ["
|
|
388
|
+
readonly "@sarj/no-unlocalized-jsx-attributes": readonly ["error", {
|
|
387
389
|
readonly enabled: false;
|
|
388
390
|
}];
|
|
389
|
-
readonly "@sarj/no-unlocalized-jsx-text": readonly ["
|
|
391
|
+
readonly "@sarj/no-unlocalized-jsx-text": readonly ["error", {
|
|
390
392
|
readonly enabled: false;
|
|
391
393
|
}];
|
|
392
394
|
readonly "no-restricted-imports": readonly ["error", {
|
|
@@ -592,11 +594,11 @@ declare const RECOMMENDED_RULES: {
|
|
|
592
594
|
readonly "@sarj/no-insecure-random-id": "error";
|
|
593
595
|
readonly "@sarj/no-json-stringify-error": "error";
|
|
594
596
|
readonly "@sarj/no-impossible-zod-literal-bounds": "error";
|
|
595
|
-
readonly "@sarj/no-in-operator-on-built-in-collections": "
|
|
597
|
+
readonly "@sarj/no-in-operator-on-built-in-collections": "error";
|
|
596
598
|
readonly "@sarj/no-log-only-catch": "error";
|
|
597
599
|
readonly "@sarj/no-bare-return-from-test-catch": "error";
|
|
598
600
|
readonly "@sarj/no-bespoke-api-case-conversion": "warn";
|
|
599
|
-
readonly "@sarj/no-detached-global-fetch": "
|
|
601
|
+
readonly "@sarj/no-detached-global-fetch": "error";
|
|
600
602
|
readonly "@sarj/no-json-stringify-object-equality": "warn";
|
|
601
603
|
readonly "@sarj/no-dangerously-allow-svg": "error";
|
|
602
604
|
readonly "@sarj/no-duplicate-lifecycle-refresh-listeners": "error";
|
|
@@ -607,7 +609,7 @@ declare const RECOMMENDED_RULES: {
|
|
|
607
609
|
readonly "@sarj/no-positional-tuple-return": "error";
|
|
608
610
|
readonly "@sarj/no-production-browser-source-maps": "error";
|
|
609
611
|
readonly "@sarj/no-repeated-string-literal": "error";
|
|
610
|
-
readonly "@sarj/no-redundant-optional-array-default": "
|
|
612
|
+
readonly "@sarj/no-redundant-optional-array-default": "error";
|
|
611
613
|
readonly "@sarj/no-router-refresh-polling": "error";
|
|
612
614
|
readonly "@sarj/no-restated-comment": "warn";
|
|
613
615
|
readonly "@sarj/no-restated-jsdoc": "warn";
|
|
@@ -626,8 +628,8 @@ declare const RECOMMENDED_RULES: {
|
|
|
626
628
|
readonly "@sarj/no-type-member-comment-wall": "error";
|
|
627
629
|
readonly "@sarj/no-unnecessary-use-client": "error";
|
|
628
630
|
readonly "@sarj/no-unsafe-mock-casting": "error";
|
|
629
|
-
readonly "@sarj/no-unsafe-test-double-cast": "
|
|
630
|
-
readonly "@sarj/no-first-party-module-mock": "
|
|
631
|
+
readonly "@sarj/no-unsafe-test-double-cast": "error";
|
|
632
|
+
readonly "@sarj/no-first-party-module-mock": "error";
|
|
631
633
|
readonly "@sarj/no-zod-native-enum": "error";
|
|
632
634
|
readonly "@sarj/test-loops-over-literal-cases": "error";
|
|
633
635
|
readonly "@sarj/prefer-constant-time-secret-compare": "error";
|
|
@@ -642,12 +644,12 @@ declare const RECOMMENDED_RULES: {
|
|
|
642
644
|
readonly "@sarj/prefer-multi-value-zod-literal": readonly ["warn", {
|
|
643
645
|
readonly zodMajorVersion: 4;
|
|
644
646
|
}];
|
|
645
|
-
readonly "@sarj/prefer-named-callback-domain": "
|
|
647
|
+
readonly "@sarj/prefer-named-callback-domain": "error";
|
|
646
648
|
readonly "@sarj/prefer-named-complex-return-type": "warn";
|
|
647
649
|
readonly "@sarj/prefer-node-crypto-hash": "warn";
|
|
648
650
|
readonly "@sarj/prefer-node-fs-promises": "warn";
|
|
649
651
|
readonly "@sarj/prefer-non-nullable-collection": "error";
|
|
650
|
-
readonly "@sarj/prefer-nullish-filter-predicate": "
|
|
652
|
+
readonly "@sarj/prefer-nullish-filter-predicate": "error";
|
|
651
653
|
readonly "@sarj/prefer-await-in-async-return": "error";
|
|
652
654
|
readonly "@sarj/prefer-schema-for-api-payload": "error";
|
|
653
655
|
readonly "@sarj/prefer-shared-zod-enum": "warn";
|
|
@@ -659,7 +661,7 @@ declare const RECOMMENDED_RULES: {
|
|
|
659
661
|
readonly "@sarj/prefer-whole-object-assertion": "warn";
|
|
660
662
|
readonly "@sarj/repeated-static-call-cases": "error";
|
|
661
663
|
readonly "@sarj/prefer-zod-infer": "error";
|
|
662
|
-
readonly "@sarj/prefer-zod-parse-output-type": "
|
|
664
|
+
readonly "@sarj/prefer-zod-parse-output-type": "error";
|
|
663
665
|
readonly "@sarj/require-assert-never": "error";
|
|
664
666
|
readonly "@sarj/require-fetch-timeout": "error";
|
|
665
667
|
readonly "@sarj/require-interface-for-exported-class": "warn";
|
|
@@ -683,17 +685,18 @@ declare const STRICT_RULES: {
|
|
|
683
685
|
readonly "@sarj/no-reduce-accumulator-copy": "error";
|
|
684
686
|
readonly "@sarj/no-known-value-widening": "error";
|
|
685
687
|
readonly "@sarj/require-button-accessible-name": "error";
|
|
688
|
+
readonly "@sarj/require-camelcase-properties": "warn";
|
|
686
689
|
readonly "@sarj/require-svg-accessible-name": "error";
|
|
687
|
-
readonly "@sarj/prefer-logical-tailwind-utilities": readonly ["
|
|
690
|
+
readonly "@sarj/prefer-logical-tailwind-utilities": readonly ["error", {
|
|
688
691
|
readonly enabled: false;
|
|
689
692
|
}];
|
|
690
|
-
readonly "@sarj/no-unlocalized-toast": readonly ["
|
|
693
|
+
readonly "@sarj/no-unlocalized-toast": readonly ["error", {
|
|
691
694
|
readonly enabled: false;
|
|
692
695
|
}];
|
|
693
|
-
readonly "@sarj/no-unlocalized-jsx-attributes": readonly ["
|
|
696
|
+
readonly "@sarj/no-unlocalized-jsx-attributes": readonly ["error", {
|
|
694
697
|
readonly enabled: false;
|
|
695
698
|
}];
|
|
696
|
-
readonly "@sarj/no-unlocalized-jsx-text": readonly ["
|
|
699
|
+
readonly "@sarj/no-unlocalized-jsx-text": readonly ["error", {
|
|
697
700
|
readonly enabled: false;
|
|
698
701
|
}];
|
|
699
702
|
readonly "no-restricted-imports": readonly ["error", {
|
|
@@ -900,11 +903,11 @@ declare const STRICT_RULES: {
|
|
|
900
903
|
readonly "@sarj/no-insecure-random-id": "error";
|
|
901
904
|
readonly "@sarj/no-json-stringify-error": "error";
|
|
902
905
|
readonly "@sarj/no-impossible-zod-literal-bounds": "error";
|
|
903
|
-
readonly "@sarj/no-in-operator-on-built-in-collections": "
|
|
906
|
+
readonly "@sarj/no-in-operator-on-built-in-collections": "error";
|
|
904
907
|
readonly "@sarj/no-log-only-catch": "error";
|
|
905
908
|
readonly "@sarj/no-bare-return-from-test-catch": "error";
|
|
906
909
|
readonly "@sarj/no-bespoke-api-case-conversion": "warn";
|
|
907
|
-
readonly "@sarj/no-detached-global-fetch": "
|
|
910
|
+
readonly "@sarj/no-detached-global-fetch": "error";
|
|
908
911
|
readonly "@sarj/no-json-stringify-object-equality": "warn";
|
|
909
912
|
readonly "@sarj/no-dangerously-allow-svg": "error";
|
|
910
913
|
readonly "@sarj/no-duplicate-lifecycle-refresh-listeners": "error";
|
|
@@ -917,7 +920,7 @@ declare const STRICT_RULES: {
|
|
|
917
920
|
readonly "@sarj/no-raw-env": "error";
|
|
918
921
|
readonly "@sarj/no-raw-fetch-outside-clients": "error";
|
|
919
922
|
readonly "@sarj/no-repeated-string-literal": "error";
|
|
920
|
-
readonly "@sarj/no-redundant-optional-array-default": "
|
|
923
|
+
readonly "@sarj/no-redundant-optional-array-default": "error";
|
|
921
924
|
readonly "@sarj/no-router-refresh-polling": "error";
|
|
922
925
|
readonly "@sarj/no-restated-comment": "warn";
|
|
923
926
|
readonly "@sarj/no-restated-jsdoc": "warn";
|
|
@@ -937,8 +940,8 @@ declare const STRICT_RULES: {
|
|
|
937
940
|
readonly "@sarj/no-type-member-comment-wall": "error";
|
|
938
941
|
readonly "@sarj/no-unnecessary-use-client": "error";
|
|
939
942
|
readonly "@sarj/no-unsafe-mock-casting": "error";
|
|
940
|
-
readonly "@sarj/no-unsafe-test-double-cast": "
|
|
941
|
-
readonly "@sarj/no-first-party-module-mock": "
|
|
943
|
+
readonly "@sarj/no-unsafe-test-double-cast": "error";
|
|
944
|
+
readonly "@sarj/no-first-party-module-mock": "error";
|
|
942
945
|
readonly "@sarj/no-zod-native-enum": "error";
|
|
943
946
|
readonly "@sarj/test-loops-over-literal-cases": "error";
|
|
944
947
|
readonly "@sarj/prefer-constant-time-secret-compare": "error";
|
|
@@ -953,12 +956,12 @@ declare const STRICT_RULES: {
|
|
|
953
956
|
readonly "@sarj/prefer-multi-value-zod-literal": readonly ["warn", {
|
|
954
957
|
readonly zodMajorVersion: 4;
|
|
955
958
|
}];
|
|
956
|
-
readonly "@sarj/prefer-named-callback-domain": "
|
|
959
|
+
readonly "@sarj/prefer-named-callback-domain": "error";
|
|
957
960
|
readonly "@sarj/prefer-named-complex-return-type": "warn";
|
|
958
961
|
readonly "@sarj/prefer-node-crypto-hash": "warn";
|
|
959
962
|
readonly "@sarj/prefer-node-fs-promises": "warn";
|
|
960
963
|
readonly "@sarj/prefer-non-nullable-collection": "error";
|
|
961
|
-
readonly "@sarj/prefer-nullish-filter-predicate": "
|
|
964
|
+
readonly "@sarj/prefer-nullish-filter-predicate": "error";
|
|
962
965
|
readonly "@sarj/prefer-await-in-async-return": "error";
|
|
963
966
|
readonly "@sarj/prefer-schema-for-api-payload": "error";
|
|
964
967
|
readonly "@sarj/prefer-shared-zod-enum": "warn";
|
|
@@ -970,7 +973,7 @@ declare const STRICT_RULES: {
|
|
|
970
973
|
readonly "@sarj/prefer-whole-object-assertion": "warn";
|
|
971
974
|
readonly "@sarj/repeated-static-call-cases": "error";
|
|
972
975
|
readonly "@sarj/prefer-zod-infer": "error";
|
|
973
|
-
readonly "@sarj/prefer-zod-parse-output-type": "
|
|
976
|
+
readonly "@sarj/prefer-zod-parse-output-type": "error";
|
|
974
977
|
readonly "@sarj/require-assert-never": "error";
|
|
975
978
|
readonly "@sarj/require-fetch-timeout": "error";
|
|
976
979
|
readonly "@sarj/require-interface-for-exported-class": "warn";
|
|
@@ -995,7 +998,7 @@ type FlatPreset = {
|
|
|
995
998
|
declare const PLUGIN: {
|
|
996
999
|
readonly meta: {
|
|
997
1000
|
readonly name: "@sarj/eslint-plugin";
|
|
998
|
-
readonly version: "15.
|
|
1001
|
+
readonly version: "15.26.0";
|
|
999
1002
|
};
|
|
1000
1003
|
readonly rules: {
|
|
1001
1004
|
readonly "no-conditional-empty-object-spread": DocumentedRule<[], "avoid">;
|
|
@@ -1007,6 +1010,7 @@ declare const PLUGIN: {
|
|
|
1007
1010
|
readonly components?: readonly ComponentImport[];
|
|
1008
1011
|
readonly iconModules?: readonly string[];
|
|
1009
1012
|
}?], "missingName">;
|
|
1013
|
+
readonly "require-camelcase-properties": DocumentedRule<readonly [], "requireCamelcaseProperty">;
|
|
1010
1014
|
readonly "require-svg-accessible-name": DocumentedRule<readonly [], "missingName">;
|
|
1011
1015
|
readonly "prefer-logical-tailwind-utilities": DocumentedRule<readonly [{
|
|
1012
1016
|
readonly enabled?: boolean;
|
package/dist/index.d.ts
CHANGED
|
@@ -220,6 +220,7 @@ declare const RULES: {
|
|
|
220
220
|
readonly components?: readonly ComponentImport[];
|
|
221
221
|
readonly iconModules?: readonly string[];
|
|
222
222
|
}?], "missingName">;
|
|
223
|
+
readonly "require-camelcase-properties": DocumentedRule<readonly [], "requireCamelcaseProperty">;
|
|
223
224
|
readonly "require-svg-accessible-name": DocumentedRule<readonly [], "missingName">;
|
|
224
225
|
readonly "prefer-logical-tailwind-utilities": DocumentedRule<readonly [{
|
|
225
226
|
readonly enabled?: boolean;
|
|
@@ -368,7 +369,7 @@ declare const RULES: {
|
|
|
368
369
|
/** @deprecated All repositories use one policy; retained for import compatibility. */
|
|
369
370
|
declare const APPLICATION_ONLY_RULES: readonly [];
|
|
370
371
|
/** Rules staged as non-blocking warnings while corpus adoption evidence accumulates. */
|
|
371
|
-
declare const ADVISORY_RULES: readonly ["@sarj/excessive-commentary", "@sarj/no-bespoke-api-case-conversion", "@sarj/no-
|
|
372
|
+
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-camelcase-properties", "@sarj/require-interface-for-exported-class", "@sarj/require-sql-access-class", "@sarj/sole-export-matches-filename"];
|
|
372
373
|
declare const RECOMMENDED_RULES: {
|
|
373
374
|
readonly "@sarj/no-conditional-empty-object-spread": "error";
|
|
374
375
|
readonly "@sarj/prefer-typed-reflection": "error";
|
|
@@ -376,17 +377,18 @@ declare const RECOMMENDED_RULES: {
|
|
|
376
377
|
readonly "@sarj/no-reduce-accumulator-copy": "error";
|
|
377
378
|
readonly "@sarj/no-known-value-widening": "error";
|
|
378
379
|
readonly "@sarj/require-button-accessible-name": "error";
|
|
380
|
+
readonly "@sarj/require-camelcase-properties": "warn";
|
|
379
381
|
readonly "@sarj/require-svg-accessible-name": "error";
|
|
380
|
-
readonly "@sarj/prefer-logical-tailwind-utilities": readonly ["
|
|
382
|
+
readonly "@sarj/prefer-logical-tailwind-utilities": readonly ["error", {
|
|
381
383
|
readonly enabled: false;
|
|
382
384
|
}];
|
|
383
|
-
readonly "@sarj/no-unlocalized-toast": readonly ["
|
|
385
|
+
readonly "@sarj/no-unlocalized-toast": readonly ["error", {
|
|
384
386
|
readonly enabled: false;
|
|
385
387
|
}];
|
|
386
|
-
readonly "@sarj/no-unlocalized-jsx-attributes": readonly ["
|
|
388
|
+
readonly "@sarj/no-unlocalized-jsx-attributes": readonly ["error", {
|
|
387
389
|
readonly enabled: false;
|
|
388
390
|
}];
|
|
389
|
-
readonly "@sarj/no-unlocalized-jsx-text": readonly ["
|
|
391
|
+
readonly "@sarj/no-unlocalized-jsx-text": readonly ["error", {
|
|
390
392
|
readonly enabled: false;
|
|
391
393
|
}];
|
|
392
394
|
readonly "no-restricted-imports": readonly ["error", {
|
|
@@ -592,11 +594,11 @@ declare const RECOMMENDED_RULES: {
|
|
|
592
594
|
readonly "@sarj/no-insecure-random-id": "error";
|
|
593
595
|
readonly "@sarj/no-json-stringify-error": "error";
|
|
594
596
|
readonly "@sarj/no-impossible-zod-literal-bounds": "error";
|
|
595
|
-
readonly "@sarj/no-in-operator-on-built-in-collections": "
|
|
597
|
+
readonly "@sarj/no-in-operator-on-built-in-collections": "error";
|
|
596
598
|
readonly "@sarj/no-log-only-catch": "error";
|
|
597
599
|
readonly "@sarj/no-bare-return-from-test-catch": "error";
|
|
598
600
|
readonly "@sarj/no-bespoke-api-case-conversion": "warn";
|
|
599
|
-
readonly "@sarj/no-detached-global-fetch": "
|
|
601
|
+
readonly "@sarj/no-detached-global-fetch": "error";
|
|
600
602
|
readonly "@sarj/no-json-stringify-object-equality": "warn";
|
|
601
603
|
readonly "@sarj/no-dangerously-allow-svg": "error";
|
|
602
604
|
readonly "@sarj/no-duplicate-lifecycle-refresh-listeners": "error";
|
|
@@ -607,7 +609,7 @@ declare const RECOMMENDED_RULES: {
|
|
|
607
609
|
readonly "@sarj/no-positional-tuple-return": "error";
|
|
608
610
|
readonly "@sarj/no-production-browser-source-maps": "error";
|
|
609
611
|
readonly "@sarj/no-repeated-string-literal": "error";
|
|
610
|
-
readonly "@sarj/no-redundant-optional-array-default": "
|
|
612
|
+
readonly "@sarj/no-redundant-optional-array-default": "error";
|
|
611
613
|
readonly "@sarj/no-router-refresh-polling": "error";
|
|
612
614
|
readonly "@sarj/no-restated-comment": "warn";
|
|
613
615
|
readonly "@sarj/no-restated-jsdoc": "warn";
|
|
@@ -626,8 +628,8 @@ declare const RECOMMENDED_RULES: {
|
|
|
626
628
|
readonly "@sarj/no-type-member-comment-wall": "error";
|
|
627
629
|
readonly "@sarj/no-unnecessary-use-client": "error";
|
|
628
630
|
readonly "@sarj/no-unsafe-mock-casting": "error";
|
|
629
|
-
readonly "@sarj/no-unsafe-test-double-cast": "
|
|
630
|
-
readonly "@sarj/no-first-party-module-mock": "
|
|
631
|
+
readonly "@sarj/no-unsafe-test-double-cast": "error";
|
|
632
|
+
readonly "@sarj/no-first-party-module-mock": "error";
|
|
631
633
|
readonly "@sarj/no-zod-native-enum": "error";
|
|
632
634
|
readonly "@sarj/test-loops-over-literal-cases": "error";
|
|
633
635
|
readonly "@sarj/prefer-constant-time-secret-compare": "error";
|
|
@@ -642,12 +644,12 @@ declare const RECOMMENDED_RULES: {
|
|
|
642
644
|
readonly "@sarj/prefer-multi-value-zod-literal": readonly ["warn", {
|
|
643
645
|
readonly zodMajorVersion: 4;
|
|
644
646
|
}];
|
|
645
|
-
readonly "@sarj/prefer-named-callback-domain": "
|
|
647
|
+
readonly "@sarj/prefer-named-callback-domain": "error";
|
|
646
648
|
readonly "@sarj/prefer-named-complex-return-type": "warn";
|
|
647
649
|
readonly "@sarj/prefer-node-crypto-hash": "warn";
|
|
648
650
|
readonly "@sarj/prefer-node-fs-promises": "warn";
|
|
649
651
|
readonly "@sarj/prefer-non-nullable-collection": "error";
|
|
650
|
-
readonly "@sarj/prefer-nullish-filter-predicate": "
|
|
652
|
+
readonly "@sarj/prefer-nullish-filter-predicate": "error";
|
|
651
653
|
readonly "@sarj/prefer-await-in-async-return": "error";
|
|
652
654
|
readonly "@sarj/prefer-schema-for-api-payload": "error";
|
|
653
655
|
readonly "@sarj/prefer-shared-zod-enum": "warn";
|
|
@@ -659,7 +661,7 @@ declare const RECOMMENDED_RULES: {
|
|
|
659
661
|
readonly "@sarj/prefer-whole-object-assertion": "warn";
|
|
660
662
|
readonly "@sarj/repeated-static-call-cases": "error";
|
|
661
663
|
readonly "@sarj/prefer-zod-infer": "error";
|
|
662
|
-
readonly "@sarj/prefer-zod-parse-output-type": "
|
|
664
|
+
readonly "@sarj/prefer-zod-parse-output-type": "error";
|
|
663
665
|
readonly "@sarj/require-assert-never": "error";
|
|
664
666
|
readonly "@sarj/require-fetch-timeout": "error";
|
|
665
667
|
readonly "@sarj/require-interface-for-exported-class": "warn";
|
|
@@ -683,17 +685,18 @@ declare const STRICT_RULES: {
|
|
|
683
685
|
readonly "@sarj/no-reduce-accumulator-copy": "error";
|
|
684
686
|
readonly "@sarj/no-known-value-widening": "error";
|
|
685
687
|
readonly "@sarj/require-button-accessible-name": "error";
|
|
688
|
+
readonly "@sarj/require-camelcase-properties": "warn";
|
|
686
689
|
readonly "@sarj/require-svg-accessible-name": "error";
|
|
687
|
-
readonly "@sarj/prefer-logical-tailwind-utilities": readonly ["
|
|
690
|
+
readonly "@sarj/prefer-logical-tailwind-utilities": readonly ["error", {
|
|
688
691
|
readonly enabled: false;
|
|
689
692
|
}];
|
|
690
|
-
readonly "@sarj/no-unlocalized-toast": readonly ["
|
|
693
|
+
readonly "@sarj/no-unlocalized-toast": readonly ["error", {
|
|
691
694
|
readonly enabled: false;
|
|
692
695
|
}];
|
|
693
|
-
readonly "@sarj/no-unlocalized-jsx-attributes": readonly ["
|
|
696
|
+
readonly "@sarj/no-unlocalized-jsx-attributes": readonly ["error", {
|
|
694
697
|
readonly enabled: false;
|
|
695
698
|
}];
|
|
696
|
-
readonly "@sarj/no-unlocalized-jsx-text": readonly ["
|
|
699
|
+
readonly "@sarj/no-unlocalized-jsx-text": readonly ["error", {
|
|
697
700
|
readonly enabled: false;
|
|
698
701
|
}];
|
|
699
702
|
readonly "no-restricted-imports": readonly ["error", {
|
|
@@ -900,11 +903,11 @@ declare const STRICT_RULES: {
|
|
|
900
903
|
readonly "@sarj/no-insecure-random-id": "error";
|
|
901
904
|
readonly "@sarj/no-json-stringify-error": "error";
|
|
902
905
|
readonly "@sarj/no-impossible-zod-literal-bounds": "error";
|
|
903
|
-
readonly "@sarj/no-in-operator-on-built-in-collections": "
|
|
906
|
+
readonly "@sarj/no-in-operator-on-built-in-collections": "error";
|
|
904
907
|
readonly "@sarj/no-log-only-catch": "error";
|
|
905
908
|
readonly "@sarj/no-bare-return-from-test-catch": "error";
|
|
906
909
|
readonly "@sarj/no-bespoke-api-case-conversion": "warn";
|
|
907
|
-
readonly "@sarj/no-detached-global-fetch": "
|
|
910
|
+
readonly "@sarj/no-detached-global-fetch": "error";
|
|
908
911
|
readonly "@sarj/no-json-stringify-object-equality": "warn";
|
|
909
912
|
readonly "@sarj/no-dangerously-allow-svg": "error";
|
|
910
913
|
readonly "@sarj/no-duplicate-lifecycle-refresh-listeners": "error";
|
|
@@ -917,7 +920,7 @@ declare const STRICT_RULES: {
|
|
|
917
920
|
readonly "@sarj/no-raw-env": "error";
|
|
918
921
|
readonly "@sarj/no-raw-fetch-outside-clients": "error";
|
|
919
922
|
readonly "@sarj/no-repeated-string-literal": "error";
|
|
920
|
-
readonly "@sarj/no-redundant-optional-array-default": "
|
|
923
|
+
readonly "@sarj/no-redundant-optional-array-default": "error";
|
|
921
924
|
readonly "@sarj/no-router-refresh-polling": "error";
|
|
922
925
|
readonly "@sarj/no-restated-comment": "warn";
|
|
923
926
|
readonly "@sarj/no-restated-jsdoc": "warn";
|
|
@@ -937,8 +940,8 @@ declare const STRICT_RULES: {
|
|
|
937
940
|
readonly "@sarj/no-type-member-comment-wall": "error";
|
|
938
941
|
readonly "@sarj/no-unnecessary-use-client": "error";
|
|
939
942
|
readonly "@sarj/no-unsafe-mock-casting": "error";
|
|
940
|
-
readonly "@sarj/no-unsafe-test-double-cast": "
|
|
941
|
-
readonly "@sarj/no-first-party-module-mock": "
|
|
943
|
+
readonly "@sarj/no-unsafe-test-double-cast": "error";
|
|
944
|
+
readonly "@sarj/no-first-party-module-mock": "error";
|
|
942
945
|
readonly "@sarj/no-zod-native-enum": "error";
|
|
943
946
|
readonly "@sarj/test-loops-over-literal-cases": "error";
|
|
944
947
|
readonly "@sarj/prefer-constant-time-secret-compare": "error";
|
|
@@ -953,12 +956,12 @@ declare const STRICT_RULES: {
|
|
|
953
956
|
readonly "@sarj/prefer-multi-value-zod-literal": readonly ["warn", {
|
|
954
957
|
readonly zodMajorVersion: 4;
|
|
955
958
|
}];
|
|
956
|
-
readonly "@sarj/prefer-named-callback-domain": "
|
|
959
|
+
readonly "@sarj/prefer-named-callback-domain": "error";
|
|
957
960
|
readonly "@sarj/prefer-named-complex-return-type": "warn";
|
|
958
961
|
readonly "@sarj/prefer-node-crypto-hash": "warn";
|
|
959
962
|
readonly "@sarj/prefer-node-fs-promises": "warn";
|
|
960
963
|
readonly "@sarj/prefer-non-nullable-collection": "error";
|
|
961
|
-
readonly "@sarj/prefer-nullish-filter-predicate": "
|
|
964
|
+
readonly "@sarj/prefer-nullish-filter-predicate": "error";
|
|
962
965
|
readonly "@sarj/prefer-await-in-async-return": "error";
|
|
963
966
|
readonly "@sarj/prefer-schema-for-api-payload": "error";
|
|
964
967
|
readonly "@sarj/prefer-shared-zod-enum": "warn";
|
|
@@ -970,7 +973,7 @@ declare const STRICT_RULES: {
|
|
|
970
973
|
readonly "@sarj/prefer-whole-object-assertion": "warn";
|
|
971
974
|
readonly "@sarj/repeated-static-call-cases": "error";
|
|
972
975
|
readonly "@sarj/prefer-zod-infer": "error";
|
|
973
|
-
readonly "@sarj/prefer-zod-parse-output-type": "
|
|
976
|
+
readonly "@sarj/prefer-zod-parse-output-type": "error";
|
|
974
977
|
readonly "@sarj/require-assert-never": "error";
|
|
975
978
|
readonly "@sarj/require-fetch-timeout": "error";
|
|
976
979
|
readonly "@sarj/require-interface-for-exported-class": "warn";
|
|
@@ -995,7 +998,7 @@ type FlatPreset = {
|
|
|
995
998
|
declare const PLUGIN: {
|
|
996
999
|
readonly meta: {
|
|
997
1000
|
readonly name: "@sarj/eslint-plugin";
|
|
998
|
-
readonly version: "15.
|
|
1001
|
+
readonly version: "15.26.0";
|
|
999
1002
|
};
|
|
1000
1003
|
readonly rules: {
|
|
1001
1004
|
readonly "no-conditional-empty-object-spread": DocumentedRule<[], "avoid">;
|
|
@@ -1007,6 +1010,7 @@ declare const PLUGIN: {
|
|
|
1007
1010
|
readonly components?: readonly ComponentImport[];
|
|
1008
1011
|
readonly iconModules?: readonly string[];
|
|
1009
1012
|
}?], "missingName">;
|
|
1013
|
+
readonly "require-camelcase-properties": DocumentedRule<readonly [], "requireCamelcaseProperty">;
|
|
1010
1014
|
readonly "require-svg-accessible-name": DocumentedRule<readonly [], "missingName">;
|
|
1011
1015
|
readonly "prefer-logical-tailwind-utilities": DocumentedRule<readonly [{
|
|
1012
1016
|
readonly enabled?: boolean;
|