Skip to content

Commit

Permalink
lefthook for pre-push linting
Browse files Browse the repository at this point in the history
  • Loading branch information
arshaw committed Jan 31, 2024
1 parent fb921dc commit d5f1dd1
Show file tree
Hide file tree
Showing 3 changed files with 89 additions and 1 deletion.
4 changes: 4 additions & 0 deletions lefthook.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
pre-push:
commands:
lint:
run: pnpm run lint
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,16 @@
"type": "module",
"scripts": {
"preinstall": "npx only-allow pnpm",
"postinstall": "lefthook install",
"ci": "pnpm run clean && pnpm run lint && pnpm run build && pnpm run test",
"lint": "pnpm -r run lint",
"build": "pnpm -r run build",
"test": "pnpm -r --filter=!@js-temporal/temporal-test262-runner run test",
"clean": "pnpm -r run clean"
},
"devDependencies": {
"@biomejs/biome": "1.5.1"
"@biomejs/biome": "1.5.1",
"lefthook": "^1.6.1"
},
"devDependenciesNotes": {
"@biomejs/biome": [
Expand Down
82 changes: 82 additions & 0 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 d5f1dd1

Please sign in to comment.