-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.pre-commit-config.yaml
93 lines (87 loc) · 2.7 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
default_stages:
- pre-commit
- pre-push
- manual
fail_fast: true
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
# we comment this hook because use lfs is too strict for some novice contributors
# - id: check-added-large-files
- id: check-case-conflict
- id: check-executables-have-shebangs
- id: check-illegal-windows-names
- id: check-json
exclude: ".cspell.json|tsconfig.json" # we use commented json here
- id: check-merge-conflict
- id: check-shebang-scripts-are-executable
- id: check-symlinks
- id: check-toml
- id: check-vcs-permalinks
- id: check-xml
- id: check-yaml
- id: destroyed-symlinks
- id: detect-private-key
- id: end-of-file-fixer
- id: file-contents-sorter
files: ".cspell-*.txt"
- id: fix-byte-order-marker
- id: forbid-new-submodules
# - id: no-commit-to-branch
# args:
# - --branch
# - main
- id: trailing-whitespace
- repo: https://github.com/streetsidesoftware/cspell-cli
rev: v8.17.0
hooks:
- id: cspell
- repo: https://github.com/biomejs/pre-commit
rev: v0.6.1
hooks:
- id: biome-format
name: Biome Format (JavaScript/TypeScript)
additional_dependencies: ["@biomejs/biome@1.9.4"]
args:
- "--error-on-warnings"
- id: biome-lint
name: Biome Lint (JavaScript/TypeScript)
additional_dependencies: ["@biomejs/biome@1.9.4"]
args:
- "--unsafe"
- "--error-on-warnings"
- id: biome-check
name: Biome Check (JavaScript/TypeScript)
additional_dependencies: ["@biomejs/biome@1.9.4"]
args:
- "--unsafe"
- "--error-on-warnings"
- id: biome-ci
name: Biome CI (JavaScript/TypeScript)
additional_dependencies: ["@biomejs/biome@1.9.4"]
args:
- "--error-on-warnings"
- repo: local
hooks:
- id: tsc
name: Type Script Check (JavaScript/TypeScript)
entry: bun run tsc --noEmit
language: system
always_run: true
pass_filenames: false
# It's too strict for novice contributors without coding knowledge, that's why we disable it
# - repo: https://github.com/markdownlint/markdownlint
# rev: v0.13.0
# hooks:
# - id: markdownlint
# name: Markdown Lint (Markdown)
ci:
skip:
- tsc
autofix_commit_msg: "ci(pre-commit): auto fixes from pre-commit.com hooks"
autofix_prs: true
autoupdate_branch: "pre-commit-autoupdate"
autoupdate_commit_msg: "ci(pre-commit): pre-commit autoupdate"
autoupdate_schedule: weekly
submodules: false