From fd0543dcc27e882ae7ff074cac6096f8cecd6fbe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=A5=E6=B5=A9?= Date: Wed, 5 Nov 2025 23:09:08 +0800 Subject: [PATCH] =?UTF-8?q?build(package.json):=20=E8=B0=83=E6=95=B4?= =?UTF-8?q?=E8=84=9A=E6=9C=AC=E6=89=A7=E8=A1=8C=E9=A1=BA=E5=BA=8F=E5=B9=B6?= =?UTF-8?q?=E5=A2=9E=E5=BC=BA=E6=A0=BC=E5=BC=8F=E5=8C=96=E4=B8=8E=E6=A3=80?= =?UTF-8?q?=E6=9F=A5=E5=91=BD=E4=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 3177ba4..2b4149b 100644 --- a/package.json +++ b/package.json @@ -8,21 +8,22 @@ "node": "^20.19.0 || >=22.12.0" }, "scripts": { - "_all": "run-s build-only lint format:prettier type-check test:unit:DisableWatch", + "_all": "run-s lint format:prettier type-check test:unit:DisableWatch build-only", "dev": "vite --port 4730 --host --strictPort", "build": "run-p type-check \"build-only {@}\" --", "build-only": "vite build", "preview": "vite preview --port 4731 --host --strictPort", "wrangler:dev": "wrangler dev --port 4732", - "format:prettier": "prettier --write src/", + "format:prettier": "prettier --config=.prettierrc.json --cache --write --log-level=warn src/", "type-check": "vue-tsc --build", "lint": "run-s lint:*", "lint:vue-i18n-extract": "vue-i18n-extract report --vueFiles './src/**/*.?(ts|tsx|vue)' --languageFiles './src/locales/**/*.?(json|yml|yaml|js)' --ci", - "lint:stylelint": "stylelint --fix --ignore-path .gitignore \"**/*.{css,less,scss,vue}\"", + "lint:stylelint": "stylelint --config=stylelint.config.mjs --cache --output-file=node_modules/.cache/stylelint/stylelint-report.json --cache-location=node_modules/.cache/stylelint/.stylelintcache --fix --ignore-path=.gitignore '**/*.{css,less,scss,vue}'", "lint:oxlint": "oxlint . --fix -D correctness --ignore-path .gitignore", - "lint:eslint": "eslint . --fix", + "lint:eslint": "eslint . --fix --config=eslint.config.ts --concurrency=auto --env-info --cache --cache-location=node_modules/.cache/eslint/.eslintcache", "test:unit:DisableWatch": "vitest --run", "test:playwright:headless": "HEADLESS=true playwright test --quiet", + "_stylelint-config": "stylelint --config=stylelint.config.mjs --print-config src/styles/scss/global.scss", "postinstall": "wrangler types", "prepare": "husky" },