From 492917ea400aff298771084326e9e80aaf9e37e3 Mon Sep 17 00:00:00 2001 From: Jannat Patel Date: Tue, 8 Apr 2025 20:53:44 +0530 Subject: [PATCH] chore: added commit lint rules --- commitlint.config.js | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 commitlint.config.js diff --git a/commitlint.config.js b/commitlint.config.js new file mode 100644 index 00000000..0c582f54 --- /dev/null +++ b/commitlint.config.js @@ -0,0 +1,26 @@ +module.exports = { + parserPreset: "conventional-changelog-conventionalcommits", + rules: { + "subject-empty": [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", + "deprecate", // deprecation decision + ], + ], + }, +};