From 808b6c11ca91892161091cfd38e4fdaa035e1059 Mon Sep 17 00:00:00 2001 From: David Taliaferro Date: Mon, 9 Dec 2024 16:11:50 -0500 Subject: [PATCH] style:commit lint? --- .commitlintrc.js | 5 +++++ .pre-commit-config.yaml | 16 ++++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 .commitlintrc.js create mode 100644 .pre-commit-config.yaml diff --git a/.commitlintrc.js b/.commitlintrc.js new file mode 100644 index 0000000..483116d --- /dev/null +++ b/.commitlintrc.js @@ -0,0 +1,5 @@ +const Configuration = { + extends: ['@commitlint/config-conventional'], +}; + +module.exports = Configuration; \ No newline at end of file diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..f2f6062 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,16 @@ +repos: + # Ensure commit messages use Conventional Commits formatting; + # see also .commitlintrc.js. + - repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook + rev: v9.18.0 + hooks: + - id: commitlint + stages: [commit-msg] + additional_dependencies: ["@commitlint/config-conventional"] + + - repo: https://github.com/pre-commit/pre-commit-hooks + rev: v5.0.0 + hooks: + - id: check-yaml + - id: end-of-file-fixer + - id: trailing-whitespace