-
Notifications
You must be signed in to change notification settings - Fork 1
/
.pre-commit-config.yaml
48 lines (42 loc) · 1.32 KB
/
.pre-commit-config.yaml
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
39
40
41
42
43
44
45
46
default_stages: [ pre-commit ]
default_install_hook_types: [ pre-commit, commit-msg ]
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-merge-conflict
- id: check-case-conflict
- id: check-toml
- id: check-yaml
- id: trailing-whitespace
exclude: ^.*\.(lock)$||^docs\/
- id: end-of-file-fixer
exclude: ^.*\.(lock)$||^docs\/
- id: mixed-line-ending
exclude: ^.*\.(lock)$||^docs\/
- id: detect-private-key
- id: no-commit-to-branch
args: [ --branch, main ]
stages: [ commit-msg ]
- repo: https://github.com/biomejs/pre-commit
rev: "v0.1.0"
hooks:
- id: biome-check
additional_dependencies: [ "@biomejs/biome@1.4.1" ]
- repo: local
hooks:
- id: type_check_core
name: Run typecheck on dm-core
language: system
pass_filenames: false
entry: bash -c "cd packages/dm-core && tsc"
- id: type_check_plugins
name: Run typecheck on dm-core-plugins
language: system
pass_filenames: false
entry: bash -c "cd packages/dm-core-plugins && tsc --noEmit"
- repo: https://github.com/compilerla/conventional-pre-commit
rev: v2.3.0
hooks:
- id: conventional-pre-commit
stages: [ commit-msg ]