Skip to content

Commit 137f8d7

Browse files
committed
chore: allow to ignore commit lint errors
Include "skip-lint" in your commit message to disable the commit lint check in case your message violates the rules, but you don't want to disable them in general.
1 parent c60adf9 commit 137f8d7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

commitlint.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,7 @@ module.exports = {
3232
// No need to restrict the body line length. That only gives issues with URLs etc.
3333
"body-max-line-length": [0, 'always']
3434
},
35+
ignores: [
36+
(message) => message.includes('skip-lint')
37+
],
3538
};

0 commit comments

Comments
 (0)