@sarj/eslint-plugin 15.6.8 → 15.7.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 +329 -195
- package/dist/index.d.cts +10 -2
- package/dist/index.d.ts +10 -2
- package/dist/index.js +329 -195
- package/package.json +1 -1
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">;
|
|
@@ -208,6 +209,7 @@ declare const rules: {
|
|
|
208
209
|
readonly "no-impossible-zod-literal-bounds": DocumentedRule<readonly [], "impossibleBounds">;
|
|
209
210
|
readonly "no-log-only-catch": DocumentedRule<readonly [LoggingOptions?], "noLogOnlyCatch" | "emptyCatch">;
|
|
210
211
|
readonly "no-long-comment": DocumentedRule<readonly [], "tooLong">;
|
|
212
|
+
readonly "no-vague-suppression-description": DocumentedRule<readonly [], "vagueDescription">;
|
|
211
213
|
readonly "no-generic-single-export-module": DocumentedRule<[], "genericSingleExport">;
|
|
212
214
|
readonly "no-offset-pagination": DocumentedRule<readonly [], "noOffsetPagination">;
|
|
213
215
|
readonly "no-positional-tuple-return": DocumentedRule<readonly [], "noPositionalTupleReturn">;
|
|
@@ -282,8 +284,9 @@ declare const rules: {
|
|
|
282
284
|
/** Rules registered for application-profile configs but intentionally absent from general presets. */
|
|
283
285
|
declare const applicationOnlyRules: readonly ["no-restricted-library-load", "prefer-native-random-uuid", "prefer-shadcn-primitives"];
|
|
284
286
|
/** Calibrated rules that intentionally remain warnings until consumer-corpus precision is proven. */
|
|
285
|
-
declare const advisoryRules: readonly ["source-coupled-test"];
|
|
287
|
+
declare const advisoryRules: readonly ["no-vague-suppression-description", "iac-source-coupled-test", "source-coupled-test"];
|
|
286
288
|
declare const recommendedRules: {
|
|
289
|
+
readonly "@sarj/iac-source-coupled-test": "warn";
|
|
287
290
|
readonly "@sarj/duplicate-test-body": "error";
|
|
288
291
|
readonly "@sarj/enforce-file-structure": "error";
|
|
289
292
|
readonly "@sarj/no-client-side-data-fetching": "error";
|
|
@@ -300,6 +303,7 @@ declare const recommendedRules: {
|
|
|
300
303
|
readonly "@sarj/no-impossible-zod-literal-bounds": "error";
|
|
301
304
|
readonly "@sarj/no-log-only-catch": "error";
|
|
302
305
|
readonly "@sarj/no-long-comment": "error";
|
|
306
|
+
readonly "@sarj/no-vague-suppression-description": "warn";
|
|
303
307
|
readonly "@sarj/no-generic-single-export-module": "error";
|
|
304
308
|
readonly "@sarj/no-offset-pagination": "error";
|
|
305
309
|
readonly "@sarj/no-positional-tuple-return": "error";
|
|
@@ -348,6 +352,7 @@ declare const recommendedRules: {
|
|
|
348
352
|
readonly "@sarj/zod-naming-convention": "error";
|
|
349
353
|
};
|
|
350
354
|
declare const strictRules: {
|
|
355
|
+
readonly "@sarj/iac-source-coupled-test": "warn";
|
|
351
356
|
readonly "@sarj/duplicate-test-body": "error";
|
|
352
357
|
readonly "@sarj/enforce-file-structure": "error";
|
|
353
358
|
readonly "@sarj/no-client-side-data-fetching": "error";
|
|
@@ -365,6 +370,7 @@ declare const strictRules: {
|
|
|
365
370
|
readonly "@sarj/no-impossible-zod-literal-bounds": "error";
|
|
366
371
|
readonly "@sarj/no-log-only-catch": "error";
|
|
367
372
|
readonly "@sarj/no-long-comment": "error";
|
|
373
|
+
readonly "@sarj/no-vague-suppression-description": "warn";
|
|
368
374
|
readonly "@sarj/no-generic-single-export-module": "error";
|
|
369
375
|
readonly "@sarj/no-offset-pagination": "error";
|
|
370
376
|
readonly "@sarj/no-positional-tuple-return": "error";
|
|
@@ -423,9 +429,10 @@ type FlatPreset = {
|
|
|
423
429
|
declare const plugin: {
|
|
424
430
|
readonly meta: {
|
|
425
431
|
readonly name: "@sarj/eslint-plugin";
|
|
426
|
-
readonly version: "15.
|
|
432
|
+
readonly version: "15.7.0";
|
|
427
433
|
};
|
|
428
434
|
readonly rules: {
|
|
435
|
+
readonly "iac-source-coupled-test": DocumentedRule<readonly [], "rawSourceOracle">;
|
|
429
436
|
readonly "duplicate-test-body": DocumentedRule<readonly [], "duplicateTestBody">;
|
|
430
437
|
readonly "enforce-file-structure": DocumentedRule<readonly [], "importsFirst" | "useServerDirective">;
|
|
431
438
|
readonly "no-client-side-data-fetching": DocumentedRule<readonly [], "noClientFetch">;
|
|
@@ -446,6 +453,7 @@ declare const plugin: {
|
|
|
446
453
|
readonly "no-impossible-zod-literal-bounds": DocumentedRule<readonly [], "impossibleBounds">;
|
|
447
454
|
readonly "no-log-only-catch": DocumentedRule<readonly [LoggingOptions?], "noLogOnlyCatch" | "emptyCatch">;
|
|
448
455
|
readonly "no-long-comment": DocumentedRule<readonly [], "tooLong">;
|
|
456
|
+
readonly "no-vague-suppression-description": DocumentedRule<readonly [], "vagueDescription">;
|
|
449
457
|
readonly "no-generic-single-export-module": DocumentedRule<[], "genericSingleExport">;
|
|
450
458
|
readonly "no-offset-pagination": DocumentedRule<readonly [], "noOffsetPagination">;
|
|
451
459
|
readonly "no-positional-tuple-return": DocumentedRule<readonly [], "noPositionalTupleReturn">;
|
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">;
|
|
@@ -208,6 +209,7 @@ declare const rules: {
|
|
|
208
209
|
readonly "no-impossible-zod-literal-bounds": DocumentedRule<readonly [], "impossibleBounds">;
|
|
209
210
|
readonly "no-log-only-catch": DocumentedRule<readonly [LoggingOptions?], "noLogOnlyCatch" | "emptyCatch">;
|
|
210
211
|
readonly "no-long-comment": DocumentedRule<readonly [], "tooLong">;
|
|
212
|
+
readonly "no-vague-suppression-description": DocumentedRule<readonly [], "vagueDescription">;
|
|
211
213
|
readonly "no-generic-single-export-module": DocumentedRule<[], "genericSingleExport">;
|
|
212
214
|
readonly "no-offset-pagination": DocumentedRule<readonly [], "noOffsetPagination">;
|
|
213
215
|
readonly "no-positional-tuple-return": DocumentedRule<readonly [], "noPositionalTupleReturn">;
|
|
@@ -282,8 +284,9 @@ declare const rules: {
|
|
|
282
284
|
/** Rules registered for application-profile configs but intentionally absent from general presets. */
|
|
283
285
|
declare const applicationOnlyRules: readonly ["no-restricted-library-load", "prefer-native-random-uuid", "prefer-shadcn-primitives"];
|
|
284
286
|
/** Calibrated rules that intentionally remain warnings until consumer-corpus precision is proven. */
|
|
285
|
-
declare const advisoryRules: readonly ["source-coupled-test"];
|
|
287
|
+
declare const advisoryRules: readonly ["no-vague-suppression-description", "iac-source-coupled-test", "source-coupled-test"];
|
|
286
288
|
declare const recommendedRules: {
|
|
289
|
+
readonly "@sarj/iac-source-coupled-test": "warn";
|
|
287
290
|
readonly "@sarj/duplicate-test-body": "error";
|
|
288
291
|
readonly "@sarj/enforce-file-structure": "error";
|
|
289
292
|
readonly "@sarj/no-client-side-data-fetching": "error";
|
|
@@ -300,6 +303,7 @@ declare const recommendedRules: {
|
|
|
300
303
|
readonly "@sarj/no-impossible-zod-literal-bounds": "error";
|
|
301
304
|
readonly "@sarj/no-log-only-catch": "error";
|
|
302
305
|
readonly "@sarj/no-long-comment": "error";
|
|
306
|
+
readonly "@sarj/no-vague-suppression-description": "warn";
|
|
303
307
|
readonly "@sarj/no-generic-single-export-module": "error";
|
|
304
308
|
readonly "@sarj/no-offset-pagination": "error";
|
|
305
309
|
readonly "@sarj/no-positional-tuple-return": "error";
|
|
@@ -348,6 +352,7 @@ declare const recommendedRules: {
|
|
|
348
352
|
readonly "@sarj/zod-naming-convention": "error";
|
|
349
353
|
};
|
|
350
354
|
declare const strictRules: {
|
|
355
|
+
readonly "@sarj/iac-source-coupled-test": "warn";
|
|
351
356
|
readonly "@sarj/duplicate-test-body": "error";
|
|
352
357
|
readonly "@sarj/enforce-file-structure": "error";
|
|
353
358
|
readonly "@sarj/no-client-side-data-fetching": "error";
|
|
@@ -365,6 +370,7 @@ declare const strictRules: {
|
|
|
365
370
|
readonly "@sarj/no-impossible-zod-literal-bounds": "error";
|
|
366
371
|
readonly "@sarj/no-log-only-catch": "error";
|
|
367
372
|
readonly "@sarj/no-long-comment": "error";
|
|
373
|
+
readonly "@sarj/no-vague-suppression-description": "warn";
|
|
368
374
|
readonly "@sarj/no-generic-single-export-module": "error";
|
|
369
375
|
readonly "@sarj/no-offset-pagination": "error";
|
|
370
376
|
readonly "@sarj/no-positional-tuple-return": "error";
|
|
@@ -423,9 +429,10 @@ type FlatPreset = {
|
|
|
423
429
|
declare const plugin: {
|
|
424
430
|
readonly meta: {
|
|
425
431
|
readonly name: "@sarj/eslint-plugin";
|
|
426
|
-
readonly version: "15.
|
|
432
|
+
readonly version: "15.7.0";
|
|
427
433
|
};
|
|
428
434
|
readonly rules: {
|
|
435
|
+
readonly "iac-source-coupled-test": DocumentedRule<readonly [], "rawSourceOracle">;
|
|
429
436
|
readonly "duplicate-test-body": DocumentedRule<readonly [], "duplicateTestBody">;
|
|
430
437
|
readonly "enforce-file-structure": DocumentedRule<readonly [], "importsFirst" | "useServerDirective">;
|
|
431
438
|
readonly "no-client-side-data-fetching": DocumentedRule<readonly [], "noClientFetch">;
|
|
@@ -446,6 +453,7 @@ declare const plugin: {
|
|
|
446
453
|
readonly "no-impossible-zod-literal-bounds": DocumentedRule<readonly [], "impossibleBounds">;
|
|
447
454
|
readonly "no-log-only-catch": DocumentedRule<readonly [LoggingOptions?], "noLogOnlyCatch" | "emptyCatch">;
|
|
448
455
|
readonly "no-long-comment": DocumentedRule<readonly [], "tooLong">;
|
|
456
|
+
readonly "no-vague-suppression-description": DocumentedRule<readonly [], "vagueDescription">;
|
|
449
457
|
readonly "no-generic-single-export-module": DocumentedRule<[], "genericSingleExport">;
|
|
450
458
|
readonly "no-offset-pagination": DocumentedRule<readonly [], "noOffsetPagination">;
|
|
451
459
|
readonly "no-positional-tuple-return": DocumentedRule<readonly [], "noPositionalTupleReturn">;
|