@sarj/eslint-plugin 9.14.0 → 9.15.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/README.md +1 -1
- package/dist/index.cjs +1518 -1028
- package/dist/index.d.cts +19 -3
- package/dist/index.d.ts +19 -3
- package/dist/index.js +1502 -1012
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -91,6 +91,9 @@ declare const renamedRules: {
|
|
|
91
91
|
};
|
|
92
92
|
|
|
93
93
|
declare const rules: {
|
|
94
|
+
"duplicate-test-body": _typescript_eslint_utils_ts_eslint.RuleModule<"duplicateTestBody", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
95
|
+
name: string;
|
|
96
|
+
};
|
|
94
97
|
"enforce-file-structure": _typescript_eslint_utils_ts_eslint.RuleModule<"importsFirst" | "useServerDirective", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
95
98
|
name: string;
|
|
96
99
|
};
|
|
@@ -100,7 +103,7 @@ declare const rules: {
|
|
|
100
103
|
"no-client-side-data-fetching": _typescript_eslint_utils_ts_eslint.RuleModule<"noClientFetch", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
101
104
|
name: string;
|
|
102
105
|
};
|
|
103
|
-
"no-comment-cruft": _typescript_eslint_utils_ts_eslint.RuleModule<"commentedOutCode" | "sectionBanner" | "fileHeaderPreamble" | "commentWall" | "redundantNarration" | "untrackedTodo", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
106
|
+
"no-comment-cruft": _typescript_eslint_utils_ts_eslint.RuleModule<"commentedOutCode" | "sectionBanner" | "fileHeaderPreamble" | "commentWall" | "redundantNarration" | "placeholderImplementation" | "untrackedTodo", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
104
107
|
name: string;
|
|
105
108
|
};
|
|
106
109
|
"no-conditional-in-test": _typescript_eslint_utils_ts_eslint.RuleModule<"noConditionalInTest", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
@@ -218,6 +221,9 @@ declare const rules: {
|
|
|
218
221
|
"no-zod-native-enum": _typescript_eslint_utils_ts_eslint.RuleModule<"nativeEnum" | "enumOfTsEnum", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
219
222
|
name: string;
|
|
220
223
|
};
|
|
224
|
+
"test-loops-over-literal-cases": _typescript_eslint_utils_ts_eslint.RuleModule<"literalCaseLoop", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
225
|
+
name: string;
|
|
226
|
+
};
|
|
221
227
|
"prefer-constant-time-secret-compare": _typescript_eslint_utils_ts_eslint.RuleModule<"preferConstantTimeSecretCompare", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
222
228
|
name: string;
|
|
223
229
|
};
|
|
@@ -316,6 +322,7 @@ declare const rules: {
|
|
|
316
322
|
/** Rules registered for application-profile configs but intentionally absent from general presets. */
|
|
317
323
|
declare const applicationOnlyRules: readonly ["no-restricted-library-load", "prefer-native-random-uuid", "prefer-shadcn-primitives"];
|
|
318
324
|
declare const recommendedRules: {
|
|
325
|
+
readonly "@sarj/duplicate-test-body": "warn";
|
|
319
326
|
readonly "@sarj/enforce-file-structure": "warn";
|
|
320
327
|
readonly "@sarj/no-async-callback-in-wait-for": "warn";
|
|
321
328
|
readonly "@sarj/no-client-side-data-fetching": "warn";
|
|
@@ -351,6 +358,7 @@ declare const recommendedRules: {
|
|
|
351
358
|
readonly "@sarj/no-unnecessary-use-client": "warn";
|
|
352
359
|
readonly "@sarj/no-unsafe-mock-casting": "warn";
|
|
353
360
|
readonly "@sarj/no-zod-native-enum": "warn";
|
|
361
|
+
readonly "@sarj/test-loops-over-literal-cases": "warn";
|
|
354
362
|
readonly "@sarj/prefer-constant-time-secret-compare": "error";
|
|
355
363
|
readonly "@sarj/prefer-discriminated-union": "warn";
|
|
356
364
|
readonly "@sarj/prefer-input-group-search": "error";
|
|
@@ -378,6 +386,7 @@ declare const recommendedRules: {
|
|
|
378
386
|
readonly "@sarj/zod-naming-convention": "warn";
|
|
379
387
|
};
|
|
380
388
|
declare const strictRules: {
|
|
389
|
+
readonly "@sarj/duplicate-test-body": "warn";
|
|
381
390
|
readonly "@sarj/enforce-file-structure": "error";
|
|
382
391
|
readonly "@sarj/no-async-callback-in-wait-for": "error";
|
|
383
392
|
readonly "@sarj/no-client-side-data-fetching": "error";
|
|
@@ -417,6 +426,7 @@ declare const strictRules: {
|
|
|
417
426
|
readonly "@sarj/no-unnecessary-use-client": "error";
|
|
418
427
|
readonly "@sarj/no-unsafe-mock-casting": "error";
|
|
419
428
|
readonly "@sarj/no-zod-native-enum": "error";
|
|
429
|
+
readonly "@sarj/test-loops-over-literal-cases": "warn";
|
|
420
430
|
readonly "@sarj/prefer-constant-time-secret-compare": "error";
|
|
421
431
|
readonly "@sarj/prefer-discriminated-union": "error";
|
|
422
432
|
readonly "@sarj/prefer-input-group-search": "error";
|
|
@@ -456,9 +466,12 @@ type FlatPreset = {
|
|
|
456
466
|
declare const plugin: {
|
|
457
467
|
meta: {
|
|
458
468
|
readonly name: "@sarj/eslint-plugin";
|
|
459
|
-
readonly version: "9.
|
|
469
|
+
readonly version: "9.15.0";
|
|
460
470
|
};
|
|
461
471
|
rules: {
|
|
472
|
+
"duplicate-test-body": _typescript_eslint_utils_ts_eslint.RuleModule<"duplicateTestBody", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
473
|
+
name: string;
|
|
474
|
+
};
|
|
462
475
|
"enforce-file-structure": _typescript_eslint_utils_ts_eslint.RuleModule<"importsFirst" | "useServerDirective", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
463
476
|
name: string;
|
|
464
477
|
};
|
|
@@ -468,7 +481,7 @@ declare const plugin: {
|
|
|
468
481
|
"no-client-side-data-fetching": _typescript_eslint_utils_ts_eslint.RuleModule<"noClientFetch", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
469
482
|
name: string;
|
|
470
483
|
};
|
|
471
|
-
"no-comment-cruft": _typescript_eslint_utils_ts_eslint.RuleModule<"commentedOutCode" | "sectionBanner" | "fileHeaderPreamble" | "commentWall" | "redundantNarration" | "untrackedTodo", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
484
|
+
"no-comment-cruft": _typescript_eslint_utils_ts_eslint.RuleModule<"commentedOutCode" | "sectionBanner" | "fileHeaderPreamble" | "commentWall" | "redundantNarration" | "placeholderImplementation" | "untrackedTodo", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
472
485
|
name: string;
|
|
473
486
|
};
|
|
474
487
|
"no-conditional-in-test": _typescript_eslint_utils_ts_eslint.RuleModule<"noConditionalInTest", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
@@ -586,6 +599,9 @@ declare const plugin: {
|
|
|
586
599
|
"no-zod-native-enum": _typescript_eslint_utils_ts_eslint.RuleModule<"nativeEnum" | "enumOfTsEnum", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
587
600
|
name: string;
|
|
588
601
|
};
|
|
602
|
+
"test-loops-over-literal-cases": _typescript_eslint_utils_ts_eslint.RuleModule<"literalCaseLoop", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
603
|
+
name: string;
|
|
604
|
+
};
|
|
589
605
|
"prefer-constant-time-secret-compare": _typescript_eslint_utils_ts_eslint.RuleModule<"preferConstantTimeSecretCompare", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
590
606
|
name: string;
|
|
591
607
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -91,6 +91,9 @@ declare const renamedRules: {
|
|
|
91
91
|
};
|
|
92
92
|
|
|
93
93
|
declare const rules: {
|
|
94
|
+
"duplicate-test-body": _typescript_eslint_utils_ts_eslint.RuleModule<"duplicateTestBody", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
95
|
+
name: string;
|
|
96
|
+
};
|
|
94
97
|
"enforce-file-structure": _typescript_eslint_utils_ts_eslint.RuleModule<"importsFirst" | "useServerDirective", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
95
98
|
name: string;
|
|
96
99
|
};
|
|
@@ -100,7 +103,7 @@ declare const rules: {
|
|
|
100
103
|
"no-client-side-data-fetching": _typescript_eslint_utils_ts_eslint.RuleModule<"noClientFetch", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
101
104
|
name: string;
|
|
102
105
|
};
|
|
103
|
-
"no-comment-cruft": _typescript_eslint_utils_ts_eslint.RuleModule<"commentedOutCode" | "sectionBanner" | "fileHeaderPreamble" | "commentWall" | "redundantNarration" | "untrackedTodo", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
106
|
+
"no-comment-cruft": _typescript_eslint_utils_ts_eslint.RuleModule<"commentedOutCode" | "sectionBanner" | "fileHeaderPreamble" | "commentWall" | "redundantNarration" | "placeholderImplementation" | "untrackedTodo", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
104
107
|
name: string;
|
|
105
108
|
};
|
|
106
109
|
"no-conditional-in-test": _typescript_eslint_utils_ts_eslint.RuleModule<"noConditionalInTest", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
@@ -218,6 +221,9 @@ declare const rules: {
|
|
|
218
221
|
"no-zod-native-enum": _typescript_eslint_utils_ts_eslint.RuleModule<"nativeEnum" | "enumOfTsEnum", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
219
222
|
name: string;
|
|
220
223
|
};
|
|
224
|
+
"test-loops-over-literal-cases": _typescript_eslint_utils_ts_eslint.RuleModule<"literalCaseLoop", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
225
|
+
name: string;
|
|
226
|
+
};
|
|
221
227
|
"prefer-constant-time-secret-compare": _typescript_eslint_utils_ts_eslint.RuleModule<"preferConstantTimeSecretCompare", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
222
228
|
name: string;
|
|
223
229
|
};
|
|
@@ -316,6 +322,7 @@ declare const rules: {
|
|
|
316
322
|
/** Rules registered for application-profile configs but intentionally absent from general presets. */
|
|
317
323
|
declare const applicationOnlyRules: readonly ["no-restricted-library-load", "prefer-native-random-uuid", "prefer-shadcn-primitives"];
|
|
318
324
|
declare const recommendedRules: {
|
|
325
|
+
readonly "@sarj/duplicate-test-body": "warn";
|
|
319
326
|
readonly "@sarj/enforce-file-structure": "warn";
|
|
320
327
|
readonly "@sarj/no-async-callback-in-wait-for": "warn";
|
|
321
328
|
readonly "@sarj/no-client-side-data-fetching": "warn";
|
|
@@ -351,6 +358,7 @@ declare const recommendedRules: {
|
|
|
351
358
|
readonly "@sarj/no-unnecessary-use-client": "warn";
|
|
352
359
|
readonly "@sarj/no-unsafe-mock-casting": "warn";
|
|
353
360
|
readonly "@sarj/no-zod-native-enum": "warn";
|
|
361
|
+
readonly "@sarj/test-loops-over-literal-cases": "warn";
|
|
354
362
|
readonly "@sarj/prefer-constant-time-secret-compare": "error";
|
|
355
363
|
readonly "@sarj/prefer-discriminated-union": "warn";
|
|
356
364
|
readonly "@sarj/prefer-input-group-search": "error";
|
|
@@ -378,6 +386,7 @@ declare const recommendedRules: {
|
|
|
378
386
|
readonly "@sarj/zod-naming-convention": "warn";
|
|
379
387
|
};
|
|
380
388
|
declare const strictRules: {
|
|
389
|
+
readonly "@sarj/duplicate-test-body": "warn";
|
|
381
390
|
readonly "@sarj/enforce-file-structure": "error";
|
|
382
391
|
readonly "@sarj/no-async-callback-in-wait-for": "error";
|
|
383
392
|
readonly "@sarj/no-client-side-data-fetching": "error";
|
|
@@ -417,6 +426,7 @@ declare const strictRules: {
|
|
|
417
426
|
readonly "@sarj/no-unnecessary-use-client": "error";
|
|
418
427
|
readonly "@sarj/no-unsafe-mock-casting": "error";
|
|
419
428
|
readonly "@sarj/no-zod-native-enum": "error";
|
|
429
|
+
readonly "@sarj/test-loops-over-literal-cases": "warn";
|
|
420
430
|
readonly "@sarj/prefer-constant-time-secret-compare": "error";
|
|
421
431
|
readonly "@sarj/prefer-discriminated-union": "error";
|
|
422
432
|
readonly "@sarj/prefer-input-group-search": "error";
|
|
@@ -456,9 +466,12 @@ type FlatPreset = {
|
|
|
456
466
|
declare const plugin: {
|
|
457
467
|
meta: {
|
|
458
468
|
readonly name: "@sarj/eslint-plugin";
|
|
459
|
-
readonly version: "9.
|
|
469
|
+
readonly version: "9.15.0";
|
|
460
470
|
};
|
|
461
471
|
rules: {
|
|
472
|
+
"duplicate-test-body": _typescript_eslint_utils_ts_eslint.RuleModule<"duplicateTestBody", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
473
|
+
name: string;
|
|
474
|
+
};
|
|
462
475
|
"enforce-file-structure": _typescript_eslint_utils_ts_eslint.RuleModule<"importsFirst" | "useServerDirective", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
463
476
|
name: string;
|
|
464
477
|
};
|
|
@@ -468,7 +481,7 @@ declare const plugin: {
|
|
|
468
481
|
"no-client-side-data-fetching": _typescript_eslint_utils_ts_eslint.RuleModule<"noClientFetch", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
469
482
|
name: string;
|
|
470
483
|
};
|
|
471
|
-
"no-comment-cruft": _typescript_eslint_utils_ts_eslint.RuleModule<"commentedOutCode" | "sectionBanner" | "fileHeaderPreamble" | "commentWall" | "redundantNarration" | "untrackedTodo", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
484
|
+
"no-comment-cruft": _typescript_eslint_utils_ts_eslint.RuleModule<"commentedOutCode" | "sectionBanner" | "fileHeaderPreamble" | "commentWall" | "redundantNarration" | "placeholderImplementation" | "untrackedTodo", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
472
485
|
name: string;
|
|
473
486
|
};
|
|
474
487
|
"no-conditional-in-test": _typescript_eslint_utils_ts_eslint.RuleModule<"noConditionalInTest", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
@@ -586,6 +599,9 @@ declare const plugin: {
|
|
|
586
599
|
"no-zod-native-enum": _typescript_eslint_utils_ts_eslint.RuleModule<"nativeEnum" | "enumOfTsEnum", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
587
600
|
name: string;
|
|
588
601
|
};
|
|
602
|
+
"test-loops-over-literal-cases": _typescript_eslint_utils_ts_eslint.RuleModule<"literalCaseLoop", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
603
|
+
name: string;
|
|
604
|
+
};
|
|
589
605
|
"prefer-constant-time-secret-compare": _typescript_eslint_utils_ts_eslint.RuleModule<"preferConstantTimeSecretCompare", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
590
606
|
name: string;
|
|
591
607
|
};
|