Skip to content

Commit

Permalink
chore: update husky config
Browse files Browse the repository at this point in the history
  • Loading branch information
jamerrq committed Apr 14, 2024
1 parent 341d99d commit 345a71e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

bun lint:fix
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@
"build": "astro check && astro build",
"preview": "deno run --allow-net --allow-read --allow-env ./dist/server/entry.mjs",
"astro": "astro",
"lint": "prettier --write \"**/*.{js,jsx,ts,tsx,md,mdx,astro}\" && eslint --fix \"src/**/*.{js,ts,jsx,tsx,astro}\"",
"lint": "prettier --check \"**/*.{js,jsx,ts,tsx,md,mdx,astro}\" && eslint \"src/**/*.{js,ts,jsx,tsx,astro}\"",
"lint:fix": "prettier --write \"**/*.{js,jsx,ts,tsx,md,mdx,astro}\" && eslint --fix \"src/**/*.{js,ts,jsx,tsx,astro}\"",
"check-tsx": "tsc --noEmit --skipLibCheck --project tsconfig.json",
"local-build-and-preview": "bun lint && bun check-tsx && bun run build && bun run preview",
"build-unlighthouse-report": "unlighthouse --site jamerrq.deno.dev --build-static"
Expand Down

0 comments on commit 345a71e

Please sign in to comment.