Skip to content

Commit

Permalink
misc: allow more types in commitlint
Browse files Browse the repository at this point in the history
  • Loading branch information
DenisGorbachev committed Jul 31, 2024
1 parent 0984659 commit 5511e72
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 2 deletions.
31 changes: 30 additions & 1 deletion commitlint.config.mjs
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',
],
],
},
}
3 changes: 2 additions & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5511e72

Please sign in to comment.