chore(tools): use commithelper instead of commitlint
commitlint can't provide the user with a convenient prompt to create a fitting commit message, while commitizen is not able to lint an existing commit message. The newly released commithelper does bothpull/948/head
parent
aad70ebb8c
commit
821d12af27
@ -1,4 +1,4 @@
|
||||
#!/bin/sh
|
||||
. "$(dirname "$0")/_/husky.sh"
|
||||
|
||||
npx commitlint --config commitlint.config.json --edit $1
|
||||
npm exec commithelper -- check --file $1 --fix
|
||||
|
@ -0,0 +1,4 @@
|
||||
#!/bin/sh
|
||||
. "$(dirname "$0")/_/husky.sh"
|
||||
|
||||
exec < /dev/tty && npm exec commithelper -- prompt --file $1
|
@ -1,31 +0,0 @@
|
||||
{
|
||||
"extends": ["@commitlint/config-conventional"],
|
||||
"rules": {
|
||||
"scope-empty": [2, "never"],
|
||||
"scope-enum": [
|
||||
2,
|
||||
"always",
|
||||
[
|
||||
"ci",
|
||||
"commitlint",
|
||||
"deps",
|
||||
"docs",
|
||||
"eslint",
|
||||
"eventlisteners",
|
||||
"examples",
|
||||
"exports",
|
||||
"format",
|
||||
"git",
|
||||
"github",
|
||||
"karma",
|
||||
"npm",
|
||||
"package",
|
||||
"relic",
|
||||
"style",
|
||||
"ttypescript",
|
||||
"typescript",
|
||||
"vscode"
|
||||
]
|
||||
]
|
||||
}
|
||||
}
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue