Skip to content

Commit

Permalink
chore: add .husky config.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Aug 29, 2021
1 parent e5bc1d7 commit f20e629
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx --no-install lint-staged
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"doc": "lerna exec --scope website -- npm run build",
"<<<<<<<": "<<<<<<<",
"version": "lerna version --no-changelog --no-push --no-git-tag-version",
"pretty-quick": "pretty-quick",
"pretty-quick": "pretty-quick --staged",
"prettier": "prettier --write \"**/*.{js,jsx,tsx,ts,less,md,json}\""
},
"devDependencies": {
Expand Down

0 comments on commit f20e629

Please sign in to comment.