Skip to content

Commit

Permalink
chore: add commitlint on commit-msg hook
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelovicentegc committed Nov 30, 2023
1 parent d2d8505 commit 7ae8632
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 8 deletions.
4 changes: 4 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npm run commitlint ${1}
17 changes: 9 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@
"create-component": "plop component",
"create-icon": "plop icon",
"create-icon-variant": "plop icon-variant",
"prepare": "husky install"
"prepare": "husky install",
"commitlint": "commitlint --edit"
},
"devDependencies": {
"@vtex/shoreline-test-utils": "workspace:*",
"@commitlint/cli": "^9.1.2",
"@commitlint/config-conventional": "^9.1.2",
"@commitlint/prompt": "^9.1.2",
Expand All @@ -62,6 +62,8 @@
"@vanilla-extract/vite-plugin": "3.9.0",
"@vitejs/plugin-react": "4.1.0",
"@vtex/prettier-config": "^0.3.1",
"@vtex/shoreline-stylelint": "workspace",
"@vtex/shoreline-test-utils": "workspace:*",
"@vtex/tsconfig": "^0.5.6",
"chromatic": "^9.1.0",
"commitizen": "^4.2.0",
Expand All @@ -70,8 +72,8 @@
"eslint-config-vtex-react": "9.0.3",
"eslint-plugin-graphql": "4.0.0",
"eslint-plugin-import": "2.27.5",
"eslint-plugin-vitest": "0.3.10",
"eslint-plugin-tsc": "2.0.0",
"eslint-plugin-vitest": "0.3.10",
"husky": "^8.0.3",
"jsdom": "23.0.0",
"lerna": "7.1.4",
Expand All @@ -84,16 +86,15 @@
"react-dom": "18.2.0",
"react-test-renderer": "18.2.0",
"storybook": "^7.5.3",
"stylelint": "^15.11.0",
"stylelint-prettier": "^4.0.2",
"tslib": "2.6.2",
"tsup": "8.0.1",
"turbo": "1.4.3",
"typescript": "4.9.5",
"url-loader": "^4.1.0",
"vite": "5.0.2",
"vitest": "0.34.6",
"tsup": "8.0.1",
"stylelint": "^15.11.0",
"stylelint-prettier": "^4.0.2",
"@vtex/shoreline-stylelint": "workspace"
"vitest": "0.34.6"
},
"lint-staged": {
"*.{ts,tsx,js,jsx}": [
Expand Down

0 comments on commit 7ae8632

Please sign in to comment.