Skip to content

Commit

Permalink
Merge pull request #10 from pierobassa/9-featscaffolding-add-husky-an…
Browse files Browse the repository at this point in the history
…d-conventional-commits

feat(scaffolding): add husky and pre commit hooks, enforce conventional commits
  • Loading branch information
akanoce committed Sep 23, 2023
2 parents 204ba5d + 508db11 commit fa5e867
Show file tree
Hide file tree
Showing 4 changed files with 989 additions and 18 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 --no -- commitlint --edit ${1}
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']}
8 changes: 8 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,20 @@
"typescript": "5.2.2"
},
"devDependencies": {
"@commitlint/cli": "^17.7.1",
"@commitlint/config-conventional": "^17.7.0",
"@next/eslint-plugin-next": "^13.5.2",
"@typescript-eslint/eslint-plugin": "^6.7.2",
"@typescript-eslint/parser": "^6.7.2",
"eslint-config-next": "^13.5.2",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-prettier": "^5.0.0",
"husky": "^8.0.3",
"prettier": "^3.0.3"
},
"husky": {
"hooks": {
"pre-commit": "yarn run lint && yarn run format:check"
}
}
}
Loading

0 comments on commit fa5e867

Please sign in to comment.