From 7ecad73490fef8e8d1160726a6f506ef97dfbad2 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Tue, 7 May 2024 13:45:23 -0500 Subject: [PATCH] Add lint-staged --- .hooks/pre-commit | 2 +- .lintstagedrc | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 .lintstagedrc 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