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