@vitest/eslint-plugin 1.1.2 → 1.1.4
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 +3 -3
- package/dist/index.mjs +3 -3
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -23,11 +23,11 @@ function _interopNamespaceCompat(e) {
|
|
|
23
23
|
const path__namespace = /*#__PURE__*/_interopNamespaceCompat(path);
|
|
24
24
|
const ts__default = /*#__PURE__*/_interopDefaultCompat(ts);
|
|
25
25
|
|
|
26
|
-
const version = "1.1.
|
|
26
|
+
const version = "1.1.3";
|
|
27
27
|
|
|
28
28
|
function createEslintRule(rule) {
|
|
29
29
|
const createRule = utils.ESLintUtils.RuleCreator(
|
|
30
|
-
(ruleName) => `https://github.com/
|
|
30
|
+
(ruleName) => `https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/${ruleName}.md`
|
|
31
31
|
);
|
|
32
32
|
return createRule(rule);
|
|
33
33
|
}
|
|
@@ -773,7 +773,7 @@ const expectExpect = createEslintRule({
|
|
|
773
773
|
const unchecked = [];
|
|
774
774
|
const settings = parsePluginSettings(context.settings);
|
|
775
775
|
if (settings.typecheck)
|
|
776
|
-
assertFunctionNames.push("expectTypeOf");
|
|
776
|
+
assertFunctionNames.push("expectTypeOf", "assertType");
|
|
777
777
|
function checkCallExpression(nodes) {
|
|
778
778
|
for (const node of nodes) {
|
|
779
779
|
const index = node.type === utils.AST_NODE_TYPES.CallExpression ? unchecked.indexOf(node) : -1;
|
package/dist/index.mjs
CHANGED
|
@@ -4,11 +4,11 @@ import { isAbsolute, posix } from 'node:path';
|
|
|
4
4
|
import ts from 'typescript';
|
|
5
5
|
import { createRequire } from 'node:module';
|
|
6
6
|
|
|
7
|
-
const version = "1.1.
|
|
7
|
+
const version = "1.1.3";
|
|
8
8
|
|
|
9
9
|
function createEslintRule(rule) {
|
|
10
10
|
const createRule = ESLintUtils.RuleCreator(
|
|
11
|
-
(ruleName) => `https://github.com/
|
|
11
|
+
(ruleName) => `https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/${ruleName}.md`
|
|
12
12
|
);
|
|
13
13
|
return createRule(rule);
|
|
14
14
|
}
|
|
@@ -754,7 +754,7 @@ const expectExpect = createEslintRule({
|
|
|
754
754
|
const unchecked = [];
|
|
755
755
|
const settings = parsePluginSettings(context.settings);
|
|
756
756
|
if (settings.typecheck)
|
|
757
|
-
assertFunctionNames.push("expectTypeOf");
|
|
757
|
+
assertFunctionNames.push("expectTypeOf", "assertType");
|
|
758
758
|
function checkCallExpression(nodes) {
|
|
759
759
|
for (const node of nodes) {
|
|
760
760
|
const index = node.type === AST_NODE_TYPES.CallExpression ? unchecked.indexOf(node) : -1;
|