Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(commitlint): change header-max-length rule
The rule between master and branch should be different to take the PR reference in consideration when merging
- Loading branch information
1 parent
7ab86be
commit 25e563f
Showing
3 changed files
with
14 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
module.exports = { | ||
extends: ['@commitlint/config-conventional'], | ||
rules: { | ||
'header-max-length': [2, 'always', 64] // 72 (default) - 8 for PR reference e.g. " (#1234)" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,7 @@ | ||
module.exports = { extends: ['@commitlint/config-conventional'] } | ||
module.exports = { | ||
extends: ['@commitlint/config-conventional'], | ||
rules: { | ||
// TODO(chrisbottin) Temporary change until master build is passing and commitlint-branch.config.js is committed | ||
'header-max-length': [2, 'always', 80] // 72 (default) + 8 for PR reference e.g. " (#1234) " | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters