From 497ce3c7723a59b4e4875d601366336c72a26251 Mon Sep 17 00:00:00 2001 From: Michele Cereda Date: Sat, 17 Feb 2024 18:35:48 +0100 Subject: [PATCH] chore(examples): convert to the dotfile version of commitlint config file --- .../{commitlint.config.js => dotfiles/.commitlintrc.js} | 2 ++ examples/dotfiles/.lefthook.yml | 6 ++++++ 2 files changed, 8 insertions(+) rename examples/{commitlint.config.js => dotfiles/.commitlintrc.js} (52%) 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: