@sarj/eslint-plugin 16.10.0 → 16.12.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 +2076 -1730
- package/dist/index.d.cts +11 -3
- package/dist/index.d.ts +11 -3
- package/dist/index.js +2068 -1719
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -174,9 +174,12 @@ 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
|
-
readonly "no-impossible-zod-literal-bounds": DocumentedRule<readonly [
|
|
180
|
+
readonly "no-impossible-zod-literal-bounds": DocumentedRule<readonly [{
|
|
181
|
+
readonly delegateRealContradictions?: boolean;
|
|
182
|
+
}?], "impossibleBounds">;
|
|
180
183
|
readonly "no-in-operator-on-built-in-collections": DocumentedRule<readonly [], "ambiguousCollectionIn">;
|
|
181
184
|
readonly "no-redundant-optional-array-default": DocumentedRule<readonly [], "redundantOptionalArrayDefault">;
|
|
182
185
|
readonly "interface-contract-members-private": DocumentedRule<readonly [], "nonContractMemberMustBePrivate">;
|
|
@@ -291,7 +294,7 @@ declare const RULES: {
|
|
|
291
294
|
/** @deprecated All repositories use one policy; retained for import compatibility. */
|
|
292
295
|
declare const APPLICATION_ONLY_RULES: readonly [];
|
|
293
296
|
/** Rules staged as non-blocking warnings while corpus adoption evidence accumulates. */
|
|
294
|
-
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-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"];
|
|
295
298
|
declare const RECOMMENDED_RULES: {
|
|
296
299
|
readonly "@sarj/named-child-schema-type": "error";
|
|
297
300
|
readonly "@sarj/no-conditional-empty-object-spread": "error";
|
|
@@ -515,6 +518,7 @@ declare const RECOMMENDED_RULES: {
|
|
|
515
518
|
readonly "@sarj/no-hand-rolled-sleep": "error";
|
|
516
519
|
readonly "@sarj/no-hand-rolled-spinner": "error";
|
|
517
520
|
readonly "@sarj/no-insecure-random-id": "error";
|
|
521
|
+
readonly "@sarj/no-exception-text-in-5xx-response": "warn";
|
|
518
522
|
readonly "@sarj/no-json-stringify-error": "error";
|
|
519
523
|
readonly "@sarj/no-impossible-zod-literal-bounds": "error";
|
|
520
524
|
readonly "@sarj/no-in-operator-on-built-in-collections": "error";
|
|
@@ -829,6 +833,7 @@ declare const STRICT_RULES: {
|
|
|
829
833
|
readonly "@sarj/no-hand-rolled-sleep": "error";
|
|
830
834
|
readonly "@sarj/no-hand-rolled-spinner": "error";
|
|
831
835
|
readonly "@sarj/no-insecure-random-id": "error";
|
|
836
|
+
readonly "@sarj/no-exception-text-in-5xx-response": "warn";
|
|
832
837
|
readonly "@sarj/no-json-stringify-error": "error";
|
|
833
838
|
readonly "@sarj/no-impossible-zod-literal-bounds": "error";
|
|
834
839
|
readonly "@sarj/no-in-operator-on-built-in-collections": "error";
|
|
@@ -981,9 +986,12 @@ declare const PLUGIN: {
|
|
|
981
986
|
readonly "no-hand-rolled-spinner": DocumentedRule<readonly [], "handRolledSpinner">;
|
|
982
987
|
readonly "no-insecure-random-id": DocumentedRule<readonly [], "insecureRandomId">;
|
|
983
988
|
readonly "no-detached-global-fetch": DocumentedRule<readonly [], "detachedGlobalFetch">;
|
|
989
|
+
readonly "no-exception-text-in-5xx-response": DocumentedRule<readonly [], "exceptionText">;
|
|
984
990
|
readonly "no-json-stringify-error": DocumentedRule<readonly [], "noJsonStringifyError">;
|
|
985
991
|
readonly "no-json-stringify-object-equality": DocumentedRule<readonly [], "serializedObjectEquality">;
|
|
986
|
-
readonly "no-impossible-zod-literal-bounds": DocumentedRule<readonly [
|
|
992
|
+
readonly "no-impossible-zod-literal-bounds": DocumentedRule<readonly [{
|
|
993
|
+
readonly delegateRealContradictions?: boolean;
|
|
994
|
+
}?], "impossibleBounds">;
|
|
987
995
|
readonly "no-in-operator-on-built-in-collections": DocumentedRule<readonly [], "ambiguousCollectionIn">;
|
|
988
996
|
readonly "no-redundant-optional-array-default": DocumentedRule<readonly [], "redundantOptionalArrayDefault">;
|
|
989
997
|
readonly "interface-contract-members-private": DocumentedRule<readonly [], "nonContractMemberMustBePrivate">;
|
package/dist/index.d.ts
CHANGED
|
@@ -174,9 +174,12 @@ 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
|
-
readonly "no-impossible-zod-literal-bounds": DocumentedRule<readonly [
|
|
180
|
+
readonly "no-impossible-zod-literal-bounds": DocumentedRule<readonly [{
|
|
181
|
+
readonly delegateRealContradictions?: boolean;
|
|
182
|
+
}?], "impossibleBounds">;
|
|
180
183
|
readonly "no-in-operator-on-built-in-collections": DocumentedRule<readonly [], "ambiguousCollectionIn">;
|
|
181
184
|
readonly "no-redundant-optional-array-default": DocumentedRule<readonly [], "redundantOptionalArrayDefault">;
|
|
182
185
|
readonly "interface-contract-members-private": DocumentedRule<readonly [], "nonContractMemberMustBePrivate">;
|
|
@@ -291,7 +294,7 @@ declare const RULES: {
|
|
|
291
294
|
/** @deprecated All repositories use one policy; retained for import compatibility. */
|
|
292
295
|
declare const APPLICATION_ONLY_RULES: readonly [];
|
|
293
296
|
/** Rules staged as non-blocking warnings while corpus adoption evidence accumulates. */
|
|
294
|
-
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-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"];
|
|
295
298
|
declare const RECOMMENDED_RULES: {
|
|
296
299
|
readonly "@sarj/named-child-schema-type": "error";
|
|
297
300
|
readonly "@sarj/no-conditional-empty-object-spread": "error";
|
|
@@ -515,6 +518,7 @@ declare const RECOMMENDED_RULES: {
|
|
|
515
518
|
readonly "@sarj/no-hand-rolled-sleep": "error";
|
|
516
519
|
readonly "@sarj/no-hand-rolled-spinner": "error";
|
|
517
520
|
readonly "@sarj/no-insecure-random-id": "error";
|
|
521
|
+
readonly "@sarj/no-exception-text-in-5xx-response": "warn";
|
|
518
522
|
readonly "@sarj/no-json-stringify-error": "error";
|
|
519
523
|
readonly "@sarj/no-impossible-zod-literal-bounds": "error";
|
|
520
524
|
readonly "@sarj/no-in-operator-on-built-in-collections": "error";
|
|
@@ -829,6 +833,7 @@ declare const STRICT_RULES: {
|
|
|
829
833
|
readonly "@sarj/no-hand-rolled-sleep": "error";
|
|
830
834
|
readonly "@sarj/no-hand-rolled-spinner": "error";
|
|
831
835
|
readonly "@sarj/no-insecure-random-id": "error";
|
|
836
|
+
readonly "@sarj/no-exception-text-in-5xx-response": "warn";
|
|
832
837
|
readonly "@sarj/no-json-stringify-error": "error";
|
|
833
838
|
readonly "@sarj/no-impossible-zod-literal-bounds": "error";
|
|
834
839
|
readonly "@sarj/no-in-operator-on-built-in-collections": "error";
|
|
@@ -981,9 +986,12 @@ declare const PLUGIN: {
|
|
|
981
986
|
readonly "no-hand-rolled-spinner": DocumentedRule<readonly [], "handRolledSpinner">;
|
|
982
987
|
readonly "no-insecure-random-id": DocumentedRule<readonly [], "insecureRandomId">;
|
|
983
988
|
readonly "no-detached-global-fetch": DocumentedRule<readonly [], "detachedGlobalFetch">;
|
|
989
|
+
readonly "no-exception-text-in-5xx-response": DocumentedRule<readonly [], "exceptionText">;
|
|
984
990
|
readonly "no-json-stringify-error": DocumentedRule<readonly [], "noJsonStringifyError">;
|
|
985
991
|
readonly "no-json-stringify-object-equality": DocumentedRule<readonly [], "serializedObjectEquality">;
|
|
986
|
-
readonly "no-impossible-zod-literal-bounds": DocumentedRule<readonly [
|
|
992
|
+
readonly "no-impossible-zod-literal-bounds": DocumentedRule<readonly [{
|
|
993
|
+
readonly delegateRealContradictions?: boolean;
|
|
994
|
+
}?], "impossibleBounds">;
|
|
987
995
|
readonly "no-in-operator-on-built-in-collections": DocumentedRule<readonly [], "ambiguousCollectionIn">;
|
|
988
996
|
readonly "no-redundant-optional-array-default": DocumentedRule<readonly [], "redundantOptionalArrayDefault">;
|
|
989
997
|
readonly "interface-contract-members-private": DocumentedRule<readonly [], "nonContractMemberMustBePrivate">;
|