Skip to content

Commit

Permalink
⚙️ Chore(enviroment): add pre-commit hook to husky and config lint-…
Browse files Browse the repository at this point in the history
…staged
  • Loading branch information
INeedJobToStartWork committed Feb 8, 2024
1 parent 835ffc2 commit a629efd
Show file tree
Hide file tree
Showing 2 changed files with 12 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"

pnpm pre
8 changes: 8 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,14 @@
"unlink-cli:dev": "cd lib && pnpm unlink --global",
"unlink-cli:prod": "cd dist && pnpm unlink --global"
},
"lint-staged": {
"*": [
"git add .",
"pnpm format",
"pnpm lint:fix",
"pnpm lint"
]
},
"devDependencies": {
"@changesets/cli": "^2.27.1",
"@stylistic/eslint-plugin": "^1.6.0",
Expand Down

0 comments on commit a629efd

Please sign in to comment.