From 05329c9372994c37d2a6fdfdec865efc588788b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20B=C3=B6hm?= Date: Mon, 14 Oct 2024 14:23:28 +0200 Subject: [PATCH] feat(commitlint): ignore "wip" messages in commitlint (#209) --- .changeset/modern-walls-give.md | 5 +++++ .vscode/settings.json | 8 +++++++- packages/commitlint-config/src/index.ts | 1 + 3 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 .changeset/modern-walls-give.md diff --git a/.changeset/modern-walls-give.md b/.changeset/modern-walls-give.md new file mode 100644 index 0000000..cda5810 --- /dev/null +++ b/.changeset/modern-walls-give.md @@ -0,0 +1,5 @@ +--- +'@mheob/commitlint-config': minor +--- + +ignore "wip" messages in commitlint diff --git a/.vscode/settings.json b/.vscode/settings.json index 1006ab8..c29fbd1 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -39,5 +39,11 @@ "scss", "pcss", "postcss" - ] + ], + + // SonarLint + "sonarlint.connectedMode.project": { + "connectionId": "mheob", + "projectKey": "mheob_config" + } } diff --git a/packages/commitlint-config/src/index.ts b/packages/commitlint-config/src/index.ts index 9e005dd..248a110 100644 --- a/packages/commitlint-config/src/index.ts +++ b/packages/commitlint-config/src/index.ts @@ -51,6 +51,7 @@ function getIssue() { } const options: UserConfig = { + ignores: [message => /wip/i.test(message)], prompt: { allowBreakingChanges: ['feat', 'fix'], allowCustomIssuePrefix: true,