diff --git a/examples/commitlint.config.js b/examples/dotfiles/.commitlintrc.js similarity index 52% rename from examples/commitlint.config.js rename to examples/dotfiles/.commitlintrc.js index 28fe5c5..300c07b 100644 --- a/examples/commitlint.config.js +++ b/examples/dotfiles/.commitlintrc.js @@ -1 +1,3 @@ +// See https://commitlint.js.org/#/guides-local-setup . + module.exports = {extends: ['@commitlint/config-conventional']} diff --git a/examples/dotfiles/.lefthook.yml b/examples/dotfiles/.lefthook.yml index a42f273..e3cfa10 100644 --- a/examples/dotfiles/.lefthook.yml +++ b/examples/dotfiles/.lefthook.yml @@ -41,6 +41,12 @@ pre-commit: runner: node "any.go": runner: go run + +commit-msg: + commands: + commitlint: + run: commitlint --edit + pre-push: commands: packages-audit: