chore: Disable commitlint subject-case

This commit is contained in:
lisonge 2023-10-16 17:26:50 +08:00
parent f5e3bbda8c
commit 78367650ec
4 changed files with 13 additions and 1 deletions

View File

@ -1,4 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"
pnpm exec commitlint --edit ${1}
pnpm exec commitlint --config commitlint.config.cts --edit ${1}

8
commitlint.config.cts Normal file
View File

@ -0,0 +1,8 @@
import type { UserConfig } from '@commitlint/types';
module.exports = {
extends: ['@commitlint/config-conventional'],
rules: {
'subject-case': [0],
},
} as UserConfig;

View File

@ -23,6 +23,7 @@
"devDependencies": {
"@commitlint/cli": "^17.7.1",
"@commitlint/config-conventional": "^17.7.0",
"@commitlint/types": "^17.4.4",
"@gkd-kit/selector": "0.0.14",
"@types/lodash": "^4.14.195",
"@types/node": "^20.4.2",

View File

@ -11,6 +11,9 @@ devDependencies:
'@commitlint/config-conventional':
specifier: ^17.7.0
version: 17.7.0
'@commitlint/types':
specifier: ^17.4.4
version: 17.4.4
'@gkd-kit/selector':
specifier: 0.0.14
version: 0.0.14