From a83ba020cfd254021997d0e5bae292a60e18217a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcin=20R=C3=B3=C5=BCewski?= Date: Fri, 5 Jan 2024 23:27:28 +0100 Subject: [PATCH] chore(commitlint): added configuration file for commit linting (#16) This file holds the config for commit lint that makes sharing of commit conventions easy. --- .commitlintrc | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .commitlintrc diff --git a/.commitlintrc b/.commitlintrc new file mode 100644 index 0000000..ce0c5a7 --- /dev/null +++ b/.commitlintrc @@ -0,0 +1,25 @@ +# Copyright (c) 2023-2024 MDSANIMA DEV. All rights reserved. +# Licensed under the MIT license. + +# This is a configuration file for commit lint that makes sharing of commit conventions easy. +# Documentation: https://commitlint.js.org/ + + +extends: ["@commitlint/config-conventional"] +rules: + type-enum: + - 2 + - always + - [build, chore, ci, docs, feat, fix, perf, refactor, revert, style, test] + scope-case: + - 2 + - always + - kebab-case + subject-case: + - 2 + - never + - [upper-case, pascal-case, sentence-case, start-case] + body-case: + - 2 + - always + - sentence-case