@vitest/eslint-plugin 1.1.3 → 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 CHANGED
@@ -23,7 +23,7 @@ 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.2";
26
+ const version = "1.1.3";
27
27
 
28
28
  function createEslintRule(rule) {
29
29
  const createRule = utils.ESLintUtils.RuleCreator(
@@ -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,7 +4,7 @@ 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.2";
7
+ const version = "1.1.3";
8
8
 
9
9
  function createEslintRule(rule) {
10
10
  const createRule = ESLintUtils.RuleCreator(
@@ -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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vitest/eslint-plugin",
3
- "version": "1.1.3",
3
+ "version": "1.1.4",
4
4
  "license": "MIT",
5
5
  "description": "Eslint plugin for vitest",
6
6
  "repository": "vitest-dev/eslint-plugin-vitest",