forked from hashintel/hash
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.lefthook.yml
38 lines (37 loc) · 1 KB
/
.lefthook.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
$schema: https://json.schemastore.org/lefthook.json
pre-commit:
parallel: true
skip:
- merge
- rebase
commands:
markdownlint:
tags: frontend style
glob: "*.md"
run: yarn run markdownlint --fix {staged_files} || true
stage_fixed: true
prettier:
tags: frontend style
glob: "*.{cjs,css,js,json,md,mdx,mjs,scss,ts,tsx,yml}"
run: yarn run prettier --write {staged_files} || true
stage_fixed: true
yarn:
tags: frontend style
glob: "{*/package.json, package.json}"
run: yarn fix:constraints && yarn fix:yarn-deduplicate
stage_fixed: true
sqlfluff:
tags: backend style
glob: "*.sql"
run: sqlfluff fix {staged_files} || true
stage_fixed: true
rust:
tags: backend style
glob: "*.rs"
run: cargo fmt -- {staged_files} || true
stage_fixed: true
toml:
tags: backend style
glob: "*.toml"
run: yarn run taplo format {staged_files} || true
stage_fixed: true