@sarj/eslint-plugin 15.6.9 → 15.8.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.d.cts CHANGED
@@ -188,6 +188,7 @@ declare const renamedRules: {
188
188
  };
189
189
 
190
190
  declare const rules: {
191
+ readonly "iac-source-coupled-test": DocumentedRule<readonly [], "rawSourceOracle">;
191
192
  readonly "duplicate-test-body": DocumentedRule<readonly [], "duplicateTestBody">;
192
193
  readonly "enforce-file-structure": DocumentedRule<readonly [], "importsFirst" | "useServerDirective">;
193
194
  readonly "no-client-side-data-fetching": DocumentedRule<readonly [], "noClientFetch">;
@@ -207,6 +208,7 @@ declare const rules: {
207
208
  readonly "no-json-stringify-error": DocumentedRule<readonly [], "noJsonStringifyError">;
208
209
  readonly "no-impossible-zod-literal-bounds": DocumentedRule<readonly [], "impossibleBounds">;
209
210
  readonly "no-log-only-catch": DocumentedRule<readonly [LoggingOptions?], "noLogOnlyCatch" | "emptyCatch">;
211
+ readonly "no-bare-return-from-test-catch": DocumentedRule<readonly [], "bareReturnFromTestCatch">;
210
212
  readonly "no-long-comment": DocumentedRule<readonly [], "tooLong">;
211
213
  readonly "no-vague-suppression-description": DocumentedRule<readonly [], "vagueDescription">;
212
214
  readonly "no-generic-single-export-module": DocumentedRule<[], "genericSingleExport">;
@@ -262,6 +264,7 @@ declare const rules: {
262
264
  }?], "rawPalette" | "arbitraryColor" | "inlineColor">;
263
265
  readonly "prefer-server-actions": DocumentedRule<readonly [], "preferServerAction">;
264
266
  readonly "prefer-whole-object-assertion": DocumentedRule<readonly [], "combineAssertions" | "assertArrayOnce">;
267
+ readonly "repeated-static-call-cases": DocumentedRule<readonly [], "repeatedStaticCallCases">;
265
268
  readonly "prefer-zod-infer": DocumentedRule<readonly [{
266
269
  ignoreTypeNames?: readonly string[];
267
270
  requireIdenticalShape?: boolean;
@@ -283,8 +286,9 @@ declare const rules: {
283
286
  /** Rules registered for application-profile configs but intentionally absent from general presets. */
284
287
  declare const applicationOnlyRules: readonly ["no-restricted-library-load", "prefer-native-random-uuid", "prefer-shadcn-primitives"];
285
288
  /** Calibrated rules that intentionally remain warnings until consumer-corpus precision is proven. */
286
- declare const advisoryRules: readonly ["no-vague-suppression-description", "source-coupled-test"];
289
+ declare const advisoryRules: readonly ["no-bare-return-from-test-catch", "no-vague-suppression-description", "iac-source-coupled-test", "repeated-static-call-cases", "source-coupled-test"];
287
290
  declare const recommendedRules: {
291
+ readonly "@sarj/iac-source-coupled-test": "warn";
288
292
  readonly "@sarj/duplicate-test-body": "error";
289
293
  readonly "@sarj/enforce-file-structure": "error";
290
294
  readonly "@sarj/no-client-side-data-fetching": "error";
@@ -300,6 +304,7 @@ declare const recommendedRules: {
300
304
  readonly "@sarj/no-json-stringify-error": "error";
301
305
  readonly "@sarj/no-impossible-zod-literal-bounds": "error";
302
306
  readonly "@sarj/no-log-only-catch": "error";
307
+ readonly "@sarj/no-bare-return-from-test-catch": "warn";
303
308
  readonly "@sarj/no-long-comment": "error";
304
309
  readonly "@sarj/no-vague-suppression-description": "warn";
305
310
  readonly "@sarj/no-generic-single-export-module": "error";
@@ -338,6 +343,7 @@ declare const recommendedRules: {
338
343
  }];
339
344
  readonly "@sarj/prefer-server-actions": "error";
340
345
  readonly "@sarj/prefer-whole-object-assertion": "error";
346
+ readonly "@sarj/repeated-static-call-cases": "warn";
341
347
  readonly "@sarj/prefer-zod-infer": "error";
342
348
  readonly "@sarj/require-assert-never": "error";
343
349
  readonly "@sarj/require-fetch-timeout": "error";
@@ -350,6 +356,7 @@ declare const recommendedRules: {
350
356
  readonly "@sarj/zod-naming-convention": "error";
351
357
  };
352
358
  declare const strictRules: {
359
+ readonly "@sarj/iac-source-coupled-test": "warn";
353
360
  readonly "@sarj/duplicate-test-body": "error";
354
361
  readonly "@sarj/enforce-file-structure": "error";
355
362
  readonly "@sarj/no-client-side-data-fetching": "error";
@@ -366,6 +373,7 @@ declare const strictRules: {
366
373
  readonly "@sarj/no-json-stringify-error": "error";
367
374
  readonly "@sarj/no-impossible-zod-literal-bounds": "error";
368
375
  readonly "@sarj/no-log-only-catch": "error";
376
+ readonly "@sarj/no-bare-return-from-test-catch": "warn";
369
377
  readonly "@sarj/no-long-comment": "error";
370
378
  readonly "@sarj/no-vague-suppression-description": "warn";
371
379
  readonly "@sarj/no-generic-single-export-module": "error";
@@ -407,6 +415,7 @@ declare const strictRules: {
407
415
  }];
408
416
  readonly "@sarj/prefer-server-actions": "error";
409
417
  readonly "@sarj/prefer-whole-object-assertion": "error";
418
+ readonly "@sarj/repeated-static-call-cases": "warn";
410
419
  readonly "@sarj/prefer-zod-infer": "error";
411
420
  readonly "@sarj/require-assert-never": "error";
412
421
  readonly "@sarj/require-fetch-timeout": "error";
@@ -426,9 +435,10 @@ type FlatPreset = {
426
435
  declare const plugin: {
427
436
  readonly meta: {
428
437
  readonly name: "@sarj/eslint-plugin";
429
- readonly version: "15.6.9";
438
+ readonly version: "15.8.0";
430
439
  };
431
440
  readonly rules: {
441
+ readonly "iac-source-coupled-test": DocumentedRule<readonly [], "rawSourceOracle">;
432
442
  readonly "duplicate-test-body": DocumentedRule<readonly [], "duplicateTestBody">;
433
443
  readonly "enforce-file-structure": DocumentedRule<readonly [], "importsFirst" | "useServerDirective">;
434
444
  readonly "no-client-side-data-fetching": DocumentedRule<readonly [], "noClientFetch">;
@@ -448,6 +458,7 @@ declare const plugin: {
448
458
  readonly "no-json-stringify-error": DocumentedRule<readonly [], "noJsonStringifyError">;
449
459
  readonly "no-impossible-zod-literal-bounds": DocumentedRule<readonly [], "impossibleBounds">;
450
460
  readonly "no-log-only-catch": DocumentedRule<readonly [LoggingOptions?], "noLogOnlyCatch" | "emptyCatch">;
461
+ readonly "no-bare-return-from-test-catch": DocumentedRule<readonly [], "bareReturnFromTestCatch">;
451
462
  readonly "no-long-comment": DocumentedRule<readonly [], "tooLong">;
452
463
  readonly "no-vague-suppression-description": DocumentedRule<readonly [], "vagueDescription">;
453
464
  readonly "no-generic-single-export-module": DocumentedRule<[], "genericSingleExport">;
@@ -503,6 +514,7 @@ declare const plugin: {
503
514
  }?], "rawPalette" | "arbitraryColor" | "inlineColor">;
504
515
  readonly "prefer-server-actions": DocumentedRule<readonly [], "preferServerAction">;
505
516
  readonly "prefer-whole-object-assertion": DocumentedRule<readonly [], "combineAssertions" | "assertArrayOnce">;
517
+ readonly "repeated-static-call-cases": DocumentedRule<readonly [], "repeatedStaticCallCases">;
506
518
  readonly "prefer-zod-infer": DocumentedRule<readonly [{
507
519
  ignoreTypeNames?: readonly string[];
508
520
  requireIdenticalShape?: boolean;
package/dist/index.d.ts CHANGED
@@ -188,6 +188,7 @@ declare const renamedRules: {
188
188
  };
189
189
 
190
190
  declare const rules: {
191
+ readonly "iac-source-coupled-test": DocumentedRule<readonly [], "rawSourceOracle">;
191
192
  readonly "duplicate-test-body": DocumentedRule<readonly [], "duplicateTestBody">;
192
193
  readonly "enforce-file-structure": DocumentedRule<readonly [], "importsFirst" | "useServerDirective">;
193
194
  readonly "no-client-side-data-fetching": DocumentedRule<readonly [], "noClientFetch">;
@@ -207,6 +208,7 @@ declare const rules: {
207
208
  readonly "no-json-stringify-error": DocumentedRule<readonly [], "noJsonStringifyError">;
208
209
  readonly "no-impossible-zod-literal-bounds": DocumentedRule<readonly [], "impossibleBounds">;
209
210
  readonly "no-log-only-catch": DocumentedRule<readonly [LoggingOptions?], "noLogOnlyCatch" | "emptyCatch">;
211
+ readonly "no-bare-return-from-test-catch": DocumentedRule<readonly [], "bareReturnFromTestCatch">;
210
212
  readonly "no-long-comment": DocumentedRule<readonly [], "tooLong">;
211
213
  readonly "no-vague-suppression-description": DocumentedRule<readonly [], "vagueDescription">;
212
214
  readonly "no-generic-single-export-module": DocumentedRule<[], "genericSingleExport">;
@@ -262,6 +264,7 @@ declare const rules: {
262
264
  }?], "rawPalette" | "arbitraryColor" | "inlineColor">;
263
265
  readonly "prefer-server-actions": DocumentedRule<readonly [], "preferServerAction">;
264
266
  readonly "prefer-whole-object-assertion": DocumentedRule<readonly [], "combineAssertions" | "assertArrayOnce">;
267
+ readonly "repeated-static-call-cases": DocumentedRule<readonly [], "repeatedStaticCallCases">;
265
268
  readonly "prefer-zod-infer": DocumentedRule<readonly [{
266
269
  ignoreTypeNames?: readonly string[];
267
270
  requireIdenticalShape?: boolean;
@@ -283,8 +286,9 @@ declare const rules: {
283
286
  /** Rules registered for application-profile configs but intentionally absent from general presets. */
284
287
  declare const applicationOnlyRules: readonly ["no-restricted-library-load", "prefer-native-random-uuid", "prefer-shadcn-primitives"];
285
288
  /** Calibrated rules that intentionally remain warnings until consumer-corpus precision is proven. */
286
- declare const advisoryRules: readonly ["no-vague-suppression-description", "source-coupled-test"];
289
+ declare const advisoryRules: readonly ["no-bare-return-from-test-catch", "no-vague-suppression-description", "iac-source-coupled-test", "repeated-static-call-cases", "source-coupled-test"];
287
290
  declare const recommendedRules: {
291
+ readonly "@sarj/iac-source-coupled-test": "warn";
288
292
  readonly "@sarj/duplicate-test-body": "error";
289
293
  readonly "@sarj/enforce-file-structure": "error";
290
294
  readonly "@sarj/no-client-side-data-fetching": "error";
@@ -300,6 +304,7 @@ declare const recommendedRules: {
300
304
  readonly "@sarj/no-json-stringify-error": "error";
301
305
  readonly "@sarj/no-impossible-zod-literal-bounds": "error";
302
306
  readonly "@sarj/no-log-only-catch": "error";
307
+ readonly "@sarj/no-bare-return-from-test-catch": "warn";
303
308
  readonly "@sarj/no-long-comment": "error";
304
309
  readonly "@sarj/no-vague-suppression-description": "warn";
305
310
  readonly "@sarj/no-generic-single-export-module": "error";
@@ -338,6 +343,7 @@ declare const recommendedRules: {
338
343
  }];
339
344
  readonly "@sarj/prefer-server-actions": "error";
340
345
  readonly "@sarj/prefer-whole-object-assertion": "error";
346
+ readonly "@sarj/repeated-static-call-cases": "warn";
341
347
  readonly "@sarj/prefer-zod-infer": "error";
342
348
  readonly "@sarj/require-assert-never": "error";
343
349
  readonly "@sarj/require-fetch-timeout": "error";
@@ -350,6 +356,7 @@ declare const recommendedRules: {
350
356
  readonly "@sarj/zod-naming-convention": "error";
351
357
  };
352
358
  declare const strictRules: {
359
+ readonly "@sarj/iac-source-coupled-test": "warn";
353
360
  readonly "@sarj/duplicate-test-body": "error";
354
361
  readonly "@sarj/enforce-file-structure": "error";
355
362
  readonly "@sarj/no-client-side-data-fetching": "error";
@@ -366,6 +373,7 @@ declare const strictRules: {
366
373
  readonly "@sarj/no-json-stringify-error": "error";
367
374
  readonly "@sarj/no-impossible-zod-literal-bounds": "error";
368
375
  readonly "@sarj/no-log-only-catch": "error";
376
+ readonly "@sarj/no-bare-return-from-test-catch": "warn";
369
377
  readonly "@sarj/no-long-comment": "error";
370
378
  readonly "@sarj/no-vague-suppression-description": "warn";
371
379
  readonly "@sarj/no-generic-single-export-module": "error";
@@ -407,6 +415,7 @@ declare const strictRules: {
407
415
  }];
408
416
  readonly "@sarj/prefer-server-actions": "error";
409
417
  readonly "@sarj/prefer-whole-object-assertion": "error";
418
+ readonly "@sarj/repeated-static-call-cases": "warn";
410
419
  readonly "@sarj/prefer-zod-infer": "error";
411
420
  readonly "@sarj/require-assert-never": "error";
412
421
  readonly "@sarj/require-fetch-timeout": "error";
@@ -426,9 +435,10 @@ type FlatPreset = {
426
435
  declare const plugin: {
427
436
  readonly meta: {
428
437
  readonly name: "@sarj/eslint-plugin";
429
- readonly version: "15.6.9";
438
+ readonly version: "15.8.0";
430
439
  };
431
440
  readonly rules: {
441
+ readonly "iac-source-coupled-test": DocumentedRule<readonly [], "rawSourceOracle">;
432
442
  readonly "duplicate-test-body": DocumentedRule<readonly [], "duplicateTestBody">;
433
443
  readonly "enforce-file-structure": DocumentedRule<readonly [], "importsFirst" | "useServerDirective">;
434
444
  readonly "no-client-side-data-fetching": DocumentedRule<readonly [], "noClientFetch">;
@@ -448,6 +458,7 @@ declare const plugin: {
448
458
  readonly "no-json-stringify-error": DocumentedRule<readonly [], "noJsonStringifyError">;
449
459
  readonly "no-impossible-zod-literal-bounds": DocumentedRule<readonly [], "impossibleBounds">;
450
460
  readonly "no-log-only-catch": DocumentedRule<readonly [LoggingOptions?], "noLogOnlyCatch" | "emptyCatch">;
461
+ readonly "no-bare-return-from-test-catch": DocumentedRule<readonly [], "bareReturnFromTestCatch">;
451
462
  readonly "no-long-comment": DocumentedRule<readonly [], "tooLong">;
452
463
  readonly "no-vague-suppression-description": DocumentedRule<readonly [], "vagueDescription">;
453
464
  readonly "no-generic-single-export-module": DocumentedRule<[], "genericSingleExport">;
@@ -503,6 +514,7 @@ declare const plugin: {
503
514
  }?], "rawPalette" | "arbitraryColor" | "inlineColor">;
504
515
  readonly "prefer-server-actions": DocumentedRule<readonly [], "preferServerAction">;
505
516
  readonly "prefer-whole-object-assertion": DocumentedRule<readonly [], "combineAssertions" | "assertArrayOnce">;
517
+ readonly "repeated-static-call-cases": DocumentedRule<readonly [], "repeatedStaticCallCases">;
506
518
  readonly "prefer-zod-infer": DocumentedRule<readonly [{
507
519
  ignoreTypeNames?: readonly string[];
508
520
  requireIdenticalShape?: boolean;