From 6b279a272a4b21a6cdc626a35b189776ae3f8148 Mon Sep 17 00:00:00 2001 From: ray <1490493387@qq.com> Date: Wed, 12 Feb 2025 13:50:10 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20:hammer:=20=E4=BC=98=E5=8C=96=20eslint?= =?UTF-8?q?=20=E5=92=8C=20=20stylelint=20=E7=9A=84=E8=84=9A=E6=9C=AC?= =?UTF-8?q?=EF=BC=8C=E6=B7=BB=E5=8A=A0=E7=BC=93=E5=AD=98?= 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 e5e3a490..dd30df77 100644 --- a/package.json +++ b/package.json @@ -9,9 +9,9 @@ "preview": "vite preview", "build-only": "vite build", "type-check": "vue-tsc --noEmit", - "lint:eslint": "eslint --fix ./src", - "lint:prettier": "prettier --write \"**/*.{js,cjs,ts,json,tsx,css,less,scss,vue,html,md}\"", - "lint:stylelint": "stylelint \"**/*.{css,scss,vue}\" --fix", + "lint:eslint": "eslint --cache \"src/**/*.{vue,ts}\" --fix", + "lint:prettier": "prettier --write \"**/*.{js,cjs,ts,json,css,scss,vue,html,md}\"", + "lint:stylelint": "stylelint --cache \"**/*.{css,scss,vue}\" --fix", "lint:lint-staged": "lint-staged", "preinstall": "npx only-allow pnpm", "prepare": "husky", @@ -100,9 +100,10 @@ "stylelint": "^16.14.1", "stylelint-config-html": "^1.1.0", "stylelint-config-recess-order": "^6.0.0", + "stylelint-config-recommended": "^15.0.0", "stylelint-config-recommended-scss": "^14.1.0", "stylelint-config-recommended-vue": "^1.6.0", - "stylelint-config-standard": "^37.0.0", + "stylelint-prettier": "^5.0.3", "terser": "^5.38.0", "typescript": "^5.7.3", "typescript-eslint": "^8.23.0",