Add lint-staged

This commit is contained in:
Alex Gleason
2024-05-07 13:45:23 -05:00
parent 6391d625c2
commit 7ecad73490
2 changed files with 4 additions and 1 deletions

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/hook.sh"
deno fmt --check
deno run -A npm:lint-staged

3
.lintstagedrc Normal file
View File

@@ -0,0 +1,3 @@
{
"*.{ts,tsx,md}": "deno fmt"
}