Add lint-staged

This commit is contained in:
Alex Gleason 2024-05-07 13:45:23 -05:00
parent 6391d625c2
commit 7ecad73490
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7
2 changed files with 4 additions and 1 deletions

View File

@ -1,4 +1,4 @@
#!/usr/bin/env sh #!/usr/bin/env sh
. "$(dirname -- "$0")/_/hook.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"
}