-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Integrate commitlint into the repository pre-commit check so commit messages can trigger semantic-release properly Co-authored-by: Simon Chen <[email protected]>
- Loading branch information
Showing
4 changed files
with
913 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
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,33 @@ | ||
const Configuration = { | ||
/* | ||
* Resolve and load @commitlint/config-conventional from node_modules. | ||
* Referenced packages must be installed | ||
*/ | ||
extends: ['@commitlint/config-conventional'], | ||
/* | ||
* Any rules defined here will override rules from @commitlint/config-conventional | ||
*/ | ||
rules: { | ||
'body-max-line-length': [2, 'always', Infinity], | ||
'subject-case': [ | ||
2, | ||
'never', | ||
[], | ||
], | ||
}, | ||
/* | ||
* Functions that return true if commitlint should ignore the given message. | ||
*/ | ||
ignores: [(commit) => commit === ''], | ||
/* | ||
* Whether commitlint uses the default ignore rules. | ||
*/ | ||
defaultIgnores: true, | ||
/* | ||
* Custom URL to show upon failure | ||
*/ | ||
helpUrl: | ||
'https://github.com/conventional-changelog/commitlint/#what-is-commitlint', | ||
}; | ||
|
||
module.exports = Configuration; |
Oops, something went wrong.