Skip to content

Commit

Permalink
chore: add commitlint
Browse files Browse the repository at this point in the history
  • Loading branch information
TinsFox committed Sep 10, 2024
1 parent 693a659 commit 5c39bb1
Show file tree
Hide file tree
Showing 3 changed files with 424 additions and 1 deletion.
1 change: 1 addition & 0 deletions commitlint.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default { extends: ["@commitlint/config-conventional"] }
7 changes: 6 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
"scripts": {
"build": "tsc && vite build",
"build-storybook": "storybook build",
"commit": "commit",
"commitlint": "commitlint --edit",
"coverage": "vitest run --coverage",
"dev": "vite",
"docs:build": "vitepress build docs",
Expand Down Expand Up @@ -92,6 +94,8 @@
},
"devDependencies": {
"@chromatic-com/storybook": "^1.8.0",
"@commitlint/cli": "^19.4.1",
"@commitlint/config-conventional": "^19.4.1",
"@faker-js/faker": "^8.4.1",
"@storybook/addon-essentials": "^8.2.9",
"@storybook/addon-interactions": "^8.2.9",
Expand Down Expand Up @@ -133,7 +137,8 @@
"vitest": "^2.0.5"
},
"simple-git-hooks": {
"pre-commit": "npx lint-staged"
"pre-commit": "npx lint-staged",
"commit-msg": "npx --no -- commitlint --edit"
},
"lint-staged": {
"*": "eslint --fix"
Expand Down
Loading

0 comments on commit 5c39bb1

Please sign in to comment.