Skip to content

Commit

Permalink
build: update pre-commit rules to use pnpm
Browse files Browse the repository at this point in the history
Update husky and lint-staged to use pnpm instead of yarn.
  • Loading branch information
aloisklink committed Sep 29, 2022
1 parent 320e105 commit 9513e0e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

yarn pre-commit
pnpm run pre-commit
6 changes: 3 additions & 3 deletions .lintstagedrc.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"src/docs/**": ["yarn docs:build --git"],
"src/docs.mts": ["yarn docs:build --git"],
"src/docs/**": ["pnpm run docs:build --git"],
"src/docs.mts": ["pnpm run docs:build --git"],
"*.{ts,js,json,html,md,mts}": ["eslint --fix", "prettier --write"],
"*.jison": ["yarn lint:jison"]
"*.jison": ["pnpm run lint:jison"]
}

0 comments on commit 9513e0e

Please sign in to comment.