From 5e79ffe9be60ddc961ff580e5c964806ef0920fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=A5=E6=B5=A9?= Date: Tue, 9 Sep 2025 10:24:30 +0800 Subject: [PATCH] =?UTF-8?q?build(deps):=20=E6=9B=B4=E6=96=B0=20eslint-plug?= =?UTF-8?q?in-unicorn=20=E5=88=B0=2061.0.2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将 eslint-plugin-unicorn 从 60.0.0 升级到 61.0.2 - 修改 playwright 配置中的命令从 npm 到 pnpm - 移除了多余的空格和换行符 --- package.json | 2 +- playwright.config.ts | 6 ++---- pnpm-lock.yaml | 10 +++++----- 3 files changed, 8 insertions(+), 10 deletions(-) diff --git a/package.json b/package.json index d33045d..34dd681 100644 --- a/package.json +++ b/package.json @@ -138,7 +138,7 @@ "eslint-plugin-oxlint": "^1.14.0", "eslint-plugin-perfectionist": "^4.15.0", "eslint-plugin-playwright": "^2.2.2", - "eslint-plugin-unicorn": "^60.0.0", + "eslint-plugin-unicorn": "^61.0.2", "eslint-plugin-vue": "^10.4.0", "husky": "^9.1.7", "jiti": "^2.5.1", diff --git a/playwright.config.ts b/playwright.config.ts index f0430aa..9e3b463 100644 --- a/playwright.config.ts +++ b/playwright.config.ts @@ -2,9 +2,7 @@ import { defineConfig, devices } from '@playwright/test'; import process from 'node:process'; const runningInVSCode = process.env.TERM_PROGRAM === 'vscode'; -const baseURL = runningInVSCode - ? 'http://localhost:4173' - : process.env.BASE_URL || 'https://vue-ts-example.oo1.dev'; +const baseURL = runningInVSCode ? 'http://localhost:4173' : process.env.BASE_URL || 'https://vue-ts-example.oo1.dev'; /** * Read environment variables from file. @@ -83,7 +81,7 @@ export default defineConfig({ // /* Run your local dev server before starting the tests */ webServer: runningInVSCode ? { - command: 'npm run build-only; npm run preview', + command: 'pnpm run build-only; pnpm run preview', port: 4173, reuseExistingServer: true, } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 6ea3583..79d4548 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -287,8 +287,8 @@ importers: specifier: ^2.2.2 version: 2.2.2(eslint@9.34.0(jiti@2.5.1)) eslint-plugin-unicorn: - specifier: ^60.0.0 - version: 60.0.0(eslint@9.34.0(jiti@2.5.1)) + specifier: ^61.0.2 + version: 61.0.2(eslint@9.34.0(jiti@2.5.1)) eslint-plugin-vue: specifier: ^10.4.0 version: 10.4.0(@typescript-eslint/parser@8.41.0(eslint@9.34.0(jiti@2.5.1))(typescript@5.9.2))(eslint@9.34.0(jiti@2.5.1))(vue-eslint-parser@10.2.0(eslint@9.34.0(jiti@2.5.1))) @@ -3530,8 +3530,8 @@ packages: eslint-config-prettier: optional: true - eslint-plugin-unicorn@60.0.0: - resolution: {integrity: sha512-QUzTefvP8stfSXsqKQ+vBQSEsXIlAiCduS/V1Em+FKgL9c21U/IIm20/e3MFy1jyCf14tHAhqC1sX8OTy6VUCg==} + eslint-plugin-unicorn@61.0.2: + resolution: {integrity: sha512-zLihukvneYT7f74GNbVJXfWIiNQmkc/a9vYBTE4qPkQZswolWNdu+Wsp9sIXno1JOzdn6OUwLPd19ekXVkahRA==} engines: {node: ^20.10.0 || >=21.0.0} peerDependencies: eslint: '>=9.29.0' @@ -9578,7 +9578,7 @@ snapshots: optionalDependencies: eslint-config-prettier: 10.1.8(eslint@9.34.0(jiti@2.5.1)) - eslint-plugin-unicorn@60.0.0(eslint@9.34.0(jiti@2.5.1)): + eslint-plugin-unicorn@61.0.2(eslint@9.34.0(jiti@2.5.1)): dependencies: '@babel/helper-validator-identifier': 7.27.1 '@eslint-community/eslint-utils': 4.9.0(eslint@9.34.0(jiti@2.5.1))