Skip to content

Commit

Permalink
Add pre-commit hook for linting/formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
jake-low committed Jan 8, 2025
1 parent 63b25c0 commit 1a276d1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions hooks/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
set -ex

yarn run check
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
"test": "vitest",
"test:cov": "vitest run --coverage",
"lint": "eslint src/",
"format": "biome format --write src/",
"format": "biome format --write",
"check": "biome ci && eslint src/",
"explore": "source-map-explorer --only-mapped --no-border-checks 'dist/**/*.js'"
},
"browserslist": [
Expand Down

0 comments on commit 1a276d1

Please sign in to comment.