@sarj/eslint-plugin 15.10.3 → 15.11.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 +1547 -1304
- package/dist/index.d.cts +10 -2
- package/dist/index.d.ts +10 -2
- package/dist/index.js +1532 -1289
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -194,6 +194,7 @@ 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">;
|
|
197
198
|
readonly "no-dynamic-sql": DocumentedRule<readonly [RuleOptions?], "dynamicSql">;
|
|
198
199
|
readonly "no-enum": DocumentedRule<readonly [{
|
|
199
200
|
ignoreFiles?: readonly string[];
|
|
@@ -219,6 +220,7 @@ declare const rules: {
|
|
|
219
220
|
readonly "no-restricted-library-load": DocumentedRule<readonly [{
|
|
220
221
|
libraries: readonly RestrictedLibrary[];
|
|
221
222
|
}], "restrictedLibraryLoad">;
|
|
223
|
+
readonly "no-router-refresh-polling": DocumentedRule<readonly [], "routerRefreshPolling">;
|
|
222
224
|
readonly "no-repeated-string-literal": DocumentedRule<readonly [], "noRepeatedStringLiteral">;
|
|
223
225
|
readonly "no-restated-comment": DocumentedRule<readonly [], "deleteComment" | "restatesLineBelow">;
|
|
224
226
|
readonly "no-restated-jsdoc": DocumentedRule<readonly [], "restatesSignature" | "deleteBlock">;
|
|
@@ -287,7 +289,7 @@ declare const rules: {
|
|
|
287
289
|
/** Rules registered for application-profile configs but intentionally absent from general presets. */
|
|
288
290
|
declare const applicationOnlyRules: readonly ["no-restricted-library-load", "prefer-native-random-uuid", "prefer-shadcn-primitives"];
|
|
289
291
|
/** 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"];
|
|
292
|
+
declare const advisoryRules: readonly ["no-bare-return-from-test-catch", "no-duplicate-lifecycle-refresh-listeners", "no-router-refresh-polling", "iac-source-coupled-test", "repeated-static-call-cases", "source-coupled-test", "test-phase-label-comment"];
|
|
291
293
|
declare const recommendedRules: {
|
|
292
294
|
readonly "@sarj/iac-source-coupled-test": "warn";
|
|
293
295
|
readonly "@sarj/duplicate-test-body": "error";
|
|
@@ -306,12 +308,14 @@ declare const recommendedRules: {
|
|
|
306
308
|
readonly "@sarj/no-impossible-zod-literal-bounds": "error";
|
|
307
309
|
readonly "@sarj/no-log-only-catch": "error";
|
|
308
310
|
readonly "@sarj/no-bare-return-from-test-catch": "warn";
|
|
311
|
+
readonly "@sarj/no-duplicate-lifecycle-refresh-listeners": "warn";
|
|
309
312
|
readonly "@sarj/no-long-comment": "error";
|
|
310
313
|
readonly "@sarj/no-vague-suppression-description": "error";
|
|
311
314
|
readonly "@sarj/no-generic-single-export-module": "error";
|
|
312
315
|
readonly "@sarj/no-offset-pagination": "error";
|
|
313
316
|
readonly "@sarj/no-positional-tuple-return": "error";
|
|
314
317
|
readonly "@sarj/no-repeated-string-literal": "error";
|
|
318
|
+
readonly "@sarj/no-router-refresh-polling": "warn";
|
|
315
319
|
readonly "@sarj/no-restated-comment": "error";
|
|
316
320
|
readonly "@sarj/no-restated-jsdoc": "error";
|
|
317
321
|
readonly "@sarj/no-secret-in-log": "error";
|
|
@@ -376,6 +380,7 @@ declare const strictRules: {
|
|
|
376
380
|
readonly "@sarj/no-impossible-zod-literal-bounds": "error";
|
|
377
381
|
readonly "@sarj/no-log-only-catch": "error";
|
|
378
382
|
readonly "@sarj/no-bare-return-from-test-catch": "warn";
|
|
383
|
+
readonly "@sarj/no-duplicate-lifecycle-refresh-listeners": "warn";
|
|
379
384
|
readonly "@sarj/no-long-comment": "error";
|
|
380
385
|
readonly "@sarj/no-vague-suppression-description": "error";
|
|
381
386
|
readonly "@sarj/no-generic-single-export-module": "error";
|
|
@@ -384,6 +389,7 @@ declare const strictRules: {
|
|
|
384
389
|
readonly "@sarj/no-raw-env": "error";
|
|
385
390
|
readonly "@sarj/no-raw-fetch-outside-clients": "error";
|
|
386
391
|
readonly "@sarj/no-repeated-string-literal": "error";
|
|
392
|
+
readonly "@sarj/no-router-refresh-polling": "warn";
|
|
387
393
|
readonly "@sarj/no-restated-comment": "error";
|
|
388
394
|
readonly "@sarj/no-restated-jsdoc": "error";
|
|
389
395
|
readonly "@sarj/no-secret-in-log": "error";
|
|
@@ -438,7 +444,7 @@ type FlatPreset = {
|
|
|
438
444
|
declare const plugin: {
|
|
439
445
|
readonly meta: {
|
|
440
446
|
readonly name: "@sarj/eslint-plugin";
|
|
441
|
-
readonly version: "15.
|
|
447
|
+
readonly version: "15.11.0";
|
|
442
448
|
};
|
|
443
449
|
readonly rules: {
|
|
444
450
|
readonly "iac-source-coupled-test": DocumentedRule<readonly [], "rawSourceOracle">;
|
|
@@ -447,6 +453,7 @@ declare const plugin: {
|
|
|
447
453
|
readonly "no-client-side-data-fetching": DocumentedRule<readonly [], "noClientFetch">;
|
|
448
454
|
readonly "no-comment-cruft": DocumentedRule<readonly [], "commentedOutCode" | "sectionBanner" | "fileHeaderPreamble" | "commentWall" | "redundantNarration" | "placeholderImplementation" | "untrackedTodo">;
|
|
449
455
|
readonly "no-cors-wildcard-with-credentials": DocumentedRule<readonly [], "corsWildcardWithCredentials">;
|
|
456
|
+
readonly "no-duplicate-lifecycle-refresh-listeners": DocumentedRule<readonly [], "duplicateLifecycleRefresh">;
|
|
450
457
|
readonly "no-dynamic-sql": DocumentedRule<readonly [RuleOptions?], "dynamicSql">;
|
|
451
458
|
readonly "no-enum": DocumentedRule<readonly [{
|
|
452
459
|
ignoreFiles?: readonly string[];
|
|
@@ -472,6 +479,7 @@ declare const plugin: {
|
|
|
472
479
|
readonly "no-restricted-library-load": DocumentedRule<readonly [{
|
|
473
480
|
libraries: readonly RestrictedLibrary[];
|
|
474
481
|
}], "restrictedLibraryLoad">;
|
|
482
|
+
readonly "no-router-refresh-polling": DocumentedRule<readonly [], "routerRefreshPolling">;
|
|
475
483
|
readonly "no-repeated-string-literal": DocumentedRule<readonly [], "noRepeatedStringLiteral">;
|
|
476
484
|
readonly "no-restated-comment": DocumentedRule<readonly [], "deleteComment" | "restatesLineBelow">;
|
|
477
485
|
readonly "no-restated-jsdoc": DocumentedRule<readonly [], "restatesSignature" | "deleteBlock">;
|
package/dist/index.d.ts
CHANGED
|
@@ -194,6 +194,7 @@ 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">;
|
|
197
198
|
readonly "no-dynamic-sql": DocumentedRule<readonly [RuleOptions?], "dynamicSql">;
|
|
198
199
|
readonly "no-enum": DocumentedRule<readonly [{
|
|
199
200
|
ignoreFiles?: readonly string[];
|
|
@@ -219,6 +220,7 @@ declare const rules: {
|
|
|
219
220
|
readonly "no-restricted-library-load": DocumentedRule<readonly [{
|
|
220
221
|
libraries: readonly RestrictedLibrary[];
|
|
221
222
|
}], "restrictedLibraryLoad">;
|
|
223
|
+
readonly "no-router-refresh-polling": DocumentedRule<readonly [], "routerRefreshPolling">;
|
|
222
224
|
readonly "no-repeated-string-literal": DocumentedRule<readonly [], "noRepeatedStringLiteral">;
|
|
223
225
|
readonly "no-restated-comment": DocumentedRule<readonly [], "deleteComment" | "restatesLineBelow">;
|
|
224
226
|
readonly "no-restated-jsdoc": DocumentedRule<readonly [], "restatesSignature" | "deleteBlock">;
|
|
@@ -287,7 +289,7 @@ declare const rules: {
|
|
|
287
289
|
/** Rules registered for application-profile configs but intentionally absent from general presets. */
|
|
288
290
|
declare const applicationOnlyRules: readonly ["no-restricted-library-load", "prefer-native-random-uuid", "prefer-shadcn-primitives"];
|
|
289
291
|
/** 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"];
|
|
292
|
+
declare const advisoryRules: readonly ["no-bare-return-from-test-catch", "no-duplicate-lifecycle-refresh-listeners", "no-router-refresh-polling", "iac-source-coupled-test", "repeated-static-call-cases", "source-coupled-test", "test-phase-label-comment"];
|
|
291
293
|
declare const recommendedRules: {
|
|
292
294
|
readonly "@sarj/iac-source-coupled-test": "warn";
|
|
293
295
|
readonly "@sarj/duplicate-test-body": "error";
|
|
@@ -306,12 +308,14 @@ declare const recommendedRules: {
|
|
|
306
308
|
readonly "@sarj/no-impossible-zod-literal-bounds": "error";
|
|
307
309
|
readonly "@sarj/no-log-only-catch": "error";
|
|
308
310
|
readonly "@sarj/no-bare-return-from-test-catch": "warn";
|
|
311
|
+
readonly "@sarj/no-duplicate-lifecycle-refresh-listeners": "warn";
|
|
309
312
|
readonly "@sarj/no-long-comment": "error";
|
|
310
313
|
readonly "@sarj/no-vague-suppression-description": "error";
|
|
311
314
|
readonly "@sarj/no-generic-single-export-module": "error";
|
|
312
315
|
readonly "@sarj/no-offset-pagination": "error";
|
|
313
316
|
readonly "@sarj/no-positional-tuple-return": "error";
|
|
314
317
|
readonly "@sarj/no-repeated-string-literal": "error";
|
|
318
|
+
readonly "@sarj/no-router-refresh-polling": "warn";
|
|
315
319
|
readonly "@sarj/no-restated-comment": "error";
|
|
316
320
|
readonly "@sarj/no-restated-jsdoc": "error";
|
|
317
321
|
readonly "@sarj/no-secret-in-log": "error";
|
|
@@ -376,6 +380,7 @@ declare const strictRules: {
|
|
|
376
380
|
readonly "@sarj/no-impossible-zod-literal-bounds": "error";
|
|
377
381
|
readonly "@sarj/no-log-only-catch": "error";
|
|
378
382
|
readonly "@sarj/no-bare-return-from-test-catch": "warn";
|
|
383
|
+
readonly "@sarj/no-duplicate-lifecycle-refresh-listeners": "warn";
|
|
379
384
|
readonly "@sarj/no-long-comment": "error";
|
|
380
385
|
readonly "@sarj/no-vague-suppression-description": "error";
|
|
381
386
|
readonly "@sarj/no-generic-single-export-module": "error";
|
|
@@ -384,6 +389,7 @@ declare const strictRules: {
|
|
|
384
389
|
readonly "@sarj/no-raw-env": "error";
|
|
385
390
|
readonly "@sarj/no-raw-fetch-outside-clients": "error";
|
|
386
391
|
readonly "@sarj/no-repeated-string-literal": "error";
|
|
392
|
+
readonly "@sarj/no-router-refresh-polling": "warn";
|
|
387
393
|
readonly "@sarj/no-restated-comment": "error";
|
|
388
394
|
readonly "@sarj/no-restated-jsdoc": "error";
|
|
389
395
|
readonly "@sarj/no-secret-in-log": "error";
|
|
@@ -438,7 +444,7 @@ type FlatPreset = {
|
|
|
438
444
|
declare const plugin: {
|
|
439
445
|
readonly meta: {
|
|
440
446
|
readonly name: "@sarj/eslint-plugin";
|
|
441
|
-
readonly version: "15.
|
|
447
|
+
readonly version: "15.11.0";
|
|
442
448
|
};
|
|
443
449
|
readonly rules: {
|
|
444
450
|
readonly "iac-source-coupled-test": DocumentedRule<readonly [], "rawSourceOracle">;
|
|
@@ -447,6 +453,7 @@ declare const plugin: {
|
|
|
447
453
|
readonly "no-client-side-data-fetching": DocumentedRule<readonly [], "noClientFetch">;
|
|
448
454
|
readonly "no-comment-cruft": DocumentedRule<readonly [], "commentedOutCode" | "sectionBanner" | "fileHeaderPreamble" | "commentWall" | "redundantNarration" | "placeholderImplementation" | "untrackedTodo">;
|
|
449
455
|
readonly "no-cors-wildcard-with-credentials": DocumentedRule<readonly [], "corsWildcardWithCredentials">;
|
|
456
|
+
readonly "no-duplicate-lifecycle-refresh-listeners": DocumentedRule<readonly [], "duplicateLifecycleRefresh">;
|
|
450
457
|
readonly "no-dynamic-sql": DocumentedRule<readonly [RuleOptions?], "dynamicSql">;
|
|
451
458
|
readonly "no-enum": DocumentedRule<readonly [{
|
|
452
459
|
ignoreFiles?: readonly string[];
|
|
@@ -472,6 +479,7 @@ declare const plugin: {
|
|
|
472
479
|
readonly "no-restricted-library-load": DocumentedRule<readonly [{
|
|
473
480
|
libraries: readonly RestrictedLibrary[];
|
|
474
481
|
}], "restrictedLibraryLoad">;
|
|
482
|
+
readonly "no-router-refresh-polling": DocumentedRule<readonly [], "routerRefreshPolling">;
|
|
475
483
|
readonly "no-repeated-string-literal": DocumentedRule<readonly [], "noRepeatedStringLiteral">;
|
|
476
484
|
readonly "no-restated-comment": DocumentedRule<readonly [], "deleteComment" | "restatesLineBelow">;
|
|
477
485
|
readonly "no-restated-jsdoc": DocumentedRule<readonly [], "restatesSignature" | "deleteBlock">;
|