-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
114 lines (114 loc) · 3.06 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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
---
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: trailing-whitespace
stages: [pre-commit]
args: [--markdown-linebreak-ext=md]
- id: end-of-file-fixer
stages: [pre-commit]
- id: check-yaml
stages: [pre-commit]
types: [yaml]
- id: check-added-large-files
stages: [pre-commit]
- repo: https://github.com/DavidAnson/markdownlint-cli2
rev: v0.15.0
hooks:
- id: markdownlint-cli2
args: [--config, .markdownlint.yml, --fix, "*.md","docs/*.md", "docs/**/*.md", "packages/changelogs/*.md"]
stages: [pre-commit]
types: [markdown]
- repo: https://github.com/crate-ci/typos
rev: typos-dict-v0.11.37
hooks:
- id: typos
stages: [pre-commit]
exclude: |
(?x)^(
.eslintcache |
eslint.config.mjs |
.gitignore |
.pre-commit-config.yaml |
.markdownlint.yml |
node_modules/|
packages/.*?/node_modules|
external/|
eslint.config.mjs)
types_or: [text]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.8.2
hooks:
- id: ruff
args: ["--fix"]
stages: [pre-commit]
types: [python]
- id: ruff-format
stages: [pre-commit]
types: [python]
- repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook
rev: v9.19.0
hooks:
- id: commitlint
stages: [commit-msg]
args: [--config, commitlint.config.ts]
- repo: local
hooks:
- id: shellcheck
language: system
name: Shellcheck
stages: [pre-commit]
entry: shellcheck -x -S error
types: [shell]
- id: build
name: Build
language: system
entry: bun run -b build
files: src/.*?.ts
types: [ts]
stages: [pre-commit]
- id: stylelint
name: Stylelint
language: system
entry: bun run -b stylelint --fix
files: src/assets/stylesheets/.*?.css
types: [css]
stages: [pre-commit]
- id: eslint
name: ESLint
language: system
entry: bun run -b eslint --fix
types: [ts, javascript]
exclude: |
(?x)^(
node_modules/|
packages/.*?/node_modules|
.vscode/|
external/|
docs/)
stages: [pre-commit]
- id: prettier
name: Prettier
language: system
entry: bun run -b prettier --write
types: [json, yaml, toml]
exclude: |
(?x)^(
node_modules/|
packages/.*?/node_modules|
external/)
stages: [pre-commit]
- id: commitizen
name: Commitizen
language: system
entry: bun run -b git-cz
exclude: |
(?x)^(
node_modules/|
packages/.*?/node_modules|
external/)
stages: [prepare-commit-msg]
types: [file]
branch:
always_run: true