Merge branch 'lint-staged' into 'main'

Add lint-staged

See merge request soapbox-pub/ditto!229
This commit is contained in:
Alex Gleason 2024-05-07 18:51:14 +00:00
commit 66bae5eea7
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"
}