@sarj/eslint-plugin 16.11.0 → 16.13.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 +2178 -1914
- package/dist/index.d.cts +7 -3
- package/dist/index.d.ts +7 -3
- package/dist/index.js +904 -643
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -174,6 +174,7 @@ declare const RULES: {
|
|
|
174
174
|
readonly "no-hand-rolled-spinner": DocumentedRule<readonly [], "handRolledSpinner">;
|
|
175
175
|
readonly "no-insecure-random-id": DocumentedRule<readonly [], "insecureRandomId">;
|
|
176
176
|
readonly "no-detached-global-fetch": DocumentedRule<readonly [], "detachedGlobalFetch">;
|
|
177
|
+
readonly "no-exception-text-in-5xx-response": DocumentedRule<readonly [], "exceptionText">;
|
|
177
178
|
readonly "no-json-stringify-error": DocumentedRule<readonly [], "noJsonStringifyError">;
|
|
178
179
|
readonly "no-json-stringify-object-equality": DocumentedRule<readonly [], "serializedObjectEquality">;
|
|
179
180
|
readonly "no-impossible-zod-literal-bounds": DocumentedRule<readonly [{
|
|
@@ -293,7 +294,7 @@ declare const RULES: {
|
|
|
293
294
|
/** @deprecated All repositories use one policy; retained for import compatibility. */
|
|
294
295
|
declare const APPLICATION_ONLY_RULES: readonly [];
|
|
295
296
|
/** Rules staged as non-blocking warnings while corpus adoption evidence accumulates. */
|
|
296
|
-
declare const ADVISORY_RULES: readonly ["@sarj/excessive-commentary", "@sarj/no-bespoke-api-case-conversion", "@sarj/no-restated-comment", "@sarj/no-restated-jsdoc", "@sarj/prefer-millisecond-control-duration-schema", "@sarj/prefer-module-level-refined-schema", "@sarj/prefer-node-crypto-hash", "@sarj/prefer-node-fs-promises", "@sarj/prefer-shared-zod-enum", "@sarj/prefer-whole-object-assertion", "@sarj/require-sql-access-class"];
|
|
297
|
+
declare const ADVISORY_RULES: readonly ["@sarj/excessive-commentary", "@sarj/no-bespoke-api-case-conversion", "@sarj/no-cors-wildcard-with-credentials", "@sarj/no-exception-text-in-5xx-response", "@sarj/no-restated-comment", "@sarj/no-restated-jsdoc", "@sarj/prefer-millisecond-control-duration-schema", "@sarj/prefer-module-level-refined-schema", "@sarj/prefer-node-crypto-hash", "@sarj/prefer-node-fs-promises", "@sarj/prefer-shared-zod-enum", "@sarj/prefer-whole-object-assertion", "@sarj/require-sql-access-class"];
|
|
297
298
|
declare const RECOMMENDED_RULES: {
|
|
298
299
|
readonly "@sarj/named-child-schema-type": "error";
|
|
299
300
|
readonly "@sarj/no-conditional-empty-object-spread": "error";
|
|
@@ -509,7 +510,7 @@ declare const RECOMMENDED_RULES: {
|
|
|
509
510
|
readonly "@sarj/enforce-file-structure": "error";
|
|
510
511
|
readonly "@sarj/no-client-side-data-fetching": "error";
|
|
511
512
|
readonly "@sarj/no-comment-cruft": "error";
|
|
512
|
-
readonly "@sarj/no-cors-wildcard-with-credentials": "
|
|
513
|
+
readonly "@sarj/no-cors-wildcard-with-credentials": "warn";
|
|
513
514
|
readonly "@sarj/no-dynamic-sql": "error";
|
|
514
515
|
readonly "@sarj/no-fat-try-blocks": readonly ["error", {
|
|
515
516
|
readonly max: 5;
|
|
@@ -517,6 +518,7 @@ declare const RECOMMENDED_RULES: {
|
|
|
517
518
|
readonly "@sarj/no-hand-rolled-sleep": "error";
|
|
518
519
|
readonly "@sarj/no-hand-rolled-spinner": "error";
|
|
519
520
|
readonly "@sarj/no-insecure-random-id": "error";
|
|
521
|
+
readonly "@sarj/no-exception-text-in-5xx-response": "warn";
|
|
520
522
|
readonly "@sarj/no-json-stringify-error": "error";
|
|
521
523
|
readonly "@sarj/no-impossible-zod-literal-bounds": "error";
|
|
522
524
|
readonly "@sarj/no-in-operator-on-built-in-collections": "error";
|
|
@@ -822,7 +824,7 @@ declare const STRICT_RULES: {
|
|
|
822
824
|
readonly "@sarj/enforce-file-structure": "error";
|
|
823
825
|
readonly "@sarj/no-client-side-data-fetching": "error";
|
|
824
826
|
readonly "@sarj/no-comment-cruft": "error";
|
|
825
|
-
readonly "@sarj/no-cors-wildcard-with-credentials": "
|
|
827
|
+
readonly "@sarj/no-cors-wildcard-with-credentials": "warn";
|
|
826
828
|
readonly "@sarj/no-dynamic-sql": "error";
|
|
827
829
|
readonly "@sarj/no-enum": "error";
|
|
828
830
|
readonly "@sarj/no-fat-try-blocks": readonly ["error", {
|
|
@@ -831,6 +833,7 @@ declare const STRICT_RULES: {
|
|
|
831
833
|
readonly "@sarj/no-hand-rolled-sleep": "error";
|
|
832
834
|
readonly "@sarj/no-hand-rolled-spinner": "error";
|
|
833
835
|
readonly "@sarj/no-insecure-random-id": "error";
|
|
836
|
+
readonly "@sarj/no-exception-text-in-5xx-response": "warn";
|
|
834
837
|
readonly "@sarj/no-json-stringify-error": "error";
|
|
835
838
|
readonly "@sarj/no-impossible-zod-literal-bounds": "error";
|
|
836
839
|
readonly "@sarj/no-in-operator-on-built-in-collections": "error";
|
|
@@ -983,6 +986,7 @@ declare const PLUGIN: {
|
|
|
983
986
|
readonly "no-hand-rolled-spinner": DocumentedRule<readonly [], "handRolledSpinner">;
|
|
984
987
|
readonly "no-insecure-random-id": DocumentedRule<readonly [], "insecureRandomId">;
|
|
985
988
|
readonly "no-detached-global-fetch": DocumentedRule<readonly [], "detachedGlobalFetch">;
|
|
989
|
+
readonly "no-exception-text-in-5xx-response": DocumentedRule<readonly [], "exceptionText">;
|
|
986
990
|
readonly "no-json-stringify-error": DocumentedRule<readonly [], "noJsonStringifyError">;
|
|
987
991
|
readonly "no-json-stringify-object-equality": DocumentedRule<readonly [], "serializedObjectEquality">;
|
|
988
992
|
readonly "no-impossible-zod-literal-bounds": DocumentedRule<readonly [{
|
package/dist/index.d.ts
CHANGED
|
@@ -174,6 +174,7 @@ declare const RULES: {
|
|
|
174
174
|
readonly "no-hand-rolled-spinner": DocumentedRule<readonly [], "handRolledSpinner">;
|
|
175
175
|
readonly "no-insecure-random-id": DocumentedRule<readonly [], "insecureRandomId">;
|
|
176
176
|
readonly "no-detached-global-fetch": DocumentedRule<readonly [], "detachedGlobalFetch">;
|
|
177
|
+
readonly "no-exception-text-in-5xx-response": DocumentedRule<readonly [], "exceptionText">;
|
|
177
178
|
readonly "no-json-stringify-error": DocumentedRule<readonly [], "noJsonStringifyError">;
|
|
178
179
|
readonly "no-json-stringify-object-equality": DocumentedRule<readonly [], "serializedObjectEquality">;
|
|
179
180
|
readonly "no-impossible-zod-literal-bounds": DocumentedRule<readonly [{
|
|
@@ -293,7 +294,7 @@ declare const RULES: {
|
|
|
293
294
|
/** @deprecated All repositories use one policy; retained for import compatibility. */
|
|
294
295
|
declare const APPLICATION_ONLY_RULES: readonly [];
|
|
295
296
|
/** Rules staged as non-blocking warnings while corpus adoption evidence accumulates. */
|
|
296
|
-
declare const ADVISORY_RULES: readonly ["@sarj/excessive-commentary", "@sarj/no-bespoke-api-case-conversion", "@sarj/no-restated-comment", "@sarj/no-restated-jsdoc", "@sarj/prefer-millisecond-control-duration-schema", "@sarj/prefer-module-level-refined-schema", "@sarj/prefer-node-crypto-hash", "@sarj/prefer-node-fs-promises", "@sarj/prefer-shared-zod-enum", "@sarj/prefer-whole-object-assertion", "@sarj/require-sql-access-class"];
|
|
297
|
+
declare const ADVISORY_RULES: readonly ["@sarj/excessive-commentary", "@sarj/no-bespoke-api-case-conversion", "@sarj/no-cors-wildcard-with-credentials", "@sarj/no-exception-text-in-5xx-response", "@sarj/no-restated-comment", "@sarj/no-restated-jsdoc", "@sarj/prefer-millisecond-control-duration-schema", "@sarj/prefer-module-level-refined-schema", "@sarj/prefer-node-crypto-hash", "@sarj/prefer-node-fs-promises", "@sarj/prefer-shared-zod-enum", "@sarj/prefer-whole-object-assertion", "@sarj/require-sql-access-class"];
|
|
297
298
|
declare const RECOMMENDED_RULES: {
|
|
298
299
|
readonly "@sarj/named-child-schema-type": "error";
|
|
299
300
|
readonly "@sarj/no-conditional-empty-object-spread": "error";
|
|
@@ -509,7 +510,7 @@ declare const RECOMMENDED_RULES: {
|
|
|
509
510
|
readonly "@sarj/enforce-file-structure": "error";
|
|
510
511
|
readonly "@sarj/no-client-side-data-fetching": "error";
|
|
511
512
|
readonly "@sarj/no-comment-cruft": "error";
|
|
512
|
-
readonly "@sarj/no-cors-wildcard-with-credentials": "
|
|
513
|
+
readonly "@sarj/no-cors-wildcard-with-credentials": "warn";
|
|
513
514
|
readonly "@sarj/no-dynamic-sql": "error";
|
|
514
515
|
readonly "@sarj/no-fat-try-blocks": readonly ["error", {
|
|
515
516
|
readonly max: 5;
|
|
@@ -517,6 +518,7 @@ declare const RECOMMENDED_RULES: {
|
|
|
517
518
|
readonly "@sarj/no-hand-rolled-sleep": "error";
|
|
518
519
|
readonly "@sarj/no-hand-rolled-spinner": "error";
|
|
519
520
|
readonly "@sarj/no-insecure-random-id": "error";
|
|
521
|
+
readonly "@sarj/no-exception-text-in-5xx-response": "warn";
|
|
520
522
|
readonly "@sarj/no-json-stringify-error": "error";
|
|
521
523
|
readonly "@sarj/no-impossible-zod-literal-bounds": "error";
|
|
522
524
|
readonly "@sarj/no-in-operator-on-built-in-collections": "error";
|
|
@@ -822,7 +824,7 @@ declare const STRICT_RULES: {
|
|
|
822
824
|
readonly "@sarj/enforce-file-structure": "error";
|
|
823
825
|
readonly "@sarj/no-client-side-data-fetching": "error";
|
|
824
826
|
readonly "@sarj/no-comment-cruft": "error";
|
|
825
|
-
readonly "@sarj/no-cors-wildcard-with-credentials": "
|
|
827
|
+
readonly "@sarj/no-cors-wildcard-with-credentials": "warn";
|
|
826
828
|
readonly "@sarj/no-dynamic-sql": "error";
|
|
827
829
|
readonly "@sarj/no-enum": "error";
|
|
828
830
|
readonly "@sarj/no-fat-try-blocks": readonly ["error", {
|
|
@@ -831,6 +833,7 @@ declare const STRICT_RULES: {
|
|
|
831
833
|
readonly "@sarj/no-hand-rolled-sleep": "error";
|
|
832
834
|
readonly "@sarj/no-hand-rolled-spinner": "error";
|
|
833
835
|
readonly "@sarj/no-insecure-random-id": "error";
|
|
836
|
+
readonly "@sarj/no-exception-text-in-5xx-response": "warn";
|
|
834
837
|
readonly "@sarj/no-json-stringify-error": "error";
|
|
835
838
|
readonly "@sarj/no-impossible-zod-literal-bounds": "error";
|
|
836
839
|
readonly "@sarj/no-in-operator-on-built-in-collections": "error";
|
|
@@ -983,6 +986,7 @@ declare const PLUGIN: {
|
|
|
983
986
|
readonly "no-hand-rolled-spinner": DocumentedRule<readonly [], "handRolledSpinner">;
|
|
984
987
|
readonly "no-insecure-random-id": DocumentedRule<readonly [], "insecureRandomId">;
|
|
985
988
|
readonly "no-detached-global-fetch": DocumentedRule<readonly [], "detachedGlobalFetch">;
|
|
989
|
+
readonly "no-exception-text-in-5xx-response": DocumentedRule<readonly [], "exceptionText">;
|
|
986
990
|
readonly "no-json-stringify-error": DocumentedRule<readonly [], "noJsonStringifyError">;
|
|
987
991
|
readonly "no-json-stringify-object-equality": DocumentedRule<readonly [], "serializedObjectEquality">;
|
|
988
992
|
readonly "no-impossible-zod-literal-bounds": DocumentedRule<readonly [{
|