Skip to content

Commit 846b88d

Browse files
committed
build: add pre-commit hooks for formatting and linting
1 parent 3fc1305 commit 846b88d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

deno.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@
2424
"format:check": "deno fmt --check",
2525
"lint": "deno lint",
2626
"lint:fix": "deno lint --fix",
27-
"documentation": "deno doc ./src/mod.ts"
27+
"documentation": "deno doc ./src/mod.ts",
28+
"hooks:install": "deno run --allow-read=deno.json,.git/hooks/ --allow-write=.git/hooks/ jsr:@hongminhee/deno-task-hooks",
29+
"hooks:pre-commit": "deno task format && deno task lint:fix"
2830
},
2931
"test": {
3032
"include": [

0 commit comments

Comments
 (0)