Skip to content
Snippets Groups Projects
Commit 83e3acff authored by Gregor Schulz's avatar Gregor Schulz
Browse files

lint and fmt in pre-commit

parent 2e745fa9
No related branches found
No related tags found
No related merge requests found
......@@ -7,3 +7,15 @@ repos:
entry: gitleaks protect --staged -v -c ../.gitleaks.toml
pass_filenames: false
always_run: true
- id: lint
name: deno lint
entry: deno lint
language: system
types: [ file, ts ]
pass_filenames: false
- id: format
name: deno fmt
entry: deno fmt
language: system
types: [ file, ts ]
pass_filenames: false
......@@ -11,10 +11,6 @@
"start": "deno run --allow-import --allow-net --allow-env --allow-read --lock=deno.lock --cached-only app/main.ts",
"docker": "docker build -t events . && docker run -it --init -p 8001:8001 events",
"smoketest": "BASE_URL=http://localhost:8006/graphql k6 run smoketest/main.js",
"pre-commit": {
"cmd": "deno task lint && deno task fmt:check",
"gitHook": "pre-commit"
}
},
"fmt": {
"lineWidth": 120,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment