Merge pull request #270 from Ashutosh-Bhadauriya/feat/add-commitlint

feat: add commitlint
This commit is contained in:
Lucas Smith
2023-08-18 18:38:31 +10:00
committed by GitHub
5 changed files with 1445 additions and 1 deletions

4
.husky/commit-msg Executable file
View File

@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"
npm run commitlint -- $1

0
.husky/pre-commit Normal file → Executable file
View File

3
commitlint.config.cjs Normal file
View File

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

1434
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -6,9 +6,12 @@
"start": "cd apps && cd web && next start",
"lint": "turbo run lint",
"format": "prettier --write \"**/*.{js,jsx,cjs,mjs,ts,tsx,cts,mts,mdx}\"",
"prepare": "husky install"
"prepare": "husky install",
"commitlint": "commitlint --edit"
},
"devDependencies": {
"@commitlint/cli": "^17.7.1",
"@commitlint/config-conventional": "^17.7.0",
"dotenv": "^16.0.3",
"dotenv-cli": "^7.2.1",
"eslint": "^7.32.0",