diff --git a/.hooks/pre-commit b/.hooks/pre-commit index c3451ed..3b4807f 100644 --- a/.hooks/pre-commit +++ b/.hooks/pre-commit @@ -1,4 +1,4 @@ #!/usr/bin/env sh . "$(dirname -- "$0")/_/hook.sh" -deno run -A npm:lint-staged +deno task check diff --git a/.lintstagedrc.json b/.lintstagedrc.json deleted file mode 100644 index c1a949e..0000000 --- a/.lintstagedrc.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "*": ["deno fmt --check"], - "*.ts": ["deno lint --fix"] -} diff --git a/.vscode/extensions.json b/.vscode/extensions.json index b664948..a91e612 100644 --- a/.vscode/extensions.json +++ b/.vscode/extensions.json @@ -7,6 +7,6 @@ "usernamehw.errorlens", "bourhaouta.tailwindshades", "austenc.tailwind-docs", - "denoland.vscode-deno", + "denoland.vscode-deno" ] } diff --git a/deno.jsonc b/deno.jsonc index b98ea45..92cf233 100644 --- a/deno.jsonc +++ b/deno.jsonc @@ -2,6 +2,7 @@ "tasks": { "test": "deno test --allow-all --unstable-ffi", "test:dev": "deno test --allow-all --unstable-ffi --watch", + "check": "deno fmt && deno lint --fix && deno check **/*.ts && deno task test", "hook": "deno run --allow-read --allow-run --allow-write https://deno.land/x/deno_hooks@0.1.1/mod.ts" }, "workspace": [