From e1ba4df8cfce539c5e9228162159fafd8cd855c3 Mon Sep 17 00:00:00 2001 From: waldronmatt Date: Tue, 14 May 2024 22:59:19 -0400 Subject: [PATCH] chore(vitest.cjs): downgrade eslint vitest to support older eslint api --- configs/eslint-config-custom/package.json | 2 +- configs/eslint-config-custom/vitest.cjs | 4 ++-- pnpm-lock.yaml | 22 +++++++++++----------- 3 files changed, 14 insertions(+), 14 deletions(-) diff --git a/configs/eslint-config-custom/package.json b/configs/eslint-config-custom/package.json index d9b85d3a..8a9fa2b1 100644 --- a/configs/eslint-config-custom/package.json +++ b/configs/eslint-config-custom/package.json @@ -24,7 +24,7 @@ "eslint-plugin-react-hooks": "4.6.0", "eslint-plugin-react-refresh": "0.4.6", "eslint-plugin-storybook": "0.8.0", - "eslint-plugin-vitest": "0.5.4", + "eslint-plugin-vitest": "0.4.1", "eslint-plugin-wc": "2.1.0" }, "devDependencies": { diff --git a/configs/eslint-config-custom/vitest.cjs b/configs/eslint-config-custom/vitest.cjs index 9e20f165..e3f642b1 100644 --- a/configs/eslint-config-custom/vitest.cjs +++ b/configs/eslint-config-custom/vitest.cjs @@ -2,6 +2,6 @@ module.exports = { globals: { vi: true, }, - // plugins: ['vitest'], - // extends: ['plugin:vitest/recommended'], + plugins: ['vitest'], + extends: ['plugin:vitest/recommended'], }; diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 581bdbbf..4ab6d328 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -212,8 +212,8 @@ importers: specifier: 0.8.0 version: 0.8.0(eslint@8.57.0)(typescript@5.4.3) eslint-plugin-vitest: - specifier: 0.5.4 - version: 0.5.4(@typescript-eslint/eslint-plugin@6.21.0)(eslint@8.57.0)(typescript@5.4.3) + specifier: 0.4.1 + version: 0.4.1(@typescript-eslint/eslint-plugin@6.21.0)(eslint@8.57.0)(typescript@5.4.3) eslint-plugin-wc: specifier: 2.1.0 version: 2.1.0(eslint@8.57.0) @@ -4342,7 +4342,7 @@ packages: engines: {node: '>=14.6'} dependencies: hosted-git-info: 4.1.0 - semver: 7.6.0 + semver: 7.6.2 validate-npm-package-name: 4.0.0 dev: false @@ -4371,7 +4371,7 @@ packages: path-temp: 2.1.0 ramda: /@pnpm/ramda@0.28.1 rename-overwrite: 5.0.0 - semver: 7.6.0 + semver: 7.6.2 ssri: 10.0.5 version-selector-type: 3.0.0 transitivePeerDependencies: @@ -4386,7 +4386,7 @@ packages: resolution: {integrity: sha512-yQ0pMthlw8rTgS/C9hrjne+NEnnSNevCjtdodd7i15I59jMBYciHifZ/vjg0NY+Jl+USTc3dBE+0h/4tdYjMKg==} engines: {node: '>=16.14'} dependencies: - semver: 7.6.0 + semver: 7.6.2 dev: false /@pnpm/resolver-base@11.1.0: @@ -8724,7 +8724,7 @@ packages: /builtins@5.1.0: resolution: {integrity: sha512-SW9lzGTLvWTP1AY8xeAMZimqDrIaSdLQUcVr9DMef51niJ022Ri87SwRRKYm4A6iHfkPaiVUu/Duw2Wc4J7kKg==} dependencies: - semver: 7.6.0 + semver: 7.6.2 dev: false /bundle-require@4.1.0(esbuild@0.19.12): @@ -10785,12 +10785,12 @@ packages: - typescript dev: false - /eslint-plugin-vitest@0.5.4(@typescript-eslint/eslint-plugin@6.21.0)(eslint@8.57.0)(typescript@5.4.3): - resolution: {integrity: sha512-um+odCkccAHU53WdKAw39MY61+1x990uXjSPguUCq3VcEHdqJrOb8OTMrbYlY6f9jAKx7x98kLVlIe3RJeJqoQ==} + /eslint-plugin-vitest@0.4.1(@typescript-eslint/eslint-plugin@6.21.0)(eslint@8.57.0)(typescript@5.4.3): + resolution: {integrity: sha512-+PnZ2u/BS+f5FiuHXz4zKsHPcMKHie+K+1Uvu/x91ovkCMEOJqEI8E9Tw1Wzx2QRz4MHOBHYf1ypO8N1K0aNAA==} engines: {node: ^18.0.0 || >= 20.0.0} peerDependencies: '@typescript-eslint/eslint-plugin': '*' - eslint: ^8.57.0 || ^9.0.0 + eslint: '>=8.0.0' vitest: '*' peerDependenciesMeta: '@typescript-eslint/eslint-plugin': @@ -11688,7 +11688,7 @@ packages: fs.realpath: 1.0.0 inflight: 1.0.6 inherits: 2.0.4 - minimatch: 3.0.5 + minimatch: 3.1.2 once: 1.4.0 path-is-absolute: 1.0.1 dev: false @@ -19155,7 +19155,7 @@ packages: resolution: {integrity: sha512-PSvMIZS7C1MuVNBXl/CDG2pZq8EXy/NW2dHIdm3bVP5N0PC8utDK8ttXLXj44Gn3J0lQE3U7Mpm1estAOd+eiA==} engines: {node: '>=10.13'} dependencies: - semver: 7.6.0 + semver: 7.6.2 dev: false /vfile-message@2.0.4: