Skip to content

Commit e6ab5e1

Browse files
committed
chore: add commitlint & husky [#1]
1 parent 1238698 commit e6ab5e1

File tree

3 files changed

+2288
-0
lines changed

3 files changed

+2288
-0
lines changed

.husky/commit-msg

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/env sh
2+
. "$(dirname -- "$0")/_/husky.sh"
3+
4+
npx --no -- commitlint --edit ${1}

commitlint.config.js

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
/**
2+
* @description Configuration for commitlint
3+
* @author C. M. de Picciotto <[email protected]> (https://d3p1.dev/)
4+
* {@link https://commitlint.js.org/}
5+
* {@link https://www.conventionalcommits.org/en/v1.0.0/}
6+
*/
7+
module.exports = {
8+
/**
9+
* @note Resolve and load `@d3p1/commitlint-config`
10+
* from `node_modules`
11+
*/
12+
extends: ['@d3p1/commitlint-config']
13+
};

0 commit comments

Comments
 (0)