Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,5 @@ jobs:
run: pnpm check-format
- name: Run type checks
run: pnpm typecheck
- name: Run commit linter
run: pnpm commit-lint
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"

pnpm commitlint --edit ${1}
3 changes: 3 additions & 0 deletions commitlint.config.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/* eslint-env node */

module.exports = { extends: ["@commitlint/config-conventional"] };
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@
"format": "prettier --write .",
"generate-types": "tsc --project ./src/tsconfig.json --noEmit false --emitDeclarationOnly true --outDir ./es",
"check-format": "prettier --check .",
"prepare": "husky install",
"storybook": "storybook dev -p 6006",
"build-storybook": "storybook build",
"prepare": "husky install"
"commit-lint": "pnpm commitlint --from=$(git rev-list \"origin/${GITHUB_BASE_REF}\"..HEAD | sed '1!d')~1"
},
"bugs": {
"url": "https://github.com/momesana/react-confirmation-code-input/issues"
Expand Down Expand Up @@ -45,6 +46,8 @@
"@babel/preset-env": "^7.20.2",
"@babel/preset-react": "^7.18.6",
"@babel/preset-typescript": "^7.21.0",
"@commitlint/cli": "^17.5.1",
"@commitlint/config-conventional": "^17.4.4",
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.10",
"@storybook/addon-essentials": "^7.0.0-rc.10",
"@storybook/addon-interactions": "^7.0.0-rc.10",
Expand Down
Loading