From 8384e709acfbdc67f99080034c637e341be8fd22 Mon Sep 17 00:00:00 2001 From: Mariusz Nowak Date: Thu, 23 May 2024 21:26:12 +0200 Subject: [PATCH] chore: Add `commitlint.config,js` --- commitlint.config.js | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 commitlint.config.js diff --git a/commitlint.config.js b/commitlint.config.js new file mode 100644 index 0000000..a238900 --- /dev/null +++ b/commitlint.config.js @@ -0,0 +1,22 @@ +"use strict"; + +module.exports = { + rules: { + "body-leading-blank": [2, "always"], + "body-max-line-length": [2, "always", 72], + "footer-leading-blank": [2, "always"], + "footer-max-line-length": [2, "always", 72], + "header-max-length": [2, "always", 72], + "scope-case": [2, "always", "start-case"], + "scope-enum": [2, "always", [""]], + "subject-case": [2, "always", "sentence-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", "style", "test"] + ] + } +};