diff --git a/.hooks/pre-commit b/.hooks/pre-commit index ce8d809..c3451ed 100755 --- a/.hooks/pre-commit +++ b/.hooks/pre-commit @@ -1,4 +1,4 @@ #!/usr/bin/env sh . "$(dirname -- "$0")/_/hook.sh" -deno fmt --check +deno run -A npm:lint-staged diff --git a/.lintstagedrc b/.lintstagedrc new file mode 100644 index 0000000..d3a3e55 --- /dev/null +++ b/.lintstagedrc @@ -0,0 +1,3 @@ +{ + "*.{ts,tsx,md}": "deno fmt" +} \ No newline at end of file