@sarj/eslint-plugin 15.27.0 → 15.28.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 +970 -840
- package/dist/index.d.cts +6 -2
- package/dist/index.d.ts +6 -2
- package/dist/index.js +968 -838
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -244,6 +244,7 @@ declare const RULES: {
|
|
|
244
244
|
zodMajorVersion?: 4;
|
|
245
245
|
}], "useMultiValueLiteral">;
|
|
246
246
|
readonly "prefer-named-callback-domain": DocumentedRule<[], "nameCallbackDomain">;
|
|
247
|
+
readonly "prefer-nominal-id-types": DocumentedRule<[], "preferNominalIds">;
|
|
247
248
|
readonly "prefer-named-complex-return-type": DocumentedRule<[], "nameComplexReturnType">;
|
|
248
249
|
readonly "prefer-native-random-uuid": DocumentedRule<readonly [], "preferNative" | "replaceWithNative">;
|
|
249
250
|
readonly "prefer-node-crypto-hash": DocumentedRule<readonly [], "preferNodeCryptoHash">;
|
|
@@ -284,7 +285,7 @@ declare const RULES: {
|
|
|
284
285
|
/** @deprecated All repositories use one policy; retained for import compatibility. */
|
|
285
286
|
declare const APPLICATION_ONLY_RULES: readonly [];
|
|
286
287
|
/** Rules staged as non-blocking warnings while corpus adoption evidence accumulates. */
|
|
287
|
-
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"];
|
|
288
|
+
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-nominal-id-types", "@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"];
|
|
288
289
|
declare const RECOMMENDED_RULES: {
|
|
289
290
|
readonly "@sarj/no-conditional-empty-object-spread": "error";
|
|
290
291
|
readonly "@sarj/prefer-typed-reflection": "error";
|
|
@@ -560,6 +561,7 @@ declare const RECOMMENDED_RULES: {
|
|
|
560
561
|
readonly zodMajorVersion: 4;
|
|
561
562
|
}];
|
|
562
563
|
readonly "@sarj/prefer-named-callback-domain": "error";
|
|
564
|
+
readonly "@sarj/prefer-nominal-id-types": "warn";
|
|
563
565
|
readonly "@sarj/prefer-named-complex-return-type": "warn";
|
|
564
566
|
readonly "@sarj/prefer-node-crypto-hash": "warn";
|
|
565
567
|
readonly "@sarj/prefer-node-fs-promises": "warn";
|
|
@@ -872,6 +874,7 @@ declare const STRICT_RULES: {
|
|
|
872
874
|
readonly zodMajorVersion: 4;
|
|
873
875
|
}];
|
|
874
876
|
readonly "@sarj/prefer-named-callback-domain": "error";
|
|
877
|
+
readonly "@sarj/prefer-nominal-id-types": "warn";
|
|
875
878
|
readonly "@sarj/prefer-named-complex-return-type": "warn";
|
|
876
879
|
readonly "@sarj/prefer-node-crypto-hash": "warn";
|
|
877
880
|
readonly "@sarj/prefer-node-fs-promises": "warn";
|
|
@@ -913,7 +916,7 @@ type FlatPreset = {
|
|
|
913
916
|
declare const PLUGIN: {
|
|
914
917
|
readonly meta: {
|
|
915
918
|
readonly name: "@sarj/eslint-plugin";
|
|
916
|
-
readonly version: "15.
|
|
919
|
+
readonly version: "15.28.0";
|
|
917
920
|
};
|
|
918
921
|
readonly rules: {
|
|
919
922
|
readonly "no-conditional-empty-object-spread": DocumentedRule<[], "avoid">;
|
|
@@ -1034,6 +1037,7 @@ declare const PLUGIN: {
|
|
|
1034
1037
|
zodMajorVersion?: 4;
|
|
1035
1038
|
}], "useMultiValueLiteral">;
|
|
1036
1039
|
readonly "prefer-named-callback-domain": DocumentedRule<[], "nameCallbackDomain">;
|
|
1040
|
+
readonly "prefer-nominal-id-types": DocumentedRule<[], "preferNominalIds">;
|
|
1037
1041
|
readonly "prefer-named-complex-return-type": DocumentedRule<[], "nameComplexReturnType">;
|
|
1038
1042
|
readonly "prefer-native-random-uuid": DocumentedRule<readonly [], "preferNative" | "replaceWithNative">;
|
|
1039
1043
|
readonly "prefer-node-crypto-hash": DocumentedRule<readonly [], "preferNodeCryptoHash">;
|
package/dist/index.d.ts
CHANGED
|
@@ -244,6 +244,7 @@ declare const RULES: {
|
|
|
244
244
|
zodMajorVersion?: 4;
|
|
245
245
|
}], "useMultiValueLiteral">;
|
|
246
246
|
readonly "prefer-named-callback-domain": DocumentedRule<[], "nameCallbackDomain">;
|
|
247
|
+
readonly "prefer-nominal-id-types": DocumentedRule<[], "preferNominalIds">;
|
|
247
248
|
readonly "prefer-named-complex-return-type": DocumentedRule<[], "nameComplexReturnType">;
|
|
248
249
|
readonly "prefer-native-random-uuid": DocumentedRule<readonly [], "preferNative" | "replaceWithNative">;
|
|
249
250
|
readonly "prefer-node-crypto-hash": DocumentedRule<readonly [], "preferNodeCryptoHash">;
|
|
@@ -284,7 +285,7 @@ declare const RULES: {
|
|
|
284
285
|
/** @deprecated All repositories use one policy; retained for import compatibility. */
|
|
285
286
|
declare const APPLICATION_ONLY_RULES: readonly [];
|
|
286
287
|
/** Rules staged as non-blocking warnings while corpus adoption evidence accumulates. */
|
|
287
|
-
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"];
|
|
288
|
+
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-nominal-id-types", "@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"];
|
|
288
289
|
declare const RECOMMENDED_RULES: {
|
|
289
290
|
readonly "@sarj/no-conditional-empty-object-spread": "error";
|
|
290
291
|
readonly "@sarj/prefer-typed-reflection": "error";
|
|
@@ -560,6 +561,7 @@ declare const RECOMMENDED_RULES: {
|
|
|
560
561
|
readonly zodMajorVersion: 4;
|
|
561
562
|
}];
|
|
562
563
|
readonly "@sarj/prefer-named-callback-domain": "error";
|
|
564
|
+
readonly "@sarj/prefer-nominal-id-types": "warn";
|
|
563
565
|
readonly "@sarj/prefer-named-complex-return-type": "warn";
|
|
564
566
|
readonly "@sarj/prefer-node-crypto-hash": "warn";
|
|
565
567
|
readonly "@sarj/prefer-node-fs-promises": "warn";
|
|
@@ -872,6 +874,7 @@ declare const STRICT_RULES: {
|
|
|
872
874
|
readonly zodMajorVersion: 4;
|
|
873
875
|
}];
|
|
874
876
|
readonly "@sarj/prefer-named-callback-domain": "error";
|
|
877
|
+
readonly "@sarj/prefer-nominal-id-types": "warn";
|
|
875
878
|
readonly "@sarj/prefer-named-complex-return-type": "warn";
|
|
876
879
|
readonly "@sarj/prefer-node-crypto-hash": "warn";
|
|
877
880
|
readonly "@sarj/prefer-node-fs-promises": "warn";
|
|
@@ -913,7 +916,7 @@ type FlatPreset = {
|
|
|
913
916
|
declare const PLUGIN: {
|
|
914
917
|
readonly meta: {
|
|
915
918
|
readonly name: "@sarj/eslint-plugin";
|
|
916
|
-
readonly version: "15.
|
|
919
|
+
readonly version: "15.28.0";
|
|
917
920
|
};
|
|
918
921
|
readonly rules: {
|
|
919
922
|
readonly "no-conditional-empty-object-spread": DocumentedRule<[], "avoid">;
|
|
@@ -1034,6 +1037,7 @@ declare const PLUGIN: {
|
|
|
1034
1037
|
zodMajorVersion?: 4;
|
|
1035
1038
|
}], "useMultiValueLiteral">;
|
|
1036
1039
|
readonly "prefer-named-callback-domain": DocumentedRule<[], "nameCallbackDomain">;
|
|
1040
|
+
readonly "prefer-nominal-id-types": DocumentedRule<[], "preferNominalIds">;
|
|
1037
1041
|
readonly "prefer-named-complex-return-type": DocumentedRule<[], "nameComplexReturnType">;
|
|
1038
1042
|
readonly "prefer-native-random-uuid": DocumentedRule<readonly [], "preferNative" | "replaceWithNative">;
|
|
1039
1043
|
readonly "prefer-node-crypto-hash": DocumentedRule<readonly [], "preferNodeCryptoHash">;
|