@vitest/eslint-plugin 1.3.13 → 1.3.15
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 +77 -73
- package/dist/index.cjs +5 -5
- package/dist/index.d.cts +15 -0
- package/dist/index.d.mts +15 -0
- package/dist/index.mjs +4 -4
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -190,6 +190,8 @@ declare const plugin: {
|
|
|
190
190
|
readonly "prefer-called-times": _typescript_eslint_utils_ts_eslint.RuleModule<"preferCalledTimes", [], PluginDocs, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
191
191
|
readonly "prefer-expect-type-of": _typescript_eslint_utils_ts_eslint.RuleModule<"preferExpectTypeOf", [], PluginDocs, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
192
192
|
readonly "warn-todo": _typescript_eslint_utils_ts_eslint.RuleModule<"warnTodo", [], PluginDocs, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
193
|
+
readonly "prefer-import-in-mock": _typescript_eslint_utils_ts_eslint.RuleModule<"preferImport", [], PluginDocs, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
194
|
+
readonly "prefer-called-exactly-once-with": _typescript_eslint_utils_ts_eslint.RuleModule<"preferCalledExactlyOnceWith", [], PluginDocs, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
193
195
|
};
|
|
194
196
|
readonly environments: {
|
|
195
197
|
readonly env: {
|
|
@@ -355,6 +357,8 @@ declare const plugin: {
|
|
|
355
357
|
readonly "prefer-called-times": _typescript_eslint_utils_ts_eslint.RuleModule<"preferCalledTimes", [], PluginDocs, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
356
358
|
readonly "prefer-expect-type-of": _typescript_eslint_utils_ts_eslint.RuleModule<"preferExpectTypeOf", [], PluginDocs, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
357
359
|
readonly "warn-todo": _typescript_eslint_utils_ts_eslint.RuleModule<"warnTodo", [], PluginDocs, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
360
|
+
readonly "prefer-import-in-mock": _typescript_eslint_utils_ts_eslint.RuleModule<"preferImport", [], PluginDocs, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
361
|
+
readonly "prefer-called-exactly-once-with": _typescript_eslint_utils_ts_eslint.RuleModule<"preferCalledExactlyOnceWith", [], PluginDocs, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
358
362
|
};
|
|
359
363
|
readonly environments: {
|
|
360
364
|
readonly env: {
|
|
@@ -402,6 +406,7 @@ declare const plugin: {
|
|
|
402
406
|
readonly "vitest/valid-describe-callback": "error";
|
|
403
407
|
readonly "vitest/require-local-test-context-for-concurrent-snapshots": "error";
|
|
404
408
|
readonly "vitest/no-import-node-test": "error";
|
|
409
|
+
readonly "vitest/prefer-called-exactly-once-with": "error";
|
|
405
410
|
};
|
|
406
411
|
};
|
|
407
412
|
readonly all: {
|
|
@@ -482,6 +487,8 @@ declare const plugin: {
|
|
|
482
487
|
readonly "vitest/prefer-called-times": "warn";
|
|
483
488
|
readonly "vitest/prefer-expect-type-of": "warn";
|
|
484
489
|
readonly "vitest/hoisted-apis-on-top": "warn";
|
|
490
|
+
readonly "vitest/prefer-import-in-mock": "warn";
|
|
491
|
+
readonly "vitest/prefer-called-exactly-once-with": "warn";
|
|
485
492
|
};
|
|
486
493
|
};
|
|
487
494
|
readonly env: {
|
|
@@ -520,6 +527,7 @@ declare const plugin: {
|
|
|
520
527
|
readonly "vitest/valid-describe-callback": "error";
|
|
521
528
|
readonly "vitest/require-local-test-context-for-concurrent-snapshots": "error";
|
|
522
529
|
readonly "vitest/no-import-node-test": "error";
|
|
530
|
+
readonly "vitest/prefer-called-exactly-once-with": "error";
|
|
523
531
|
};
|
|
524
532
|
};
|
|
525
533
|
readonly all: {
|
|
@@ -654,6 +662,8 @@ declare const plugin: {
|
|
|
654
662
|
readonly "prefer-called-times": _typescript_eslint_utils_ts_eslint.RuleModule<"preferCalledTimes", [], PluginDocs, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
655
663
|
readonly "prefer-expect-type-of": _typescript_eslint_utils_ts_eslint.RuleModule<"preferExpectTypeOf", [], PluginDocs, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
656
664
|
readonly "warn-todo": _typescript_eslint_utils_ts_eslint.RuleModule<"warnTodo", [], PluginDocs, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
665
|
+
readonly "prefer-import-in-mock": _typescript_eslint_utils_ts_eslint.RuleModule<"preferImport", [], PluginDocs, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
666
|
+
readonly "prefer-called-exactly-once-with": _typescript_eslint_utils_ts_eslint.RuleModule<"preferCalledExactlyOnceWith", [], PluginDocs, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
657
667
|
};
|
|
658
668
|
readonly environments: {
|
|
659
669
|
readonly env: {
|
|
@@ -701,6 +711,7 @@ declare const plugin: {
|
|
|
701
711
|
readonly "vitest/valid-describe-callback": "error";
|
|
702
712
|
readonly "vitest/require-local-test-context-for-concurrent-snapshots": "error";
|
|
703
713
|
readonly "vitest/no-import-node-test": "error";
|
|
714
|
+
readonly "vitest/prefer-called-exactly-once-with": "error";
|
|
704
715
|
};
|
|
705
716
|
};
|
|
706
717
|
readonly all: {
|
|
@@ -781,6 +792,8 @@ declare const plugin: {
|
|
|
781
792
|
readonly "vitest/prefer-called-times": "warn";
|
|
782
793
|
readonly "vitest/prefer-expect-type-of": "warn";
|
|
783
794
|
readonly "vitest/hoisted-apis-on-top": "warn";
|
|
795
|
+
readonly "vitest/prefer-import-in-mock": "warn";
|
|
796
|
+
readonly "vitest/prefer-called-exactly-once-with": "warn";
|
|
784
797
|
};
|
|
785
798
|
};
|
|
786
799
|
readonly env: {
|
|
@@ -883,6 +896,8 @@ declare const plugin: {
|
|
|
883
896
|
readonly "vitest/prefer-called-times": "warn";
|
|
884
897
|
readonly "vitest/prefer-expect-type-of": "warn";
|
|
885
898
|
readonly "vitest/hoisted-apis-on-top": "warn";
|
|
899
|
+
readonly "vitest/prefer-import-in-mock": "warn";
|
|
900
|
+
readonly "vitest/prefer-called-exactly-once-with": "warn";
|
|
886
901
|
};
|
|
887
902
|
};
|
|
888
903
|
readonly env: {
|
package/dist/index.d.mts
CHANGED
|
@@ -190,6 +190,8 @@ declare const plugin: {
|
|
|
190
190
|
readonly "prefer-called-times": _typescript_eslint_utils_ts_eslint.RuleModule<"preferCalledTimes", [], PluginDocs, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
191
191
|
readonly "prefer-expect-type-of": _typescript_eslint_utils_ts_eslint.RuleModule<"preferExpectTypeOf", [], PluginDocs, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
192
192
|
readonly "warn-todo": _typescript_eslint_utils_ts_eslint.RuleModule<"warnTodo", [], PluginDocs, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
193
|
+
readonly "prefer-import-in-mock": _typescript_eslint_utils_ts_eslint.RuleModule<"preferImport", [], PluginDocs, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
194
|
+
readonly "prefer-called-exactly-once-with": _typescript_eslint_utils_ts_eslint.RuleModule<"preferCalledExactlyOnceWith", [], PluginDocs, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
193
195
|
};
|
|
194
196
|
readonly environments: {
|
|
195
197
|
readonly env: {
|
|
@@ -355,6 +357,8 @@ declare const plugin: {
|
|
|
355
357
|
readonly "prefer-called-times": _typescript_eslint_utils_ts_eslint.RuleModule<"preferCalledTimes", [], PluginDocs, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
356
358
|
readonly "prefer-expect-type-of": _typescript_eslint_utils_ts_eslint.RuleModule<"preferExpectTypeOf", [], PluginDocs, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
357
359
|
readonly "warn-todo": _typescript_eslint_utils_ts_eslint.RuleModule<"warnTodo", [], PluginDocs, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
360
|
+
readonly "prefer-import-in-mock": _typescript_eslint_utils_ts_eslint.RuleModule<"preferImport", [], PluginDocs, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
361
|
+
readonly "prefer-called-exactly-once-with": _typescript_eslint_utils_ts_eslint.RuleModule<"preferCalledExactlyOnceWith", [], PluginDocs, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
358
362
|
};
|
|
359
363
|
readonly environments: {
|
|
360
364
|
readonly env: {
|
|
@@ -402,6 +406,7 @@ declare const plugin: {
|
|
|
402
406
|
readonly "vitest/valid-describe-callback": "error";
|
|
403
407
|
readonly "vitest/require-local-test-context-for-concurrent-snapshots": "error";
|
|
404
408
|
readonly "vitest/no-import-node-test": "error";
|
|
409
|
+
readonly "vitest/prefer-called-exactly-once-with": "error";
|
|
405
410
|
};
|
|
406
411
|
};
|
|
407
412
|
readonly all: {
|
|
@@ -482,6 +487,8 @@ declare const plugin: {
|
|
|
482
487
|
readonly "vitest/prefer-called-times": "warn";
|
|
483
488
|
readonly "vitest/prefer-expect-type-of": "warn";
|
|
484
489
|
readonly "vitest/hoisted-apis-on-top": "warn";
|
|
490
|
+
readonly "vitest/prefer-import-in-mock": "warn";
|
|
491
|
+
readonly "vitest/prefer-called-exactly-once-with": "warn";
|
|
485
492
|
};
|
|
486
493
|
};
|
|
487
494
|
readonly env: {
|
|
@@ -520,6 +527,7 @@ declare const plugin: {
|
|
|
520
527
|
readonly "vitest/valid-describe-callback": "error";
|
|
521
528
|
readonly "vitest/require-local-test-context-for-concurrent-snapshots": "error";
|
|
522
529
|
readonly "vitest/no-import-node-test": "error";
|
|
530
|
+
readonly "vitest/prefer-called-exactly-once-with": "error";
|
|
523
531
|
};
|
|
524
532
|
};
|
|
525
533
|
readonly all: {
|
|
@@ -654,6 +662,8 @@ declare const plugin: {
|
|
|
654
662
|
readonly "prefer-called-times": _typescript_eslint_utils_ts_eslint.RuleModule<"preferCalledTimes", [], PluginDocs, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
655
663
|
readonly "prefer-expect-type-of": _typescript_eslint_utils_ts_eslint.RuleModule<"preferExpectTypeOf", [], PluginDocs, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
656
664
|
readonly "warn-todo": _typescript_eslint_utils_ts_eslint.RuleModule<"warnTodo", [], PluginDocs, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
665
|
+
readonly "prefer-import-in-mock": _typescript_eslint_utils_ts_eslint.RuleModule<"preferImport", [], PluginDocs, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
666
|
+
readonly "prefer-called-exactly-once-with": _typescript_eslint_utils_ts_eslint.RuleModule<"preferCalledExactlyOnceWith", [], PluginDocs, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
657
667
|
};
|
|
658
668
|
readonly environments: {
|
|
659
669
|
readonly env: {
|
|
@@ -701,6 +711,7 @@ declare const plugin: {
|
|
|
701
711
|
readonly "vitest/valid-describe-callback": "error";
|
|
702
712
|
readonly "vitest/require-local-test-context-for-concurrent-snapshots": "error";
|
|
703
713
|
readonly "vitest/no-import-node-test": "error";
|
|
714
|
+
readonly "vitest/prefer-called-exactly-once-with": "error";
|
|
704
715
|
};
|
|
705
716
|
};
|
|
706
717
|
readonly all: {
|
|
@@ -781,6 +792,8 @@ declare const plugin: {
|
|
|
781
792
|
readonly "vitest/prefer-called-times": "warn";
|
|
782
793
|
readonly "vitest/prefer-expect-type-of": "warn";
|
|
783
794
|
readonly "vitest/hoisted-apis-on-top": "warn";
|
|
795
|
+
readonly "vitest/prefer-import-in-mock": "warn";
|
|
796
|
+
readonly "vitest/prefer-called-exactly-once-with": "warn";
|
|
784
797
|
};
|
|
785
798
|
};
|
|
786
799
|
readonly env: {
|
|
@@ -883,6 +896,8 @@ declare const plugin: {
|
|
|
883
896
|
readonly "vitest/prefer-called-times": "warn";
|
|
884
897
|
readonly "vitest/prefer-expect-type-of": "warn";
|
|
885
898
|
readonly "vitest/hoisted-apis-on-top": "warn";
|
|
899
|
+
readonly "vitest/prefer-import-in-mock": "warn";
|
|
900
|
+
readonly "vitest/prefer-called-exactly-once-with": "warn";
|
|
886
901
|
};
|
|
887
902
|
};
|
|
888
903
|
readonly env: {
|