-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add husky & lint-staged #93
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@@ -10,7 +10,7 @@ jobs: | |||
with: | |||
fetch-depth: 3 | |||
- name: Install dependencies | |||
run: cd frontend && npm ci | |||
run: cd frontend && HUSKY=0 npm ci |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
disableSnapshot: true; | ||
} | ||
} | ||
chromatic: { disableSnapshot: true }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
더 이상 EmailSend 컴포넌트에 대해 snapshot을 사용하지 않습니다.
#!/usr/bin/env sh | ||
. "$(dirname -- "$0")/_/husky.sh" | ||
|
||
cd frontend && npx lint-staged -q |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
원래는 npx lint-stage
로 사용하였으나, multiple run 처럼 보이는 문제가 발생하여 quite mode 옵션을 사용합니다.
관련 issue : lint-staged/lint-staged#1164 (comment)
설명
husky를 적용하여 commit 시 lint rule을 위반한 내용이 없는지 확인합니다.
관련 이슈
Fix #90
변경사항
코드적으로 변경되는 부분을 작성해주세요
스크린샷