-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
misc: allow more types in commitlint
- Loading branch information
1 parent
0984659
commit 5511e72
Showing
2 changed files
with
32 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 |
---|---|---|
@@ -1 +1,30 @@ | ||
export default { extends: ['@commitlint/config-conventional'] } | ||
const severity = { | ||
disable: 0, | ||
warn: 1, | ||
error: 2, | ||
} | ||
|
||
export default { | ||
extends: ['@commitlint/config-conventional'], | ||
rules: { | ||
'type-enum': [ | ||
severity.error, | ||
'always', | ||
[ | ||
'build', | ||
'chore', | ||
'misc', | ||
'other', | ||
'ci', | ||
'docs', | ||
'feat', | ||
'fix', | ||
'perf', | ||
'refactor', | ||
'revert', | ||
'style', | ||
'test', | ||
], | ||
], | ||
}, | ||
} |
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 |
---|---|---|
|
@@ -6,7 +6,8 @@ npm install --global \ | |
[email protected] \ | ||
[email protected] \ | ||
@commitlint/[email protected] \ | ||
@commitlint/[email protected] | ||
@commitlint/[email protected] \ | ||
@commitlint/[email protected] | ||
|
||
cargo install --git https://github.com/DenisGorbachev/cargo-doc2readme --branch dev | ||
cargo install cargo-machete | ||
|