Skip to content

Commit

Permalink
commit hook with lint-staged biome (#283)
Browse files Browse the repository at this point in the history
* dev-tools: commit hook with lint-staged biome

* dev-tools: lint-staged only format

---------

Co-authored-by: akfm.sato <01047245@CF0286.local>
  • Loading branch information
AkifumiSato and akfm.sato committed Mar 28, 2024
1 parent a95ede1 commit c1bd17b
Show file tree
Hide file tree
Showing 3 changed files with 191 additions and 3 deletions.
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

pnpm exec lint-staged
pnpm run commit-check
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@
"commit-check": "pnpm check && turbo typecheck test",
"prepare": "husky install"
},
"lint-staged": {
"*.{js,jsx,ts,tsx,css,json,cjs,mjs}": "biome format --write"
},
"devDependencies": {
"@biomejs/biome": "1.6.3",
"@changesets/cli": "2.27.1",
Expand All @@ -31,6 +34,7 @@
"@vitejs/plugin-react": "4.2.1",
"husky": "9.0.11",
"jsdom": "24.0.0",
"lint-staged": "15.2.2",
"navigation-api-types": "0.5.1",
"playwright": "1.42.1",
"react": "18.2.0",
Expand Down
189 changes: 186 additions & 3 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c1bd17b

Please sign in to comment.