Skip to content

Commit

Permalink
switch to husky, fix prettier (vercel#3179)
Browse files Browse the repository at this point in the history
  • Loading branch information
ForsakenHarmony authored Jan 5, 2023
1 parent ddbbbc0 commit daaeabf
Show file tree
Hide file tree
Showing 3 changed files with 115 additions and 94 deletions.
3 changes: 2 additions & 1 deletion .husky/pre-commit
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

pnpm lint-staged
pnpm exec lint-staged
cargo fmt --all
10 changes: 4 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,21 @@
"turbo": "cd cli && make turbo && cd .. && node turbow.js",
"turbo-prebuilt": "node turbow.js",
"docs": "pnpm -- turbo run dev --filter=docs --no-cache",
"run-example": "./scripts/run-example.sh"
"run-example": "./scripts/run-example.sh",
"prepare": "husky install"
},
"devDependencies": {
"@taplo/cli": "^0.5.2",
"@types/react": "18.0.26",
"eslint": "^8.29.0",
"eslint-config-next": "^13.0.6",
"eslint-config-prettier": "^8.5.0",
"husky": "^8.0.2",
"husky": "^8.0.0",
"lint-staged": "^13.1.0",
"next": "^13.0.6",
"npm-run-all": "^4.1.5",
"prettier": "^2.8.1",
"semver": "^7.3.8",
"simple-git-hooks": "^2.8.1",
"typescript": "^4.9.4"
},
"lint-staged": {
Expand All @@ -49,9 +50,6 @@
"cargo fmt --"
]
},
"simple-git-hooks": {
"pre-commit": "pnpm exec lint-staged && cargo fmt --all"
},
"pnpm": {
"overrides": {
"next@latest": "13.0.6"
Expand Down
Loading

0 comments on commit daaeabf

Please sign in to comment.