From 1b40a08eea3d24756db9f57d7ffe7b57359bf357 Mon Sep 17 00:00:00 2001 From: ranqirong <274544338@qq.com> Date: Sat, 12 Oct 2024 12:50:23 +0800 Subject: [PATCH] =?UTF-8?q?build:=20=E9=80=9A=E8=BF=87lintstaged=E5=AF=B9s?= =?UTF-8?q?css=E6=96=87=E4=BB=B6=E8=BF=9B=E8=A1=8C=E5=A2=9E=E9=87=8F?= =?UTF-8?q?=E6=A0=A1=E9=AA=8C=EF=BC=8C=E9=81=BF=E5=85=8Dnpm=20run=20stylel?= =?UTF-8?q?int=E5=85=A8=E9=87=8F=E6=A0=A1=E9=AA=8C=E7=9A=84=E6=97=B6?= =?UTF-8?q?=E9=97=B4=E6=B5=AA=E8=B4=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .husky/pre-commit | 1 - package.json | 7 +++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.husky/pre-commit b/.husky/pre-commit index bab3cb09f..36af21989 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -2,4 +2,3 @@ . "$(dirname "$0")/_/husky.sh" npx lint-staged -npm run stylelint diff --git a/package.json b/package.json index c9f857c22..cda602427 100644 --- a/package.json +++ b/package.json @@ -36,8 +36,11 @@ } }, "lint-staged": { - "{packages,examples}/**/{src,examples}/**/**/*.{tsx,jsx,ts}": [ + "{packages,examples}/**/{src,examples}/**/**/*.{tsx,jsx,ts,scss}": [ "prettier --write" + ], + "*.{scss}": [ + "stylelint --fix" ] }, "dependencies": { @@ -157,4 +160,4 @@ "printBasicPrototype": false } } -} +} \ No newline at end of file