@sarj/eslint-plugin 15.7.0 → 15.8.1

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.d.cts CHANGED
@@ -208,6 +208,7 @@ declare const rules: {
208
208
  readonly "no-json-stringify-error": DocumentedRule<readonly [], "noJsonStringifyError">;
209
209
  readonly "no-impossible-zod-literal-bounds": DocumentedRule<readonly [], "impossibleBounds">;
210
210
  readonly "no-log-only-catch": DocumentedRule<readonly [LoggingOptions?], "noLogOnlyCatch" | "emptyCatch">;
211
+ readonly "no-bare-return-from-test-catch": DocumentedRule<readonly [], "bareReturnFromTestCatch">;
211
212
  readonly "no-long-comment": DocumentedRule<readonly [], "tooLong">;
212
213
  readonly "no-vague-suppression-description": DocumentedRule<readonly [], "vagueDescription">;
213
214
  readonly "no-generic-single-export-module": DocumentedRule<[], "genericSingleExport">;
@@ -263,6 +264,7 @@ declare const rules: {
263
264
  }?], "rawPalette" | "arbitraryColor" | "inlineColor">;
264
265
  readonly "prefer-server-actions": DocumentedRule<readonly [], "preferServerAction">;
265
266
  readonly "prefer-whole-object-assertion": DocumentedRule<readonly [], "combineAssertions" | "assertArrayOnce">;
