Skip to content

Commit 460c678

Browse files
committed
Add linting to pre-commit hook
1 parent 2296124 commit 460c678

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.husky/pre-commit

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

44
echo "Running pre-commit checks..."
5-
npm run pre-commit-check
5+
pnpm pre-commit-check

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"typecheck": "tsc",
1616
"lint": "eslint . --ext .js,.jsx,.ts,.tsx",
1717
"prepare": "husky",
18-
"pre-commit-check": "npm run build"
18+
"pre-commit-check": "pnpm lint && pnpm build"
1919
},
2020
"dependencies": {
2121
"@docusaurus/core": "3.7.0",

0 commit comments

Comments
 (0)