Skip to content

Commit

Permalink
fix: pre-commit 훅에서 lint-staged 명령이 정상적으로 동작하지 않는 버그 수정 (#244)
Browse files Browse the repository at this point in the history
  • Loading branch information
2wndrhs authored Jun 25, 2024
1 parent 66c603a commit a69780d
Show file tree
Hide file tree
Showing 5 changed files with 6,587 additions and 180 deletions.
5 changes: 4 additions & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
pnpm lint-staged
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npx lint-staged
3 changes: 3 additions & 0 deletions .lintstagedrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"src/**/*.{js,ts,jsx,tsx}": ["eslint --fix", "prettier --write"]
}
Loading

0 comments on commit a69780d

Please sign in to comment.