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

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

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

10
pnpm-lock.yaml generated
View File

@@ -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))