Skip to content

Commit

Permalink
chore: add commit linting
Browse files Browse the repository at this point in the history
  • Loading branch information
tien committed Jul 30, 2024
1 parent cc6caf9 commit a3d6713
Show file tree
Hide file tree
Showing 4 changed files with 583 additions and 8 deletions.
1 change: 1 addition & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
yarn commitlint --edit $1
1 change: 1 addition & 0 deletions commitlint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default { extends: ["@commitlint/config-conventional"] };
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,14 @@
"scripts": {
"dev": "nx run-many -t dev",
"build": "nx run-many -t build",
"lint": "nx run-many -t lint"
"lint": "nx run-many -t lint",
"postinstall": "husky"
},
"devDependencies": {
"@commitlint/cli": "^19.3.0",
"@commitlint/config-conventional": "^19.2.2",
"@trivago/prettier-plugin-sort-imports": "^4.3.0",
"husky": "^9.1.4",
"nx": "^19.5.1",
"prettier": "^3.3.3"
}
Expand Down
Loading

0 comments on commit a3d6713

Please sign in to comment.