@sarj/eslint-plugin 15.24.0 → 15.25.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 +1237 -1120
- package/dist/index.d.cts +14 -2
- package/dist/index.d.ts +14 -2
- package/dist/index.js +1236 -1119
- 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-detached-global-fetch", "@sarj/no-in-operator-on-built-in-collections", "@sarj/no-json-stringify-object-equality", "@sarj/no-redundant-optional-array-default", "@sarj/no-restated-comment", "@sarj/no-restated-jsdoc", "@sarj/no-unlocalized-jsx-attributes", "@sarj/no-unlocalized-jsx-text", "@sarj/no-unlocalized-toast", "@sarj/prefer-logical-tailwind-utilities", "@sarj/prefer-millisecond-control-duration-schema", "@sarj/prefer-module-level-refined-schema", "@sarj/prefer-multi-value-zod-literal", "@sarj/prefer-named-callback-domain", "@sarj/prefer-named-complex-return-type", "@sarj/prefer-node-crypto-hash", "@sarj/prefer-node-fs-promises", "@sarj/prefer-nullish-filter-predicate", "@sarj/prefer-shared-zod-enum", "@sarj/prefer-switch-for-repeated-equality", "@sarj/prefer-whole-object-assertion", "@sarj/prefer-zod-parse-output-type", "@sarj/require-interface-for-exported-class", "@sarj/require-sql-access-class", "@sarj/sole-export-matches-filename"];
|
|
371
|
+
declare const ADVISORY_RULES: readonly ["@sarj/excessive-commentary", "@sarj/no-bespoke-api-case-conversion", "@sarj/no-detached-global-fetch", "@sarj/no-first-party-module-mock", "@sarj/no-in-operator-on-built-in-collections", "@sarj/no-json-stringify-object-equality", "@sarj/no-redundant-optional-array-default", "@sarj/no-restated-comment", "@sarj/no-restated-jsdoc", "@sarj/no-unlocalized-jsx-attributes", "@sarj/no-unlocalized-jsx-text", "@sarj/no-unlocalized-toast", "@sarj/no-unsafe-test-double-cast", "@sarj/prefer-logical-tailwind-utilities", "@sarj/prefer-millisecond-control-duration-schema", "@sarj/prefer-module-level-refined-schema", "@sarj/prefer-multi-value-zod-literal", "@sarj/prefer-named-callback-domain", "@sarj/prefer-named-complex-return-type", "@sarj/prefer-node-crypto-hash", "@sarj/prefer-node-fs-promises", "@sarj/prefer-nullish-filter-predicate", "@sarj/prefer-shared-zod-enum", "@sarj/prefer-switch-for-repeated-equality", "@sarj/prefer-whole-object-assertion", "@sarj/prefer-zod-parse-output-type", "@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";
|
|
@@ -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": "warn";
|
|
630
|
+
readonly "@sarj/no-first-party-module-mock": "warn";
|
|
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";
|
|
@@ -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": "warn";
|
|
941
|
+
readonly "@sarj/no-first-party-module-mock": "warn";
|
|
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";
|
|
@@ -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.0";
|
|
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-detached-global-fetch", "@sarj/no-in-operator-on-built-in-collections", "@sarj/no-json-stringify-object-equality", "@sarj/no-redundant-optional-array-default", "@sarj/no-restated-comment", "@sarj/no-restated-jsdoc", "@sarj/no-unlocalized-jsx-attributes", "@sarj/no-unlocalized-jsx-text", "@sarj/no-unlocalized-toast", "@sarj/prefer-logical-tailwind-utilities", "@sarj/prefer-millisecond-control-duration-schema", "@sarj/prefer-module-level-refined-schema", "@sarj/prefer-multi-value-zod-literal", "@sarj/prefer-named-callback-domain", "@sarj/prefer-named-complex-return-type", "@sarj/prefer-node-crypto-hash", "@sarj/prefer-node-fs-promises", "@sarj/prefer-nullish-filter-predicate", "@sarj/prefer-shared-zod-enum", "@sarj/prefer-switch-for-repeated-equality", "@sarj/prefer-whole-object-assertion", "@sarj/prefer-zod-parse-output-type", "@sarj/require-interface-for-exported-class", "@sarj/require-sql-access-class", "@sarj/sole-export-matches-filename"];
|
|
371
|
+
declare const ADVISORY_RULES: readonly ["@sarj/excessive-commentary", "@sarj/no-bespoke-api-case-conversion", "@sarj/no-detached-global-fetch", "@sarj/no-first-party-module-mock", "@sarj/no-in-operator-on-built-in-collections", "@sarj/no-json-stringify-object-equality", "@sarj/no-redundant-optional-array-default", "@sarj/no-restated-comment", "@sarj/no-restated-jsdoc", "@sarj/no-unlocalized-jsx-attributes", "@sarj/no-unlocalized-jsx-text", "@sarj/no-unlocalized-toast", "@sarj/no-unsafe-test-double-cast", "@sarj/prefer-logical-tailwind-utilities", "@sarj/prefer-millisecond-control-duration-schema", "@sarj/prefer-module-level-refined-schema", "@sarj/prefer-multi-value-zod-literal", "@sarj/prefer-named-callback-domain", "@sarj/prefer-named-complex-return-type", "@sarj/prefer-node-crypto-hash", "@sarj/prefer-node-fs-promises", "@sarj/prefer-nullish-filter-predicate", "@sarj/prefer-shared-zod-enum", "@sarj/prefer-switch-for-repeated-equality", "@sarj/prefer-whole-object-assertion", "@sarj/prefer-zod-parse-output-type", "@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";
|
|
@@ -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": "warn";
|
|
630
|
+
readonly "@sarj/no-first-party-module-mock": "warn";
|
|
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";
|
|
@@ -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": "warn";
|
|
941
|
+
readonly "@sarj/no-first-party-module-mock": "warn";
|
|
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";
|
|
@@ -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.0";
|
|
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">;
|