@sarj/eslint-plugin 15.16.1 → 15.17.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 +1005 -733
- package/dist/index.d.cts +22 -2
- package/dist/index.d.ts +22 -2
- package/dist/index.js +980 -708
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -266,6 +266,11 @@ declare const RULES: {
|
|
|
266
266
|
memoCallees?: readonly string[];
|
|
267
267
|
minProperties?: number;
|
|
268
268
|
}?], "hoistSchema">;
|
|
269
|
+
readonly "prefer-module-level-refined-schema": DocumentedRule<[], "hoistRefinedSchema">;
|
|
270
|
+
readonly "prefer-multi-value-zod-literal": DocumentedRule<readonly [{
|
|
271
|
+
zodMajorVersion?: 4;
|
|
272
|
+
}], "useMultiValueLiteral">;
|
|
273
|
+
readonly "prefer-named-callback-domain": DocumentedRule<[], "nameCallbackDomain">;
|
|
269
274
|
readonly "prefer-named-complex-return-type": DocumentedRule<[], "nameComplexReturnType">;
|
|
270
275
|
readonly "prefer-native-random-uuid": DocumentedRule<readonly [], "preferNative" | "replaceWithNative">;
|
|
271
276
|
readonly "prefer-node-crypto-hash": DocumentedRule<readonly [], "preferNodeCryptoHash">;
|
|
@@ -304,7 +309,7 @@ declare const RULES: {
|
|
|
304
309
|
/** Rules registered for application-profile configs but intentionally absent from general presets. */
|
|
305
310
|
declare const APPLICATION_ONLY_RULES: readonly ["no-restricted-library-load", "prefer-native-random-uuid", "prefer-shadcn-primitives"];
|
|
306
311
|
/** Rules staged as non-blocking warnings while corpus adoption evidence accumulates. */
|
|
307
|
-
declare const ADVISORY_RULES: readonly ["@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/require-interface-for-exported-class", "@sarj/require-pascal-case-zod-schema-name", "@sarj/require-sql-access-class", "@sarj/sole-export-matches-filename"];
|
|
312
|
+
declare const ADVISORY_RULES: readonly ["@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-shared-zod-enum", "@sarj/prefer-switch-for-repeated-equality", "@sarj/require-interface-for-exported-class", "@sarj/require-pascal-case-zod-schema-name", "@sarj/require-sql-access-class", "@sarj/sole-export-matches-filename"];
|
|
308
313
|
declare const RECOMMENDED_RULES: {
|
|
309
314
|
readonly "@sarj/interface-contract-members-private": "error";
|
|
310
315
|
readonly "@sarj/iac-source-coupled-test": "error";
|
|
@@ -360,6 +365,11 @@ declare const RECOMMENDED_RULES: {
|
|
|
360
365
|
readonly "@sarj/prefer-immutable-module-constant": "error";
|
|
361
366
|
readonly "@sarj/prefer-module-level-constant": "error";
|
|
362
367
|
readonly "@sarj/prefer-module-level-schema": "error";
|
|
368
|
+
readonly "@sarj/prefer-module-level-refined-schema": "warn";
|
|
369
|
+
readonly "@sarj/prefer-multi-value-zod-literal": readonly ["warn", {
|
|
370
|
+
readonly zodMajorVersion: 4;
|
|
371
|
+
}];
|
|
372
|
+
readonly "@sarj/prefer-named-callback-domain": "warn";
|
|
363
373
|
readonly "@sarj/prefer-named-complex-return-type": "warn";
|
|
364
374
|
readonly "@sarj/prefer-node-crypto-hash": "warn";
|
|
365
375
|
readonly "@sarj/prefer-node-fs-promises": "warn";
|
|
@@ -451,6 +461,11 @@ declare const STRICT_RULES: {
|
|
|
451
461
|
readonly "@sarj/prefer-immutable-module-constant": "error";
|
|
452
462
|
readonly "@sarj/prefer-module-level-constant": "error";
|
|
453
463
|
readonly "@sarj/prefer-module-level-schema": "error";
|
|
464
|
+
readonly "@sarj/prefer-module-level-refined-schema": "warn";
|
|
465
|
+
readonly "@sarj/prefer-multi-value-zod-literal": readonly ["warn", {
|
|
466
|
+
readonly zodMajorVersion: 4;
|
|
467
|
+
}];
|
|
468
|
+
readonly "@sarj/prefer-named-callback-domain": "warn";
|
|
454
469
|
readonly "@sarj/prefer-named-complex-return-type": "warn";
|
|
455
470
|
readonly "@sarj/prefer-node-crypto-hash": "warn";
|
|
456
471
|
readonly "@sarj/prefer-node-fs-promises": "warn";
|
|
@@ -491,7 +506,7 @@ type FlatPreset = {
|
|
|
491
506
|
declare const PLUGIN: {
|
|
492
507
|
readonly meta: {
|
|
493
508
|
readonly name: "@sarj/eslint-plugin";
|
|
494
|
-
readonly version: "15.
|
|
509
|
+
readonly version: "15.17.0";
|
|
495
510
|
};
|
|
496
511
|
readonly rules: {
|
|
497
512
|
readonly "iac-source-coupled-test": DocumentedRule<readonly [], "rawSourceOracle">;
|
|
@@ -571,6 +586,11 @@ declare const PLUGIN: {
|
|
|
571
586
|
memoCallees?: readonly string[];
|
|
572
587
|
minProperties?: number;
|
|
573
588
|
}?], "hoistSchema">;
|
|
589
|
+
readonly "prefer-module-level-refined-schema": DocumentedRule<[], "hoistRefinedSchema">;
|
|
590
|
+
readonly "prefer-multi-value-zod-literal": DocumentedRule<readonly [{
|
|
591
|
+
zodMajorVersion?: 4;
|
|
592
|
+
}], "useMultiValueLiteral">;
|
|
593
|
+
readonly "prefer-named-callback-domain": DocumentedRule<[], "nameCallbackDomain">;
|
|
574
594
|
readonly "prefer-named-complex-return-type": DocumentedRule<[], "nameComplexReturnType">;
|
|
575
595
|
readonly "prefer-native-random-uuid": DocumentedRule<readonly [], "preferNative" | "replaceWithNative">;
|
|
576
596
|
readonly "prefer-node-crypto-hash": DocumentedRule<readonly [], "preferNodeCryptoHash">;
|
package/dist/index.d.ts
CHANGED
|
@@ -266,6 +266,11 @@ declare const RULES: {
|
|
|
266
266
|
memoCallees?: readonly string[];
|
|
267
267
|
minProperties?: number;
|
|
268
268
|
}?], "hoistSchema">;
|
|
269
|
+
readonly "prefer-module-level-refined-schema": DocumentedRule<[], "hoistRefinedSchema">;
|
|
270
|
+
readonly "prefer-multi-value-zod-literal": DocumentedRule<readonly [{
|
|
271
|
+
zodMajorVersion?: 4;
|
|
272
|
+
}], "useMultiValueLiteral">;
|
|
273
|
+
readonly "prefer-named-callback-domain": DocumentedRule<[], "nameCallbackDomain">;
|
|
269
274
|
readonly "prefer-named-complex-return-type": DocumentedRule<[], "nameComplexReturnType">;
|
|
270
275
|
readonly "prefer-native-random-uuid": DocumentedRule<readonly [], "preferNative" | "replaceWithNative">;
|
|
271
276
|
readonly "prefer-node-crypto-hash": DocumentedRule<readonly [], "preferNodeCryptoHash">;
|
|
@@ -304,7 +309,7 @@ declare const RULES: {
|
|
|
304
309
|
/** Rules registered for application-profile configs but intentionally absent from general presets. */
|
|
305
310
|
declare const APPLICATION_ONLY_RULES: readonly ["no-restricted-library-load", "prefer-native-random-uuid", "prefer-shadcn-primitives"];
|
|
306
311
|
/** Rules staged as non-blocking warnings while corpus adoption evidence accumulates. */
|
|
307
|
-
declare const ADVISORY_RULES: readonly ["@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/require-interface-for-exported-class", "@sarj/require-pascal-case-zod-schema-name", "@sarj/require-sql-access-class", "@sarj/sole-export-matches-filename"];
|
|
312
|
+
declare const ADVISORY_RULES: readonly ["@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-shared-zod-enum", "@sarj/prefer-switch-for-repeated-equality", "@sarj/require-interface-for-exported-class", "@sarj/require-pascal-case-zod-schema-name", "@sarj/require-sql-access-class", "@sarj/sole-export-matches-filename"];
|
|
308
313
|
declare const RECOMMENDED_RULES: {
|
|
309
314
|
readonly "@sarj/interface-contract-members-private": "error";
|
|
310
315
|
readonly "@sarj/iac-source-coupled-test": "error";
|
|
@@ -360,6 +365,11 @@ declare const RECOMMENDED_RULES: {
|
|
|
360
365
|
readonly "@sarj/prefer-immutable-module-constant": "error";
|
|
361
366
|
readonly "@sarj/prefer-module-level-constant": "error";
|
|
362
367
|
readonly "@sarj/prefer-module-level-schema": "error";
|
|
368
|
+
readonly "@sarj/prefer-module-level-refined-schema": "warn";
|
|
369
|
+
readonly "@sarj/prefer-multi-value-zod-literal": readonly ["warn", {
|
|
370
|
+
readonly zodMajorVersion: 4;
|
|
371
|
+
}];
|
|
372
|
+
readonly "@sarj/prefer-named-callback-domain": "warn";
|
|
363
373
|
readonly "@sarj/prefer-named-complex-return-type": "warn";
|
|
364
374
|
readonly "@sarj/prefer-node-crypto-hash": "warn";
|
|
365
375
|
readonly "@sarj/prefer-node-fs-promises": "warn";
|
|
@@ -451,6 +461,11 @@ declare const STRICT_RULES: {
|
|
|
451
461
|
readonly "@sarj/prefer-immutable-module-constant": "error";
|
|
452
462
|
readonly "@sarj/prefer-module-level-constant": "error";
|
|
453
463
|
readonly "@sarj/prefer-module-level-schema": "error";
|
|
464
|
+
readonly "@sarj/prefer-module-level-refined-schema": "warn";
|
|
465
|
+
readonly "@sarj/prefer-multi-value-zod-literal": readonly ["warn", {
|
|
466
|
+
readonly zodMajorVersion: 4;
|
|
467
|
+
}];
|
|
468
|
+
readonly "@sarj/prefer-named-callback-domain": "warn";
|
|
454
469
|
readonly "@sarj/prefer-named-complex-return-type": "warn";
|
|
455
470
|
readonly "@sarj/prefer-node-crypto-hash": "warn";
|
|
456
471
|
readonly "@sarj/prefer-node-fs-promises": "warn";
|
|
@@ -491,7 +506,7 @@ type FlatPreset = {
|
|
|
491
506
|
declare const PLUGIN: {
|
|
492
507
|
readonly meta: {
|
|
493
508
|
readonly name: "@sarj/eslint-plugin";
|
|
494
|
-
readonly version: "15.
|
|
509
|
+
readonly version: "15.17.0";
|
|
495
510
|
};
|
|
496
511
|
readonly rules: {
|
|
497
512
|
readonly "iac-source-coupled-test": DocumentedRule<readonly [], "rawSourceOracle">;
|
|
@@ -571,6 +586,11 @@ declare const PLUGIN: {
|
|
|
571
586
|
memoCallees?: readonly string[];
|
|
572
587
|
minProperties?: number;
|
|
573
588
|
}?], "hoistSchema">;
|
|
589
|
+
readonly "prefer-module-level-refined-schema": DocumentedRule<[], "hoistRefinedSchema">;
|
|
590
|
+
readonly "prefer-multi-value-zod-literal": DocumentedRule<readonly [{
|
|
591
|
+
zodMajorVersion?: 4;
|
|
592
|
+
}], "useMultiValueLiteral">;
|
|
593
|
+
readonly "prefer-named-callback-domain": DocumentedRule<[], "nameCallbackDomain">;
|
|
574
594
|
readonly "prefer-named-complex-return-type": DocumentedRule<[], "nameComplexReturnType">;
|
|
575
595
|
readonly "prefer-native-random-uuid": DocumentedRule<readonly [], "preferNative" | "replaceWithNative">;
|
|
576
596
|
readonly "prefer-node-crypto-hash": DocumentedRule<readonly [], "preferNodeCryptoHash">;
|