chore: added commitlint for conventional commit linting (#5133)

* chore: add commitlint for conventional commits
* fix: fix commit-msg executable
This commit is contained in:
bdbch 2024-05-11 03:34:37 +02:00 committed by GitHub
parent edceec4898
commit e992e707b4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 1153 additions and 2 deletions

2
.husky/commit-msg Executable file
View File

@ -0,0 +1,2 @@
#!/usr/bin/env sh
npx --no -- commitlint --edit "$1"

1
commitlint.config.mjs Normal file
View File

@ -0,0 +1 @@
export default { extends: ['@commitlint/config-conventional'] }

1150
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -44,6 +44,8 @@
"@babel/plugin-proposal-optional-chaining": "^7.16.7",
"@babel/preset-env": "^7.16.11",
"@babel/preset-react": "^7.16.7",
"@commitlint/cli": "^19.3.0",
"@commitlint/config-conventional": "^19.2.2",
"@cypress/webpack-preprocessor": "^5.11.0",
"@lerna/batch-packages": "^3.16.0",
"@lerna/filter-packages": "^5.6.2",