Skip to content

Commit

Permalink
build: add automations to control commits
Browse files Browse the repository at this point in the history
  • Loading branch information
seonggukchoi committed Sep 9, 2023
1 parent 3310adb commit 2e591a1
Show file tree
Hide file tree
Showing 6 changed files with 6,800 additions and 5,244 deletions.
4 changes: 4 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npx commitlint --edit "$1"
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"

npx lint-staged --no-stash
3 changes: 3 additions & 0 deletions .lintstagedrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"**/*.{t,j}s?(x)": "npm run lint"
}
1 change: 1 addition & 0 deletions commitlint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default { extends: ['@commitlint/config-conventional'] };
Loading

0 comments on commit 2e591a1

Please sign in to comment.