Skip to content

Commit

Permalink
chore: introduce commitlint
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshoku committed Oct 16, 2022
1 parent be2e987 commit 115686d
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 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"

yarn 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'] };
15 changes: 15 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"name": "numo-random",
"repository": "[email protected]:yoshoku/numo-random.git",
"author": "Atsushi Tatsuma <[email protected]>",
"license": "BSD-3-Clause",
"private": true,
"scripts": {
"prepare": "husky install"
},
"devDependencies": {
"@commitlint/cli": "^17.1.2",
"@commitlint/config-conventional": "^17.1.0",
"husky": "^8.0.1"
}
}

0 comments on commit 115686d

Please sign in to comment.