chore: add commitlint

This commit is contained in:
Isaac 2023-02-13 14:29:01 +00:00
parent 63c3cc729a
commit 380a84617a
No known key found for this signature in database
GPG Key ID: 0DE40AE37BBA5C33
4 changed files with 914 additions and 17 deletions

1
.commitlintrc.js Normal file
View File

@ -0,0 +1 @@
module.exports = { extends: ['@commitlint/config-conventional'] };

4
.husky/commit-msg Normal file
View File

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

View File

@ -66,9 +66,12 @@
"yaml": "^1.10.2" "yaml": "^1.10.2"
}, },
"devDependencies": { "devDependencies": {
"@commitlint/cli": "^17.4.3",
"@commitlint/config-conventional": "^17.4.3",
"all-contributors-cli": "^6.24.0", "all-contributors-cli": "^6.24.0",
"eslint": "^8.33.0", "eslint": "^8.33.0",
"eslint-plugin-unused-imports": "^2.0.0", "eslint-plugin-unused-imports": "^2.0.0",
"husky": "^8.0.3",
"nodemon": "^2.0.20" "nodemon": "^2.0.20"
}, },
"optionalDependencies": { "optionalDependencies": {

File diff suppressed because it is too large Load Diff