Skip to content
This repository has been archived by the owner on Dec 5, 2024. It is now read-only.

Commit

Permalink
chore: added eslint fix and test to pre-commit hook
Browse files Browse the repository at this point in the history
  • Loading branch information
Blake E committed Dec 22, 2022
1 parent c88ec2c commit 2712fca
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npm run test -- --watch=false
npm run lint -- --fix
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"scripts": {
"start": "npm run dev",
"test": "vitest",
"lint": "eslint",
"build": "node esbuild.mjs",
"dev": "npm run build -- --watch"
},
Expand Down

0 comments on commit 2712fca

Please sign in to comment.