-
Notifications
You must be signed in to change notification settings - Fork 47
/
.pre-commit-config.yaml
82 lines (81 loc) · 2.51 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
default_install_hook_types:
- commit-msg
- pre-commit
- pre-push
repos:
- repo: https://github.com/radxa-docs/pre-commit-hooks
rev: 5a4b5c737aed720c8c5515edb42f6eba77f3f809
hooks:
- id: use-webp-image
- id: fix-en-dash-list
- id: tab-with-querystring-undefined
- id: tab-without-querystring
- id: no-full-uri-for-internal-pages
- id: check-external-links
- id: disable-sidebar_label
- id: index-to-README
- id: globally-available-components
- id: remove-category-json
- id: check-chinese
files: "i18n/en/docusaurus-plugin-content-docs/current"
exclude: "i18n/en/docusaurus-plugin-content-docs/current/roobi/advanced-feature.md"
- id: trademark-check
- repo: https://github.com/detailyang/pre-commit-shell
rev: v1.0.6
hooks:
- id: shell-lint
args: [-x]
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.1.0
hooks:
- id: prettier
stages:
- pre-commit
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: check-added-large-files
args: [--maxkb=2048]
- id: check-case-conflict
- id: check-json
- id: check-merge-conflict
- id: check-symlinks
- id: check-yaml
- id: end-of-file-fixer
- id: fix-byte-order-marker
- id: mixed-line-ending
- id: pretty-format-json
args: [--autofix, --no-ensure-ascii]
exclude: ^(i18n/en/code.json|i18n/en/docusaurus-plugin-content-blog/options.json|i18n/en/docusaurus-plugin-content-docs/current.json|i18n/en/docusaurus-theme-classic/footer.json|i18n/en/docusaurus-theme-classic/navbar.json)$
- id: trailing-whitespace
args: ["--markdown-linebreak-ext=md,mdx"]
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.1.0
hooks:
- id: prettier
stages:
- pre-commit
- repo: https://github.com/crate-ci/typos
rev: v1.18.2
hooks:
- id: typos
- repo: https://github.com/milin/gitown
rev: v0.1.7
hooks:
- id: gitown
args:
[
"--ownership_threshold=34",
"--codeowners_filename=.github/CODEOWNERS",
]
stages:
- manual
exclude: .github/CODEOWNERS
- repo: https://github.com/commitizen-tools/commitizen
rev: v3.16.0
hooks:
- id: commitizen
- id: commitizen-branch
args: [--rev-range, $PRE_COMMIT_FROM_REF..$PRE_COMMIT_TO_REF]
stages:
- pre-push