Skip to content

Commit

Permalink
feat: add pre-commit for lint-staged
Browse files Browse the repository at this point in the history
  • Loading branch information
scopsy committed Aug 7, 2022
1 parent 5c65876 commit fad2501
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npm run lint-staged
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"setup:project": "npx [email protected] i && node scripts/setup-env-files.js && npx pnpm build",
"commit": "cz",
"nx": "nx",
"lint-staged": "lint-staged",
"generate:provider": "npx hygen provider new",
"lint": "nx run-many --target=lint --all",
"test": "cross-env CI=true lerna run test:watch --parallel",
Expand Down

0 comments on commit fad2501

Please sign in to comment.