@sarj/eslint-plugin 15.10.4 → 15.12.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 +1884 -1313
- package/dist/index.d.cts +30 -2
- package/dist/index.d.ts +30 -2
- package/dist/index.js +1869 -1298
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -194,6 +194,8 @@ declare const rules: {
|
|
|
194
194
|
readonly "no-client-side-data-fetching": DocumentedRule<readonly [], "noClientFetch">;
|
|
195
195
|
readonly "no-comment-cruft": DocumentedRule<readonly [], "commentedOutCode" | "sectionBanner" | "fileHeaderPreamble" | "commentWall" | "redundantNarration" | "placeholderImplementation" | "untrackedTodo">;
|
|
196
196
|
readonly "no-cors-wildcard-with-credentials": DocumentedRule<readonly [], "corsWildcardWithCredentials">;
|
|
197
|
+
readonly "no-duplicate-lifecycle-refresh-listeners": DocumentedRule<readonly [], "duplicateLifecycleRefresh">;
|
|
198
|
+
readonly "no-dangerously-allow-svg": DocumentedRule<readonly [], "noDangerouslyAllowSvg">;
|
|
197
199
|
readonly "no-dynamic-sql": DocumentedRule<readonly [RuleOptions?], "dynamicSql">;
|
|
198
200
|
readonly "no-enum": DocumentedRule<readonly [{
|
|
199
201
|
ignoreFiles?: readonly string[];
|
|
@@ -214,15 +216,18 @@ declare const rules: {
|
|
|
214
216
|
readonly "no-generic-single-export-module": DocumentedRule<[], "genericSingleExport">;
|
|
215
217
|
readonly "no-offset-pagination": DocumentedRule<readonly [], "noOffsetPagination">;
|
|
216
218
|
readonly "no-positional-tuple-return": DocumentedRule<readonly [], "noPositionalTupleReturn">;
|
|
219
|
+
readonly "no-production-browser-source-maps": DocumentedRule<readonly [], "noProductionBrowserSourceMaps">;
|
|
217
220
|
readonly "no-raw-env": DocumentedRule<readonly [], "noRawEnv">;
|
|
218
221
|
readonly "no-raw-fetch-outside-clients": DocumentedRule<readonly [RuleOptions$2?], "rawFetch">;
|
|
219
222
|
readonly "no-restricted-library-load": DocumentedRule<readonly [{
|
|
220
223
|
libraries: readonly RestrictedLibrary[];
|
|
221
224
|
}], "restrictedLibraryLoad">;
|
|
225
|
+
readonly "no-router-refresh-polling": DocumentedRule<readonly [], "routerRefreshPolling">;
|
|
222
226
|
readonly "no-repeated-string-literal": DocumentedRule<readonly [], "noRepeatedStringLiteral">;
|
|
223
227
|
readonly "no-restated-comment": DocumentedRule<readonly [], "deleteComment" | "restatesLineBelow">;
|
|
224
228
|
readonly "no-restated-jsdoc": DocumentedRule<readonly [], "restatesSignature" | "deleteBlock">;
|
|
225
229
|
readonly "no-secret-in-log": DocumentedRule<readonly [LoggingOptions?], "noSecretInLog" | "noRawBodyInLog">;
|
|
230
|
+
readonly "no-server-env-in-client-component": DocumentedRule<readonly [], "noServerEnvInClientComponent">;
|
|
226
231
|
readonly "no-select-star": DocumentedRule<readonly [], "noSelectStar">;
|
|
227
232
|
readonly "no-sentinel-return-on-catch": DocumentedRule<readonly [LoggingOptions?], "noSentinelReturn">;
|
|
228
233
|
readonly "no-silent-promise-catch": DocumentedRule<readonly [], "silentCatch">;
|
|
@@ -238,6 +243,8 @@ declare const rules: {
|
|
|
238
243
|
readonly "no-unnecessary-use-client": DocumentedRule<readonly [], "unnecessaryUseClient">;
|
|
239
244
|
readonly "no-unsafe-mock-casting": DocumentedRule<[], "unsafeMockCast">;
|
|
240
245
|
readonly "no-zod-native-enum": DocumentedRule<readonly [], "nativeEnum" | "enumOfTsEnum">;
|
|
246
|
+
readonly "require-use-form-default-values": DocumentedRule<readonly [], "requireUseFormDefaultValues">;
|
|
247
|
+
readonly "require-use-server-in-actions-file": DocumentedRule<readonly [], "requireUseServerInActionsFile">;
|
|
241
248
|
readonly "test-loops-over-literal-cases": DocumentedRule<readonly [], "literalCaseLoop">;
|
|
242
249
|
readonly "test-phase-label-comment": DocumentedRule<readonly [], "removeLabel">;
|
|
243
250
|
readonly "prefer-constant-time-secret-compare": DocumentedRule<readonly [], "preferConstantTimeSecretCompare">;
|
|
@@ -287,7 +294,7 @@ declare const rules: {
|
|
|
287
294
|
/** Rules registered for application-profile configs but intentionally absent from general presets. */
|
|
288
295
|
declare const applicationOnlyRules: readonly ["no-restricted-library-load", "prefer-native-random-uuid", "prefer-shadcn-primitives"];
|
|
289
296
|
/** Calibrated rules that intentionally remain warnings until consumer-corpus precision is proven. */
|
|
290
|
-
declare const advisoryRules: readonly ["no-bare-return-from-test-catch", "iac-source-coupled-test", "repeated-static-call-cases", "source-coupled-test", "test-phase-label-comment"];
|
|
297
|
+
declare const advisoryRules: readonly ["no-bare-return-from-test-catch", "no-dangerously-allow-svg", "no-duplicate-lifecycle-refresh-listeners", "no-production-browser-source-maps", "no-router-refresh-polling", "no-server-env-in-client-component", "iac-source-coupled-test", "repeated-static-call-cases", "require-use-form-default-values", "require-use-server-in-actions-file", "source-coupled-test", "test-phase-label-comment"];
|
|
291
298
|
declare const recommendedRules: {
|
|
292
299
|
readonly "@sarj/iac-source-coupled-test": "warn";
|
|
293
300
|
readonly "@sarj/duplicate-test-body": "error";
|
|
@@ -306,15 +313,20 @@ declare const recommendedRules: {
|
|
|
306
313
|
readonly "@sarj/no-impossible-zod-literal-bounds": "error";
|
|
307
314
|
readonly "@sarj/no-log-only-catch": "error";
|
|
308
315
|
readonly "@sarj/no-bare-return-from-test-catch": "warn";
|
|
316
|
+
readonly "@sarj/no-dangerously-allow-svg": "warn";
|
|
317
|
+
readonly "@sarj/no-duplicate-lifecycle-refresh-listeners": "warn";
|
|
309
318
|
readonly "@sarj/no-long-comment": "error";
|
|
310
319
|
readonly "@sarj/no-vague-suppression-description": "error";
|
|
311
320
|
readonly "@sarj/no-generic-single-export-module": "error";
|
|
312
321
|
readonly "@sarj/no-offset-pagination": "error";
|
|
313
322
|
readonly "@sarj/no-positional-tuple-return": "error";
|
|
323
|
+
readonly "@sarj/no-production-browser-source-maps": "warn";
|
|
314
324
|
readonly "@sarj/no-repeated-string-literal": "error";
|
|
325
|
+
readonly "@sarj/no-router-refresh-polling": "warn";
|
|
315
326
|
readonly "@sarj/no-restated-comment": "error";
|
|
316
327
|
readonly "@sarj/no-restated-jsdoc": "error";
|
|
317
328
|
readonly "@sarj/no-secret-in-log": "error";
|
|
329
|
+
readonly "@sarj/no-server-env-in-client-component": "warn";
|
|
318
330
|
readonly "@sarj/no-select-star": "error";
|
|
319
331
|
readonly "@sarj/no-sentinel-return-on-catch": "error";
|
|
320
332
|
readonly "@sarj/no-silent-promise-catch": "error";
|
|
@@ -350,6 +362,8 @@ declare const recommendedRules: {
|
|
|
350
362
|
readonly "@sarj/require-fetch-timeout": "error";
|
|
351
363
|
readonly "@sarj/require-port-for-service": "error";
|
|
352
364
|
readonly "@sarj/require-static-next-matcher": "error";
|
|
365
|
+
readonly "@sarj/require-use-form-default-values": "warn";
|
|
366
|
+
readonly "@sarj/require-use-server-in-actions-file": "warn";
|
|
353
367
|
readonly "@sarj/require-zod-form-validation": "error";
|
|
354
368
|
readonly "@sarj/store-insert-requires-on-conflict": "error";
|
|
355
369
|
readonly "@sarj/stepdown": "error";
|
|
@@ -376,17 +390,22 @@ declare const strictRules: {
|
|
|
376
390
|
readonly "@sarj/no-impossible-zod-literal-bounds": "error";
|
|
377
391
|
readonly "@sarj/no-log-only-catch": "error";
|
|
378
392
|
readonly "@sarj/no-bare-return-from-test-catch": "warn";
|
|
393
|
+
readonly "@sarj/no-dangerously-allow-svg": "warn";
|
|
394
|
+
readonly "@sarj/no-duplicate-lifecycle-refresh-listeners": "warn";
|
|
379
395
|
readonly "@sarj/no-long-comment": "error";
|
|
380
396
|
readonly "@sarj/no-vague-suppression-description": "error";
|
|
381
397
|
readonly "@sarj/no-generic-single-export-module": "error";
|
|
382
398
|
readonly "@sarj/no-offset-pagination": "error";
|
|
383
399
|
readonly "@sarj/no-positional-tuple-return": "error";
|
|
400
|
+
readonly "@sarj/no-production-browser-source-maps": "warn";
|
|
384
401
|
readonly "@sarj/no-raw-env": "error";
|
|
385
402
|
readonly "@sarj/no-raw-fetch-outside-clients": "error";
|
|
386
403
|
readonly "@sarj/no-repeated-string-literal": "error";
|
|
404
|
+
readonly "@sarj/no-router-refresh-polling": "warn";
|
|
387
405
|
readonly "@sarj/no-restated-comment": "error";
|
|
388
406
|
readonly "@sarj/no-restated-jsdoc": "error";
|
|
389
407
|
readonly "@sarj/no-secret-in-log": "error";
|
|
408
|
+
readonly "@sarj/no-server-env-in-client-component": "warn";
|
|
390
409
|
readonly "@sarj/no-select-star": "error";
|
|
391
410
|
readonly "@sarj/no-sentinel-return-on-catch": "error";
|
|
392
411
|
readonly "@sarj/no-silent-promise-catch": "error";
|
|
@@ -423,6 +442,8 @@ declare const strictRules: {
|
|
|
423
442
|
readonly "@sarj/require-fetch-timeout": "error";
|
|
424
443
|
readonly "@sarj/require-port-for-service": "error";
|
|
425
444
|
readonly "@sarj/require-static-next-matcher": "error";
|
|
445
|
+
readonly "@sarj/require-use-form-default-values": "warn";
|
|
446
|
+
readonly "@sarj/require-use-server-in-actions-file": "warn";
|
|
426
447
|
readonly "@sarj/require-zod-form-validation": "error";
|
|
427
448
|
readonly "@sarj/store-insert-requires-on-conflict": "error";
|
|
428
449
|
readonly "@sarj/stepdown": "error";
|
|
@@ -438,7 +459,7 @@ type FlatPreset = {
|
|
|
438
459
|
declare const plugin: {
|
|
439
460
|
readonly meta: {
|
|
440
461
|
readonly name: "@sarj/eslint-plugin";
|
|
441
|
-
readonly version: "15.
|
|
462
|
+
readonly version: "15.12.0";
|
|
442
463
|
};
|
|
443
464
|
readonly rules: {
|
|
444
465
|
readonly "iac-source-coupled-test": DocumentedRule<readonly [], "rawSourceOracle">;
|
|
@@ -447,6 +468,8 @@ declare const plugin: {
|
|
|
447
468
|
readonly "no-client-side-data-fetching": DocumentedRule<readonly [], "noClientFetch">;
|
|
448
469
|
readonly "no-comment-cruft": DocumentedRule<readonly [], "commentedOutCode" | "sectionBanner" | "fileHeaderPreamble" | "commentWall" | "redundantNarration" | "placeholderImplementation" | "untrackedTodo">;
|
|
449
470
|
readonly "no-cors-wildcard-with-credentials": DocumentedRule<readonly [], "corsWildcardWithCredentials">;
|
|
471
|
+
readonly "no-duplicate-lifecycle-refresh-listeners": DocumentedRule<readonly [], "duplicateLifecycleRefresh">;
|
|
472
|
+
readonly "no-dangerously-allow-svg": DocumentedRule<readonly [], "noDangerouslyAllowSvg">;
|
|
450
473
|
readonly "no-dynamic-sql": DocumentedRule<readonly [RuleOptions?], "dynamicSql">;
|
|
451
474
|
readonly "no-enum": DocumentedRule<readonly [{
|
|
452
475
|
ignoreFiles?: readonly string[];
|
|
@@ -467,15 +490,18 @@ declare const plugin: {
|
|
|
467
490
|
readonly "no-generic-single-export-module": DocumentedRule<[], "genericSingleExport">;
|
|
468
491
|
readonly "no-offset-pagination": DocumentedRule<readonly [], "noOffsetPagination">;
|
|
469
492
|
readonly "no-positional-tuple-return": DocumentedRule<readonly [], "noPositionalTupleReturn">;
|
|
493
|
+
readonly "no-production-browser-source-maps": DocumentedRule<readonly [], "noProductionBrowserSourceMaps">;
|
|
470
494
|
readonly "no-raw-env": DocumentedRule<readonly [], "noRawEnv">;
|
|
471
495
|
readonly "no-raw-fetch-outside-clients": DocumentedRule<readonly [RuleOptions$2?], "rawFetch">;
|
|
472
496
|
readonly "no-restricted-library-load": DocumentedRule<readonly [{
|
|
473
497
|
libraries: readonly RestrictedLibrary[];
|
|
474
498
|
}], "restrictedLibraryLoad">;
|
|
499
|
+
readonly "no-router-refresh-polling": DocumentedRule<readonly [], "routerRefreshPolling">;
|
|
475
500
|
readonly "no-repeated-string-literal": DocumentedRule<readonly [], "noRepeatedStringLiteral">;
|
|
476
501
|
readonly "no-restated-comment": DocumentedRule<readonly [], "deleteComment" | "restatesLineBelow">;
|
|
477
502
|
readonly "no-restated-jsdoc": DocumentedRule<readonly [], "restatesSignature" | "deleteBlock">;
|
|
478
503
|
readonly "no-secret-in-log": DocumentedRule<readonly [LoggingOptions?], "noSecretInLog" | "noRawBodyInLog">;
|
|
504
|
+
readonly "no-server-env-in-client-component": DocumentedRule<readonly [], "noServerEnvInClientComponent">;
|
|
479
505
|
readonly "no-select-star": DocumentedRule<readonly [], "noSelectStar">;
|
|
480
506
|
readonly "no-sentinel-return-on-catch": DocumentedRule<readonly [LoggingOptions?], "noSentinelReturn">;
|
|
481
507
|
readonly "no-silent-promise-catch": DocumentedRule<readonly [], "silentCatch">;
|
|
@@ -491,6 +517,8 @@ declare const plugin: {
|
|
|
491
517
|
readonly "no-unnecessary-use-client": DocumentedRule<readonly [], "unnecessaryUseClient">;
|
|
492
518
|
readonly "no-unsafe-mock-casting": DocumentedRule<[], "unsafeMockCast">;
|
|
493
519
|
readonly "no-zod-native-enum": DocumentedRule<readonly [], "nativeEnum" | "enumOfTsEnum">;
|
|
520
|
+
readonly "require-use-form-default-values": DocumentedRule<readonly [], "requireUseFormDefaultValues">;
|
|
521
|
+
readonly "require-use-server-in-actions-file": DocumentedRule<readonly [], "requireUseServerInActionsFile">;
|
|
494
522
|
readonly "test-loops-over-literal-cases": DocumentedRule<readonly [], "literalCaseLoop">;
|
|
495
523
|
readonly "test-phase-label-comment": DocumentedRule<readonly [], "removeLabel">;
|
|
496
524
|
readonly "prefer-constant-time-secret-compare": DocumentedRule<readonly [], "preferConstantTimeSecretCompare">;
|
package/dist/index.d.ts
CHANGED
|
@@ -194,6 +194,8 @@ declare const rules: {
|
|
|
194
194
|
readonly "no-client-side-data-fetching": DocumentedRule<readonly [], "noClientFetch">;
|
|
195
195
|
readonly "no-comment-cruft": DocumentedRule<readonly [], "commentedOutCode" | "sectionBanner" | "fileHeaderPreamble" | "commentWall" | "redundantNarration" | "placeholderImplementation" | "untrackedTodo">;
|
|
196
196
|
readonly "no-cors-wildcard-with-credentials": DocumentedRule<readonly [], "corsWildcardWithCredentials">;
|
|
197
|
+
readonly "no-duplicate-lifecycle-refresh-listeners": DocumentedRule<readonly [], "duplicateLifecycleRefresh">;
|
|
198
|
+
readonly "no-dangerously-allow-svg": DocumentedRule<readonly [], "noDangerouslyAllowSvg">;
|
|
197
199
|
readonly "no-dynamic-sql": DocumentedRule<readonly [RuleOptions?], "dynamicSql">;
|
|
198
200
|
readonly "no-enum": DocumentedRule<readonly [{
|
|
199
201
|
ignoreFiles?: readonly string[];
|
|
@@ -214,15 +216,18 @@ declare const rules: {
|
|
|
214
216
|
readonly "no-generic-single-export-module": DocumentedRule<[], "genericSingleExport">;
|
|
215
217
|
readonly "no-offset-pagination": DocumentedRule<readonly [], "noOffsetPagination">;
|
|
216
218
|
readonly "no-positional-tuple-return": DocumentedRule<readonly [], "noPositionalTupleReturn">;
|
|
219
|
+
readonly "no-production-browser-source-maps": DocumentedRule<readonly [], "noProductionBrowserSourceMaps">;
|
|
217
220
|
readonly "no-raw-env": DocumentedRule<readonly [], "noRawEnv">;
|
|
218
221
|
readonly "no-raw-fetch-outside-clients": DocumentedRule<readonly [RuleOptions$2?], "rawFetch">;
|
|
219
222
|
readonly "no-restricted-library-load": DocumentedRule<readonly [{
|
|
220
223
|
libraries: readonly RestrictedLibrary[];
|
|
221
224
|
}], "restrictedLibraryLoad">;
|
|
225
|
+
readonly "no-router-refresh-polling": DocumentedRule<readonly [], "routerRefreshPolling">;
|
|
222
226
|
readonly "no-repeated-string-literal": DocumentedRule<readonly [], "noRepeatedStringLiteral">;
|
|
223
227
|
readonly "no-restated-comment": DocumentedRule<readonly [], "deleteComment" | "restatesLineBelow">;
|
|
224
228
|
readonly "no-restated-jsdoc": DocumentedRule<readonly [], "restatesSignature" | "deleteBlock">;
|
|
225
229
|
readonly "no-secret-in-log": DocumentedRule<readonly [LoggingOptions?], "noSecretInLog" | "noRawBodyInLog">;
|
|
230
|
+
readonly "no-server-env-in-client-component": DocumentedRule<readonly [], "noServerEnvInClientComponent">;
|
|
226
231
|
readonly "no-select-star": DocumentedRule<readonly [], "noSelectStar">;
|
|
227
232
|
readonly "no-sentinel-return-on-catch": DocumentedRule<readonly [LoggingOptions?], "noSentinelReturn">;
|
|
228
233
|
readonly "no-silent-promise-catch": DocumentedRule<readonly [], "silentCatch">;
|
|
@@ -238,6 +243,8 @@ declare const rules: {
|
|
|
238
243
|
readonly "no-unnecessary-use-client": DocumentedRule<readonly [], "unnecessaryUseClient">;
|
|
239
244
|
readonly "no-unsafe-mock-casting": DocumentedRule<[], "unsafeMockCast">;
|
|
240
245
|
readonly "no-zod-native-enum": DocumentedRule<readonly [], "nativeEnum" | "enumOfTsEnum">;
|
|
246
|
+
readonly "require-use-form-default-values": DocumentedRule<readonly [], "requireUseFormDefaultValues">;
|
|
247
|
+
readonly "require-use-server-in-actions-file": DocumentedRule<readonly [], "requireUseServerInActionsFile">;
|
|
241
248
|
readonly "test-loops-over-literal-cases": DocumentedRule<readonly [], "literalCaseLoop">;
|
|
242
249
|
readonly "test-phase-label-comment": DocumentedRule<readonly [], "removeLabel">;
|
|
243
250
|
readonly "prefer-constant-time-secret-compare": DocumentedRule<readonly [], "preferConstantTimeSecretCompare">;
|
|
@@ -287,7 +294,7 @@ declare const rules: {
|
|
|
287
294
|
/** Rules registered for application-profile configs but intentionally absent from general presets. */
|
|
288
295
|
declare const applicationOnlyRules: readonly ["no-restricted-library-load", "prefer-native-random-uuid", "prefer-shadcn-primitives"];
|
|
289
296
|
/** Calibrated rules that intentionally remain warnings until consumer-corpus precision is proven. */
|
|
290
|
-
declare const advisoryRules: readonly ["no-bare-return-from-test-catch", "iac-source-coupled-test", "repeated-static-call-cases", "source-coupled-test", "test-phase-label-comment"];
|
|
297
|
+
declare const advisoryRules: readonly ["no-bare-return-from-test-catch", "no-dangerously-allow-svg", "no-duplicate-lifecycle-refresh-listeners", "no-production-browser-source-maps", "no-router-refresh-polling", "no-server-env-in-client-component", "iac-source-coupled-test", "repeated-static-call-cases", "require-use-form-default-values", "require-use-server-in-actions-file", "source-coupled-test", "test-phase-label-comment"];
|
|
291
298
|
declare const recommendedRules: {
|
|
292
299
|
readonly "@sarj/iac-source-coupled-test": "warn";
|
|
293
300
|
readonly "@sarj/duplicate-test-body": "error";
|
|
@@ -306,15 +313,20 @@ declare const recommendedRules: {
|
|
|
306
313
|
readonly "@sarj/no-impossible-zod-literal-bounds": "error";
|
|
307
314
|
readonly "@sarj/no-log-only-catch": "error";
|
|
308
315
|
readonly "@sarj/no-bare-return-from-test-catch": "warn";
|
|
316
|
+
readonly "@sarj/no-dangerously-allow-svg": "warn";
|
|
317
|
+
readonly "@sarj/no-duplicate-lifecycle-refresh-listeners": "warn";
|
|
309
318
|
readonly "@sarj/no-long-comment": "error";
|
|
310
319
|
readonly "@sarj/no-vague-suppression-description": "error";
|
|
311
320
|
readonly "@sarj/no-generic-single-export-module": "error";
|
|
312
321
|
readonly "@sarj/no-offset-pagination": "error";
|
|
313
322
|
readonly "@sarj/no-positional-tuple-return": "error";
|
|
323
|
+
readonly "@sarj/no-production-browser-source-maps": "warn";
|
|
314
324
|
readonly "@sarj/no-repeated-string-literal": "error";
|
|
325
|
+
readonly "@sarj/no-router-refresh-polling": "warn";
|
|
315
326
|
readonly "@sarj/no-restated-comment": "error";
|
|
316
327
|
readonly "@sarj/no-restated-jsdoc": "error";
|
|
317
328
|
readonly "@sarj/no-secret-in-log": "error";
|
|
329
|
+
readonly "@sarj/no-server-env-in-client-component": "warn";
|
|
318
330
|
readonly "@sarj/no-select-star": "error";
|
|
319
331
|
readonly "@sarj/no-sentinel-return-on-catch": "error";
|
|
320
332
|
readonly "@sarj/no-silent-promise-catch": "error";
|
|
@@ -350,6 +362,8 @@ declare const recommendedRules: {
|
|
|
350
362
|
readonly "@sarj/require-fetch-timeout": "error";
|
|
351
363
|
readonly "@sarj/require-port-for-service": "error";
|
|
352
364
|
readonly "@sarj/require-static-next-matcher": "error";
|
|
365
|
+
readonly "@sarj/require-use-form-default-values": "warn";
|
|
366
|
+
readonly "@sarj/require-use-server-in-actions-file": "warn";
|
|
353
367
|
readonly "@sarj/require-zod-form-validation": "error";
|
|
354
368
|
readonly "@sarj/store-insert-requires-on-conflict": "error";
|
|
355
369
|
readonly "@sarj/stepdown": "error";
|
|
@@ -376,17 +390,22 @@ declare const strictRules: {
|
|
|
376
390
|
readonly "@sarj/no-impossible-zod-literal-bounds": "error";
|
|
377
391
|
readonly "@sarj/no-log-only-catch": "error";
|
|
378
392
|
readonly "@sarj/no-bare-return-from-test-catch": "warn";
|
|
393
|
+
readonly "@sarj/no-dangerously-allow-svg": "warn";
|
|
394
|
+
readonly "@sarj/no-duplicate-lifecycle-refresh-listeners": "warn";
|
|
379
395
|
readonly "@sarj/no-long-comment": "error";
|
|
380
396
|
readonly "@sarj/no-vague-suppression-description": "error";
|
|
381
397
|
readonly "@sarj/no-generic-single-export-module": "error";
|
|
382
398
|
readonly "@sarj/no-offset-pagination": "error";
|
|
383
399
|
readonly "@sarj/no-positional-tuple-return": "error";
|
|
400
|
+
readonly "@sarj/no-production-browser-source-maps": "warn";
|
|
384
401
|
readonly "@sarj/no-raw-env": "error";
|
|
385
402
|
readonly "@sarj/no-raw-fetch-outside-clients": "error";
|
|
386
403
|
readonly "@sarj/no-repeated-string-literal": "error";
|
|
404
|
+
readonly "@sarj/no-router-refresh-polling": "warn";
|
|
387
405
|
readonly "@sarj/no-restated-comment": "error";
|
|
388
406
|
readonly "@sarj/no-restated-jsdoc": "error";
|
|
389
407
|
readonly "@sarj/no-secret-in-log": "error";
|
|
408
|
+
readonly "@sarj/no-server-env-in-client-component": "warn";
|
|
390
409
|
readonly "@sarj/no-select-star": "error";
|
|
391
410
|
readonly "@sarj/no-sentinel-return-on-catch": "error";
|
|
392
411
|
readonly "@sarj/no-silent-promise-catch": "error";
|
|
@@ -423,6 +442,8 @@ declare const strictRules: {
|
|
|
423
442
|
readonly "@sarj/require-fetch-timeout": "error";
|
|
424
443
|
readonly "@sarj/require-port-for-service": "error";
|
|
425
444
|
readonly "@sarj/require-static-next-matcher": "error";
|
|
445
|
+
readonly "@sarj/require-use-form-default-values": "warn";
|
|
446
|
+
readonly "@sarj/require-use-server-in-actions-file": "warn";
|
|
426
447
|
readonly "@sarj/require-zod-form-validation": "error";
|
|
427
448
|
readonly "@sarj/store-insert-requires-on-conflict": "error";
|
|
428
449
|
readonly "@sarj/stepdown": "error";
|
|
@@ -438,7 +459,7 @@ type FlatPreset = {
|
|
|
438
459
|
declare const plugin: {
|
|
439
460
|
readonly meta: {
|
|
440
461
|
readonly name: "@sarj/eslint-plugin";
|
|
441
|
-
readonly version: "15.
|
|
462
|
+
readonly version: "15.12.0";
|
|
442
463
|
};
|
|
443
464
|
readonly rules: {
|
|
444
465
|
readonly "iac-source-coupled-test": DocumentedRule<readonly [], "rawSourceOracle">;
|
|
@@ -447,6 +468,8 @@ declare const plugin: {
|
|
|
447
468
|
readonly "no-client-side-data-fetching": DocumentedRule<readonly [], "noClientFetch">;
|
|
448
469
|
readonly "no-comment-cruft": DocumentedRule<readonly [], "commentedOutCode" | "sectionBanner" | "fileHeaderPreamble" | "commentWall" | "redundantNarration" | "placeholderImplementation" | "untrackedTodo">;
|
|
449
470
|
readonly "no-cors-wildcard-with-credentials": DocumentedRule<readonly [], "corsWildcardWithCredentials">;
|
|
471
|
+
readonly "no-duplicate-lifecycle-refresh-listeners": DocumentedRule<readonly [], "duplicateLifecycleRefresh">;
|
|
472
|
+
readonly "no-dangerously-allow-svg": DocumentedRule<readonly [], "noDangerouslyAllowSvg">;
|
|
450
473
|
readonly "no-dynamic-sql": DocumentedRule<readonly [RuleOptions?], "dynamicSql">;
|
|
451
474
|
readonly "no-enum": DocumentedRule<readonly [{
|
|
452
475
|
ignoreFiles?: readonly string[];
|
|
@@ -467,15 +490,18 @@ declare const plugin: {
|
|
|
467
490
|
readonly "no-generic-single-export-module": DocumentedRule<[], "genericSingleExport">;
|
|
468
491
|
readonly "no-offset-pagination": DocumentedRule<readonly [], "noOffsetPagination">;
|
|
469
492
|
readonly "no-positional-tuple-return": DocumentedRule<readonly [], "noPositionalTupleReturn">;
|
|
493
|
+
readonly "no-production-browser-source-maps": DocumentedRule<readonly [], "noProductionBrowserSourceMaps">;
|
|
470
494
|
readonly "no-raw-env": DocumentedRule<readonly [], "noRawEnv">;
|
|
471
495
|
readonly "no-raw-fetch-outside-clients": DocumentedRule<readonly [RuleOptions$2?], "rawFetch">;
|
|
472
496
|
readonly "no-restricted-library-load": DocumentedRule<readonly [{
|
|
473
497
|
libraries: readonly RestrictedLibrary[];
|
|
474
498
|
}], "restrictedLibraryLoad">;
|
|
499
|
+
readonly "no-router-refresh-polling": DocumentedRule<readonly [], "routerRefreshPolling">;
|
|
475
500
|
readonly "no-repeated-string-literal": DocumentedRule<readonly [], "noRepeatedStringLiteral">;
|
|
476
501
|
readonly "no-restated-comment": DocumentedRule<readonly [], "deleteComment" | "restatesLineBelow">;
|
|
477
502
|
readonly "no-restated-jsdoc": DocumentedRule<readonly [], "restatesSignature" | "deleteBlock">;
|
|
478
503
|
readonly "no-secret-in-log": DocumentedRule<readonly [LoggingOptions?], "noSecretInLog" | "noRawBodyInLog">;
|
|
504
|
+
readonly "no-server-env-in-client-component": DocumentedRule<readonly [], "noServerEnvInClientComponent">;
|
|
479
505
|
readonly "no-select-star": DocumentedRule<readonly [], "noSelectStar">;
|
|
480
506
|
readonly "no-sentinel-return-on-catch": DocumentedRule<readonly [LoggingOptions?], "noSentinelReturn">;
|
|
481
507
|
readonly "no-silent-promise-catch": DocumentedRule<readonly [], "silentCatch">;
|
|
@@ -491,6 +517,8 @@ declare const plugin: {
|
|
|
491
517
|
readonly "no-unnecessary-use-client": DocumentedRule<readonly [], "unnecessaryUseClient">;
|
|
492
518
|
readonly "no-unsafe-mock-casting": DocumentedRule<[], "unsafeMockCast">;
|
|
493
519
|
readonly "no-zod-native-enum": DocumentedRule<readonly [], "nativeEnum" | "enumOfTsEnum">;
|
|
520
|
+
readonly "require-use-form-default-values": DocumentedRule<readonly [], "requireUseFormDefaultValues">;
|
|
521
|
+
readonly "require-use-server-in-actions-file": DocumentedRule<readonly [], "requireUseServerInActionsFile">;
|
|
494
522
|
readonly "test-loops-over-literal-cases": DocumentedRule<readonly [], "literalCaseLoop">;
|
|
495
523
|
readonly "test-phase-label-comment": DocumentedRule<readonly [], "removeLabel">;
|
|
496
524
|
readonly "prefer-constant-time-secret-compare": DocumentedRule<readonly [], "preferConstantTimeSecretCompare">;
|