From 029bb644c4d7daa1ff477756828fcb82084bbdf9 Mon Sep 17 00:00:00 2001 From: Somraj Saha <31373860+Jarmos-san@users.noreply.github.com> Date: Wed, 8 Nov 2023 10:15:42 +0530 Subject: [PATCH] chore: add default configs to lint PR titles --- src/config.ts | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 src/config.ts diff --git a/src/config.ts b/src/config.ts new file mode 100644 index 0000000..8b77d3a --- /dev/null +++ b/src/config.ts @@ -0,0 +1,30 @@ +import { UserConfig } from "@commitlint/types"; + +// INFO: These are the default configurations provided by the Action +const config: UserConfig = { + rules: { + "header-max-length": [2, "always", 72], + "body-empty": [2, "always"], + "type-enum": [ + 2, + "always", + [ + "build", + "chore", + "ci", + "docs", + "feat", + "fix", + "perf", + "refactor", + "revert", + "style", + "test" + ] + ], + "type-case": [2, "always", "lowercase"], + "type-empty": [2, "always"] + } +}; + +export default config;