Skip to content

Commit

Permalink
🔨 Added Husky + Commitlint
Browse files Browse the repository at this point in the history
  • Loading branch information
lukecarr committed Nov 17, 2021
1 parent e67219f commit 1667643
Show file tree
Hide file tree
Showing 4 changed files with 458 additions and 18 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -104,4 +104,5 @@ dist
# Exceptions
!.editorconfig
!.eslintignore
!.eslintrc
!.eslintrc
!.husky
4 changes: 4 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx --no-install commitlint --edit
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,16 @@
"changelog": "gitmoji-changelog",
"lint": "yarn lint:eslint",
"lint:eslint": "eslint --ext .ts --fix .",
"prepack": "yarn build"
"prepack": "yarn build",
"prepare": "husky install"
},
"devDependencies": {
"@commitlint/cli": "^15.0.0",
"@nuxtjs/eslint-config-typescript": "^7.0.2",
"commitlint-config-gitmoji": "^2.2.5",
"eslint": "^8.2.0",
"gitmoji-changelog": "^2.2.1",
"husky": "^7.0.4",
"siroc": "^0.16.0",
"typescript": "^4.4.4"
}
Expand Down
Loading

0 comments on commit 1667643

Please sign in to comment.