@sarj/eslint-plugin 2.14.0 → 2.16.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 +2 -1
- package/dist/index.cjs +497 -20
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +34 -2
- package/dist/index.d.ts +34 -2
- package/dist/index.js +497 -20
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -203,7 +203,7 @@ declare const rules: {
|
|
|
203
203
|
"no-client-side-data-fetching": _typescript_eslint_utils_ts_eslint.RuleModule<"noClientFetch", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
204
204
|
name: string;
|
|
205
205
|
};
|
|
206
|
-
"no-comment-cruft": _typescript_eslint_utils_ts_eslint.RuleModule<"commentedOutCode" | "sectionBanner" | "fileHeaderPreamble" | "redundantNarration", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
206
|
+
"no-comment-cruft": _typescript_eslint_utils_ts_eslint.RuleModule<"commentedOutCode" | "sectionBanner" | "fileHeaderPreamble" | "redundantNarration" | "untrackedTodo", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
207
207
|
name: string;
|
|
208
208
|
};
|
|
209
209
|
"no-enum": _typescript_eslint_utils_ts_eslint.RuleModule<"noEnum", readonly [{
|
|
@@ -283,6 +283,9 @@ declare const rules: {
|
|
|
283
283
|
"single-public-export": _typescript_eslint_utils_ts_eslint.RuleModule<"renameJunkDrawer", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
284
284
|
name: string;
|
|
285
285
|
};
|
|
286
|
+
"primary-export-file-name": _typescript_eslint_utils_ts_eslint.RuleModule<"primaryExportMismatch", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
287
|
+
name: string;
|
|
288
|
+
};
|
|
286
289
|
"no-silent-promise-catch": _typescript_eslint_utils_ts_eslint.RuleModule<"silentCatch", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
287
290
|
name: string;
|
|
288
291
|
};
|
|
@@ -346,6 +349,15 @@ declare const rules: {
|
|
|
346
349
|
"no-tautological-expect": _typescript_eslint_utils_ts_eslint.RuleModule<"tautologicalComparison" | "tautologicalMatcher", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
347
350
|
name: string;
|
|
348
351
|
};
|
|
352
|
+
"require-interface-for-injected-service": _typescript_eslint_utils_ts_eslint.RuleModule<"requireInterface", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
353
|
+
name: string;
|
|
354
|
+
};
|
|
355
|
+
"prefer-non-nullable-collection": _typescript_eslint_utils_ts_eslint.RuleModule<"preferNonNullableCollection", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
356
|
+
name: string;
|
|
357
|
+
};
|
|
358
|
+
"no-implicit-attribute-access": _typescript_eslint_utils_ts_eslint.RuleModule<"noImplicitAttributeAccess", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
359
|
+
name: string;
|
|
360
|
+
};
|
|
349
361
|
};
|
|
350
362
|
declare const plugin: {
|
|
351
363
|
meta: {
|
|
@@ -359,7 +371,7 @@ declare const plugin: {
|
|
|
359
371
|
"no-client-side-data-fetching": _typescript_eslint_utils_ts_eslint.RuleModule<"noClientFetch", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
360
372
|
name: string;
|
|
361
373
|
};
|
|
362
|
-
"no-comment-cruft": _typescript_eslint_utils_ts_eslint.RuleModule<"commentedOutCode" | "sectionBanner" | "fileHeaderPreamble" | "redundantNarration", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
374
|
+
"no-comment-cruft": _typescript_eslint_utils_ts_eslint.RuleModule<"commentedOutCode" | "sectionBanner" | "fileHeaderPreamble" | "redundantNarration" | "untrackedTodo", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
363
375
|
name: string;
|
|
364
376
|
};
|
|
365
377
|
"no-enum": _typescript_eslint_utils_ts_eslint.RuleModule<"noEnum", readonly [{
|
|
@@ -439,6 +451,9 @@ declare const plugin: {
|
|
|
439
451
|
"single-public-export": _typescript_eslint_utils_ts_eslint.RuleModule<"renameJunkDrawer", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
440
452
|
name: string;
|
|
441
453
|
};
|
|
454
|
+
"primary-export-file-name": _typescript_eslint_utils_ts_eslint.RuleModule<"primaryExportMismatch", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
455
|
+
name: string;
|
|
456
|
+
};
|
|
442
457
|
"no-silent-promise-catch": _typescript_eslint_utils_ts_eslint.RuleModule<"silentCatch", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
443
458
|
name: string;
|
|
444
459
|
};
|
|
@@ -502,6 +517,15 @@ declare const plugin: {
|
|
|
502
517
|
"no-tautological-expect": _typescript_eslint_utils_ts_eslint.RuleModule<"tautologicalComparison" | "tautologicalMatcher", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
503
518
|
name: string;
|
|
504
519
|
};
|
|
520
|
+
"require-interface-for-injected-service": _typescript_eslint_utils_ts_eslint.RuleModule<"requireInterface", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
521
|
+
name: string;
|
|
522
|
+
};
|
|
523
|
+
"prefer-non-nullable-collection": _typescript_eslint_utils_ts_eslint.RuleModule<"preferNonNullableCollection", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
524
|
+
name: string;
|
|
525
|
+
};
|
|
526
|
+
"no-implicit-attribute-access": _typescript_eslint_utils_ts_eslint.RuleModule<"noImplicitAttributeAccess", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
527
|
+
name: string;
|
|
528
|
+
};
|
|
505
529
|
};
|
|
506
530
|
configs: {
|
|
507
531
|
recommended: {
|
|
@@ -531,6 +555,7 @@ declare const plugin: {
|
|
|
531
555
|
"@sarj/no-secret-in-log": string;
|
|
532
556
|
"@sarj/no-unsafe-cast": string;
|
|
533
557
|
"@sarj/single-public-export": string;
|
|
558
|
+
"@sarj/primary-export-file-name": string;
|
|
534
559
|
"@sarj/prefer-string-literal-union": string;
|
|
535
560
|
"@sarj/require-fetch-timeout": string;
|
|
536
561
|
"@sarj/no-silent-promise-catch": string;
|
|
@@ -549,6 +574,9 @@ declare const plugin: {
|
|
|
549
574
|
"@sarj/jsdoc-restates-signature": string;
|
|
550
575
|
"@sarj/trailing-value-narration": string;
|
|
551
576
|
"@sarj/no-tautological-expect": string;
|
|
577
|
+
"@sarj/require-interface-for-injected-service": string;
|
|
578
|
+
"@sarj/prefer-non-nullable-collection": string;
|
|
579
|
+
"@sarj/no-implicit-attribute-access": string;
|
|
552
580
|
};
|
|
553
581
|
};
|
|
554
582
|
strict: {
|
|
@@ -581,6 +609,7 @@ declare const plugin: {
|
|
|
581
609
|
"@sarj/no-secret-in-log": string;
|
|
582
610
|
"@sarj/no-unsafe-cast": string;
|
|
583
611
|
"@sarj/single-public-export": string;
|
|
612
|
+
"@sarj/primary-export-file-name": string;
|
|
584
613
|
"@sarj/prefer-string-literal-union": string;
|
|
585
614
|
"@sarj/require-fetch-timeout": string;
|
|
586
615
|
"@sarj/no-silent-promise-catch": string;
|
|
@@ -601,6 +630,9 @@ declare const plugin: {
|
|
|
601
630
|
"@sarj/jsdoc-restates-signature": string;
|
|
602
631
|
"@sarj/trailing-value-narration": string;
|
|
603
632
|
"@sarj/no-tautological-expect": string;
|
|
633
|
+
"@sarj/require-interface-for-injected-service": string;
|
|
634
|
+
"@sarj/prefer-non-nullable-collection": string;
|
|
635
|
+
"@sarj/no-implicit-attribute-access": string;
|
|
604
636
|
};
|
|
605
637
|
};
|
|
606
638
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -203,7 +203,7 @@ declare const rules: {
|
|
|
203
203
|
"no-client-side-data-fetching": _typescript_eslint_utils_ts_eslint.RuleModule<"noClientFetch", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
204
204
|
name: string;
|
|
205
205
|
};
|
|
206
|
-
"no-comment-cruft": _typescript_eslint_utils_ts_eslint.RuleModule<"commentedOutCode" | "sectionBanner" | "fileHeaderPreamble" | "redundantNarration", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
206
|
+
"no-comment-cruft": _typescript_eslint_utils_ts_eslint.RuleModule<"commentedOutCode" | "sectionBanner" | "fileHeaderPreamble" | "redundantNarration" | "untrackedTodo", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
207
207
|
name: string;
|
|
208
208
|
};
|
|
209
209
|
"no-enum": _typescript_eslint_utils_ts_eslint.RuleModule<"noEnum", readonly [{
|
|
@@ -283,6 +283,9 @@ declare const rules: {
|
|
|
283
283
|
"single-public-export": _typescript_eslint_utils_ts_eslint.RuleModule<"renameJunkDrawer", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
284
284
|
name: string;
|
|
285
285
|
};
|
|
286
|
+
"primary-export-file-name": _typescript_eslint_utils_ts_eslint.RuleModule<"primaryExportMismatch", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
287
|
+
name: string;
|
|
288
|
+
};
|
|
286
289
|
"no-silent-promise-catch": _typescript_eslint_utils_ts_eslint.RuleModule<"silentCatch", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
287
290
|
name: string;
|
|
288
291
|
};
|
|
@@ -346,6 +349,15 @@ declare const rules: {
|
|
|
346
349
|
"no-tautological-expect": _typescript_eslint_utils_ts_eslint.RuleModule<"tautologicalComparison" | "tautologicalMatcher", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
347
350
|
name: string;
|
|
348
351
|
};
|
|
352
|
+
"require-interface-for-injected-service": _typescript_eslint_utils_ts_eslint.RuleModule<"requireInterface", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
353
|
+
name: string;
|
|
354
|
+
};
|
|
355
|
+
"prefer-non-nullable-collection": _typescript_eslint_utils_ts_eslint.RuleModule<"preferNonNullableCollection", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
356
|
+
name: string;
|
|
357
|
+
};
|
|
358
|
+
"no-implicit-attribute-access": _typescript_eslint_utils_ts_eslint.RuleModule<"noImplicitAttributeAccess", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
359
|
+
name: string;
|
|
360
|
+
};
|
|
349
361
|
};
|
|
350
362
|
declare const plugin: {
|
|
351
363
|
meta: {
|
|
@@ -359,7 +371,7 @@ declare const plugin: {
|
|
|
359
371
|
"no-client-side-data-fetching": _typescript_eslint_utils_ts_eslint.RuleModule<"noClientFetch", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
360
372
|
name: string;
|
|
361
373
|
};
|
|
362
|
-
"no-comment-cruft": _typescript_eslint_utils_ts_eslint.RuleModule<"commentedOutCode" | "sectionBanner" | "fileHeaderPreamble" | "redundantNarration", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
374
|
+
"no-comment-cruft": _typescript_eslint_utils_ts_eslint.RuleModule<"commentedOutCode" | "sectionBanner" | "fileHeaderPreamble" | "redundantNarration" | "untrackedTodo", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
363
375
|
name: string;
|
|
364
376
|
};
|
|
365
377
|
"no-enum": _typescript_eslint_utils_ts_eslint.RuleModule<"noEnum", readonly [{
|
|
@@ -439,6 +451,9 @@ declare const plugin: {
|
|
|
439
451
|
"single-public-export": _typescript_eslint_utils_ts_eslint.RuleModule<"renameJunkDrawer", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
440
452
|
name: string;
|
|
441
453
|
};
|
|
454
|
+
"primary-export-file-name": _typescript_eslint_utils_ts_eslint.RuleModule<"primaryExportMismatch", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
455
|
+
name: string;
|
|
456
|
+
};
|
|
442
457
|
"no-silent-promise-catch": _typescript_eslint_utils_ts_eslint.RuleModule<"silentCatch", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
443
458
|
name: string;
|
|
444
459
|
};
|
|
@@ -502,6 +517,15 @@ declare const plugin: {
|
|
|
502
517
|
"no-tautological-expect": _typescript_eslint_utils_ts_eslint.RuleModule<"tautologicalComparison" | "tautologicalMatcher", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
503
518
|
name: string;
|
|
504
519
|
};
|
|
520
|
+
"require-interface-for-injected-service": _typescript_eslint_utils_ts_eslint.RuleModule<"requireInterface", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
521
|
+
name: string;
|
|
522
|
+
};
|
|
523
|
+
"prefer-non-nullable-collection": _typescript_eslint_utils_ts_eslint.RuleModule<"preferNonNullableCollection", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
524
|
+
name: string;
|
|
525
|
+
};
|
|
526
|
+
"no-implicit-attribute-access": _typescript_eslint_utils_ts_eslint.RuleModule<"noImplicitAttributeAccess", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
527
|
+
name: string;
|
|
528
|
+
};
|
|
505
529
|
};
|
|
506
530
|
configs: {
|
|
507
531
|
recommended: {
|
|
@@ -531,6 +555,7 @@ declare const plugin: {
|
|
|
531
555
|
"@sarj/no-secret-in-log": string;
|
|
532
556
|
"@sarj/no-unsafe-cast": string;
|
|
533
557
|
"@sarj/single-public-export": string;
|
|
558
|
+
"@sarj/primary-export-file-name": string;
|
|
534
559
|
"@sarj/prefer-string-literal-union": string;
|
|
535
560
|
"@sarj/require-fetch-timeout": string;
|
|
536
561
|
"@sarj/no-silent-promise-catch": string;
|
|
@@ -549,6 +574,9 @@ declare const plugin: {
|
|
|
549
574
|
"@sarj/jsdoc-restates-signature": string;
|
|
550
575
|
"@sarj/trailing-value-narration": string;
|
|
551
576
|
"@sarj/no-tautological-expect": string;
|
|
577
|
+
"@sarj/require-interface-for-injected-service": string;
|
|
578
|
+
"@sarj/prefer-non-nullable-collection": string;
|
|
579
|
+
"@sarj/no-implicit-attribute-access": string;
|
|
552
580
|
};
|
|
553
581
|
};
|
|
554
582
|
strict: {
|
|
@@ -581,6 +609,7 @@ declare const plugin: {
|
|
|
581
609
|
"@sarj/no-secret-in-log": string;
|
|
582
610
|
"@sarj/no-unsafe-cast": string;
|
|
583
611
|
"@sarj/single-public-export": string;
|
|
612
|
+
"@sarj/primary-export-file-name": string;
|
|
584
613
|
"@sarj/prefer-string-literal-union": string;
|
|
585
614
|
"@sarj/require-fetch-timeout": string;
|
|
586
615
|
"@sarj/no-silent-promise-catch": string;
|
|
@@ -601,6 +630,9 @@ declare const plugin: {
|
|
|
601
630
|
"@sarj/jsdoc-restates-signature": string;
|
|
602
631
|
"@sarj/trailing-value-narration": string;
|
|
603
632
|
"@sarj/no-tautological-expect": string;
|
|
633
|
+
"@sarj/require-interface-for-injected-service": string;
|
|
634
|
+
"@sarj/prefer-non-nullable-collection": string;
|
|
635
|
+
"@sarj/no-implicit-attribute-access": string;
|
|
604
636
|
};
|
|
605
637
|
};
|
|
606
638
|
};
|