Skip to content

Commit

Permalink
chore: husky 세팅
Browse files Browse the repository at this point in the history
  • Loading branch information
SEOKKAMONI committed Oct 16, 2023
1 parent 834cc86 commit 09f804b
Show file tree
Hide file tree
Showing 5 changed files with 718 additions and 251 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"

pnpm 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"

pnpm lint-staged
1 change: 1 addition & 0 deletions commitlint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = { extends: ['@commitlint/config-conventional'] };
13 changes: 12 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"build": "turbo run build",
"dev": "turbo run dev",
"lint": "turbo run lint",
"format": "prettier --write \"**/*.{ts,tsx,md}\""
"format": "prettier --write \"**/*.{ts,tsx,md}\"",
"prepare": "husky install"
},
"name": "marururu",
"packageManager": "pnpm@8.6.7",
Expand All @@ -14,10 +15,20 @@
"configs/*"
],
"devDependencies": {
"@commitlint/cli": "^17.8.0",
"@commitlint/config-conventional": "^17.8.0",
"@maru/eslint": "workspace:*",
"@turbo/gen": "^1.9.7",
"eslint": "^7.32.0",
"husky": "^8.0.0",
"lint-staged": "^15.0.1",
"prettier": "^2.5.1",
"turbo": "latest"
},
"lint-staged": {
"src/**/*.{js,jsx,ts,tsx}": [
"pnpm format",
"pnpm lint"
]
}
}
Loading

0 comments on commit 09f804b

Please sign in to comment.