267
+ readonly "repeated-static-call-cases": DocumentedRule<readonly [], "repeatedStaticCallCases">;
266
268
  readonly "prefer-zod-infer": DocumentedRule<readonly [{
267
269
  ignoreTypeNames?: readonly string[];
268
270
  requireIdenticalShape?: boolean;
@@ -284,7 +286,7 @@ declare const rules: {
284
286
  /** Rules registered for application-profile configs but intentionally absent from general presets. */
285
287
  declare const applicationOnlyRules: readonly ["no-restricted-library-load", "prefer-native-random-uuid", "prefer-shadcn-primitives"];
286
288
  /** Calibrated rules that intentionally remain warnings until consumer-corpus precision is proven. */
287
- declare const advisoryRules: readonly ["no-vague-suppression-description", "iac-source-coupled-test", "source-coupled-test"];
289
+ declare const advisoryRules: readonly ["no-bare-return-from-test-catch", "iac-source-coupled-test", "repeated-static-call-cases", "source-coupled-test"];
288
290
  declare const recommendedRules: {
289
291
  readonly "@sarj/iac-source-coupled-test": "warn";
290
292
  readonly "@sarj/duplicate-test-body": "error";
@@ -302,8 +304,9 @@ declare const recommendedRules: {
302
304
  readonly "@sarj/no-json-stringify-error": "error";
303
305
  readonly "@sarj/no-impossible-zod-literal-bounds": "error";
304
306
  readonly "@sarj/no-log-only-catch": "error";
307
+ readonly "@sarj/no-bare-return-from-test-catch": "warn";
305
308
  readonly "@sarj/no-long-comment": "error";
306
- readonly "@sarj/no-vague-suppression-description": "warn";
309
+ readonly "@sarj/no-vague-suppression-description": "error";
307
310
  readonly "@sarj/no-generic-single-export-module": "error";
308
311
  readonly "@sarj/no-offset-pagination": "error";
309
312
  readonly "@sarj/no-positional-tuple-return": "error";
@@ -340,6 +343,7 @@ declare const recommendedRules: {
340
343
  }];
341
344
  readonly "@sarj/prefer-server-actions": "error";
342
345
  readonly "@sarj/prefer-whole-object-assertion": "error";
346
+ readonly "@sarj/repeated-static-call-cases": "warn";
343
347
  readonly "@sarj/prefer-zod-infer": "error";
344
348
  readonly "@sarj/require-assert-never": "error";
345
349
  readonly "@sarj/require-fetch-timeout": "error";
@@ -369,8 +373,9 @@ declare const strictRules: {
369
373
  readonly "@sarj/no-json-stringify-error": "error";
370
374
  readonly "@sarj/no-impossible-zod-literal-bounds": "error";
371
375
  readonly "@sarj/no-log-only-catch": "error";
376
+ readonly "@sarj/no-bare-return-from-test-catch": "warn";
372
377
  readonly "@sarj/no-long-comment": "error";
373
- readonly "@sarj/no-vague-suppression-description": "warn";
378
+ readonly "@sarj/no-vague-suppression-description": "error";
374
379
  readonly "@sarj/no-generic-single-export-module": "error";
375
380
  readonly "@sarj/no-offset-pagination": "error";
376
381
  readonly "@sarj/no-positional-tuple-return": "error";
@@ -410,6 +415,7 @@ declare const strictRules: {
410
415
  }];
411
416
  readonly "@sarj/prefer-server-actions": "error";
412
417
  readonly "@sarj/prefer-whole-object-assertion": "error";
418
+ readonly "@sarj/repeated-static-call-cases": "warn";
413
419
  readonly "@sarj/prefer-zod-infer": "error";
414
420
  readonly "@sarj/require-assert-never": "error";
415
421
  readonly "@sarj/require-fetch-timeout": "error";
@@ -429,7 +435,7 @@ type FlatPreset = {
429
435
  declare const plugin: {
430
436
  readonly meta: {
431
437
  readonly name: "@sarj/eslint-plugin";
432
- readonly version: "15.7.0";
438
+ readonly version: "15.8.1";
433
439
  };
434
440
  readonly rules: {
435
441
  readonly "iac-source-coupled-test": DocumentedRule<readonly [], "rawSourceOracle">;
@@ -452,6 +458,7 @@ declare const plugin: {
452
458
  readonly "no-json-stringify-error": DocumentedRule<readonly [], "noJsonStringifyError">;
453
459
  readonly "no-impossible-zod-literal-bounds": DocumentedRule<readonly [], "impossibleBounds">;
454
460
  readonly "no-log-only-catch": DocumentedRule<readonly [LoggingOptions?], "noLogOnlyCatch" | "emptyCatch">;
461
+ readonly "no-bare-return-from-test-catch": DocumentedRule<readonly [], "bareReturnFromTestCatch">;
455
462
  readonly "no-long-comment": DocumentedRule<readonly [], "tooLong">;
456
463
  readonly "no-vague-suppression-description": DocumentedRule<readonly [], "vagueDescription">;
457
464
  readonly "no-generic-single-export-module": DocumentedRule<[], "genericSingleExport">;
@@ -507,6 +514,7 @@ declare const plugin: {
507
514
  }?], "rawPalette" | "arbitraryColor" | "inlineColor">;
508
515
  readonly "prefer-server-actions": DocumentedRule<readonly [], "preferServerAction">;
509
516
  readonly "prefer-whole-object-assertion": DocumentedRule<readonly [], "combineAssertions" | "assertArrayOnce">;
517
+ readonly "repeated-static-call-cases": DocumentedRule<readonly [], "repeatedStaticCallCases">;
510
518
  readonly "prefer-zod-infer": DocumentedRule<readonly [{
511
519
  ignoreTypeNames?: readonly string[];
512
520
  requireIdenticalShape?: boolean;
package/dist/index.d.ts CHANGED
@@ -208,6 +208,7 @@ declare const rules: {
208
208
  readonly "no-json-stringify-error": DocumentedRule<readonly [], "noJsonStringifyError">;
209
209
  readonly "no-impossible-zod-literal-bounds": DocumentedRule<readonly [], "impossibleBounds">;
210
210
  readonly "no-log-only-catch": DocumentedRule<readonly [LoggingOptions?], "noLogOnlyCatch" | "emptyCatch">;
211
+ readonly "no-bare-return-from-test-catch": DocumentedRule<readonly [], "bareReturnFromTestCatch">;
211
212
  readonly "no-long-comment": DocumentedRule<readonly [], "tooLong">;
212
213
  readonly "no-vague-suppression-description": DocumentedRule<readonly [], "vagueDescription">;
213
214
  readonly "no-generic-single-export-module": DocumentedRule<[], "genericSingleExport">;
@@ -263,6 +264,7 @@ declare const rules: {
263
264
  }?], "rawPalette" | "arbitraryColor" | "inlineColor">;
264
265
  readonly "prefer-server-actions": DocumentedRule<readonly [], "preferServerAction">;
265
266
  readonly "prefer-whole-object-assertion": DocumentedRule<readonly [], "combineAssertions" | "assertArrayOnce">;
267
+ readonly "repeated-static-call-cases": DocumentedRule<readonly [], "repeatedStaticCallCases">;
266
268
  readonly "prefer-zod-infer": DocumentedRule<readonly [{
267
269
  ignoreTypeNames?: readonly string[];
268
270
  requireIdenticalShape?: boolean;
@@ -284,7 +286,7 @@ declare const rules: {
284
286
  /** Rules registered for application-profile configs but intentionally absent from general presets. */
285
287
  declare const applicationOnlyRules: readonly ["no-restricted-library-load", "prefer-native-random-uuid", "prefer-shadcn-primitives"];
286
288
  /** Calibrated rules that intentionally remain warnings until consumer-corpus precision is proven. */
287
- declare const advisoryRules: readonly ["no-vague-suppression-description", "iac-source-coupled-test", "source-coupled-test"];
289
+ declare const advisoryRules: readonly ["no-bare-return-from-test-catch", "iac-source-coupled-test", "repeated-static-call-cases", "source-coupled-test"];
288
290
  declare const recommendedRules: {
289
291
  readonly "@sarj/iac-source-coupled-test": "warn";
290
292
  readonly "@sarj/duplicate-test-body": "error";
@@ -302,8 +304,9 @@ declare const recommendedRules: {
302
304
  readonly "@sarj/no-json-stringify-error": "error";
303
305
  readonly "@sarj/no-impossible-zod-literal-bounds": "error";
304
306
  readonly "@sarj/no-log-only-catch": "error";
307
+ readonly "@sarj/no-bare-return-from-test-catch": "warn";
305
308
  readonly "@sarj/no-long-comment": "error";
306
- readonly "@sarj/no-vague-suppression-description": "warn";
309
+ readonly "@sarj/no-vague-suppression-description": "error";
307
310
  readonly "@sarj/no-generic-single-export-module": "error";
308
311
  readonly "@sarj/no-offset-pagination": "error";
309
312
  readonly "@sarj/no-positional-tuple-return": "error";
@@ -340,6 +343,7 @@ declare const recommendedRules: {
340
343
  }];
341
344
  readonly "@sarj/prefer-server-actions": "error";
342
345
  readonly "@sarj/prefer-whole-object-assertion": "error";
346
+ readonly "@sarj/repeated-static-call-cases": "warn";
343
347
  readonly "@sarj/prefer-zod-infer": "error";
344
348
  readonly "@sarj/require-assert-never": "error";
345
349
  readonly "@sarj/require-fetch-timeout": "error";
@@ -369,8 +373,9 @@ declare const strictRules: {
369
373
  readonly "@sarj/no-json-stringify-error": "error";
370
374
  readonly "@sarj/no-impossible-zod-literal-bounds": "error";
371
375
  readonly "@sarj/no-log-only-catch": "error";
376
+ readonly "@sarj/no-bare-return-from-test-catch": "warn";
372
377
  readonly "@sarj/no-long-comment": "error";
373
- readonly "@sarj/no-vague-suppression-description": "warn";
378
+ readonly "@sarj/no-vague-suppression-description": "error";
374
379
  readonly "@sarj/no-generic-single-export-module": "error";
375
380
  readonly "@sarj/no-offset-pagination": "error";
376
381
  readonly "@sarj/no-positional-tuple-return": "error";
@@ -410,6 +415,7 @@ declare const strictRules: {
410
415
  }];
411
416
  readonly "@sarj/prefer-server-actions": "error";
412
417
  readonly "@sarj/prefer-whole-object-assertion": "error";
418
+ readonly "@sarj/repeated-static-call-cases": "warn";
413
419
  readonly "@sarj/prefer-zod-infer": "error";
414
420
  readonly "@sarj/require-assert-never": "error";
415
421
  readonly "@sarj/require-fetch-timeout": "error";
@@ -429,7 +435,7 @@ type FlatPreset = {
429
435
  declare const plugin: {
430
436
  readonly meta: {
431
437
  readonly name: "@sarj/eslint-plugin";
432
- readonly version: "15.7.0";
438
+ readonly version: "15.8.1";
433
439
  };
434
440
  readonly rules: {
435
441
  readonly "iac-source-coupled-test": DocumentedRule<readonly [], "rawSourceOracle">;
@@ -452,6 +458,7 @@ declare const plugin: {
452
458
  readonly "no-json-stringify-error": DocumentedRule<readonly [], "noJsonStringifyError">;
453
459
  readonly "no-impossible-zod-literal-bounds": DocumentedRule<readonly [], "impossibleBounds">;
454
460
  readonly "no-log-only-catch": DocumentedRule<readonly [LoggingOptions?], "noLogOnlyCatch" | "emptyCatch">;
461
+ readonly "no-bare-return-from-test-catch": DocumentedRule<readonly [], "bareReturnFromTestCatch">;
455
462
  readonly "no-long-comment": DocumentedRule<readonly [], "tooLong">;
456
463
  readonly "no-vague-suppression-description": DocumentedRule<readonly [], "vagueDescription">;
457
464
  readonly "no-generic-single-export-module": DocumentedRule<[], "genericSingleExport">;
@@ -507,6 +514,7 @@ declare const plugin: {
507
514
  }?], "rawPalette" | "arbitraryColor" | "inlineColor">;
508
515
  readonly "prefer-server-actions": DocumentedRule<readonly [], "preferServerAction">;
509
516
  readonly "prefer-whole-object-assertion": DocumentedRule<readonly [], "combineAssertions" | "assertArrayOnce">;
517
+ readonly "repeated-static-call-cases": DocumentedRule<readonly [], "repeatedStaticCallCases">;
510
518
  readonly "prefer-zod-infer": DocumentedRule<readonly [{
511
519
  ignoreTypeNames?: readonly string[];
512
520
  requireIdenticalShape?: boolean;