diff options
| author | Fuwn <[email protected]> | 2021-05-03 11:22:44 +0000 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2021-05-03 11:22:44 +0000 |
| commit | 8b00cf609c7e9597f9cc5b9280e2df12080d999a (patch) | |
| tree | 46a539ee65c26de77022de40443623e53f19eb3d | |
| parent | docs(main): nice commenting (diff) | |
| download | archived-whirl-8b00cf609c7e9597f9cc5b9280e2df12080d999a.tar.xz archived-whirl-8b00cf609c7e9597f9cc5b9280e2df12080d999a.zip | |
chore(git): finally implement commit message linting
| -rw-r--r-- | .husky/commit-msg | 4 | ||||
| -rw-r--r-- | commitlint.config.js | 18 |
2 files changed, 13 insertions, 9 deletions
diff --git a/.husky/commit-msg b/.husky/commit-msg new file mode 100644 index 0000000..0bd658f --- /dev/null +++ b/.husky/commit-msg @@ -0,0 +1,4 @@ +#!/bin/sh +. "$(dirname "$0")/_/husky.sh" + +npx --no-install commitlint --edit "$1" diff --git a/commitlint.config.js b/commitlint.config.js index d3ca128..dccf9fa 100644 --- a/commitlint.config.js +++ b/commitlint.config.js @@ -1,12 +1,12 @@ module.exports = { extends: ["@commitlint/config-conventional"], - rules: { - "scope-enum": [ - 2, - "always", - [ - "global", - ], - ], - }, + // rules: { + // "scope-enum": [ + // 2, + // "always", + // [ + // "global", + // ], + // ], + // }, }; |