build(deps): 更新 eslint-plugin-unicorn 到 61.0.2

- 将 eslint-plugin-unicorn 从 60.0.0 升级到 61.0.2
- 修改 playwright 配置中的命令从 npm 到 pnpm
- 移除了多余的空格和换行符
This commit is contained in:
严浩
2025-09-09 10:24:30 +08:00
parent 46ca762a96
commit 5e79ffe9be
3 changed files with 8 additions and 10 deletions

View File

@@ -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,
}