From 1c2384e8150c154c86539d5f4325383a9f931936 Mon Sep 17 00:00:00 2001 From: Branko Conjic Date: Wed, 20 Dec 2023 19:49:12 +0100 Subject: [PATCH] refactor: add commitlint config --- .commitlintrc.json | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/.commitlintrc.json b/.commitlintrc.json index c30e5a9..d913375 100644 --- a/.commitlintrc.json +++ b/.commitlintrc.json @@ -1,3 +1,19 @@ { - "extends": ["@commitlint/config-conventional"] + "rules": { + "body-leading-blank": [1, "always"], + "body-max-line-length": [2, "always", 100], + "footer-leading-blank": [1, "always"], + "footer-max-line-length": [2, "always", 100], + "header-max-length": [2, "always", 100], + "subject-case": [2, "never", ["sentence-case", "start-case", "pascal-case", "upper-case"]], + "subject-empty": [2, "never"], + "subject-full-stop": [2, "never", "."], + "type-case": [2, "always", "lower-case"], + "type-empty": [2, "never"], + "type-enum": [ + 2, + "always", + ["build", "chore", "ci", "docs", "feat", "fix", "perf", "refactor", "revert", "style", "test"] + ] + } }