Skip to content

Commit 3fb88a9

Browse files
committed
Fix: remove pre-commit list and add husky lint
1 parent 434059b commit 3fb88a9

File tree

3 files changed

+2
-11
lines changed

3 files changed

+2
-11
lines changed

.husky/pre-commit

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
. "$(dirname -- "$0")/_/husky.sh"
33

44
npm run lint
5+
npx stylelint "**/*.{css,scss,sass}" --fix

.pre-commit-config.yaml

Lines changed: 0 additions & 9 deletions
This file was deleted.

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
"build:components": "npm run compile-components && npm run process-components",
6060
"build": "npm run prebuild && npm run build:css && NODE_OPTIONS='--max-old-space-size=4076' npm run build:components",
6161
"release": "npm publish --access public",
62-
"lint": "eslint --ext .js,.jsx,.ts,.tsx . --fix",
62+
"lint": "eslint --ext .js,.jsx,.ts,.tsx . --fix && stylelint \"**/*.{css,scss,sass}\" --fix",
6363
"update-rad": "npm update @radui/ui",
6464
"setup:dependencies": "npm install --force",
6565
"setup": "npm run setup:dependencies"
@@ -115,7 +115,6 @@
115115
"jest-environment-jsdom": "29.7.0",
116116
"mkdirp": "^3.0.1",
117117
"postcss": "8.4.49",
118-
"pre-commit": "^1.2.2",
119118
"pretty-quick": "^4.0.0",
120119
"rimraf": "5.0.5",
121120
"rollup": "4.28.0",

0 commit comments

Comments
 (0)