Skip to content

Commit 98aca09

Browse files
committed
feat(lint): add pre-commit config, yamlignore
1 parent 121e31c commit 98aca09

File tree

2 files changed

+50
-0
lines changed

2 files changed

+50
-0
lines changed

.pre-commit-config.yaml

+50
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
repos:
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
3+
rev: v4.6.0
4+
hooks:
5+
- id: trailing-whitespace
6+
args: [--markdown-linebreak-ext=md]
7+
- id: check-case-conflict
8+
- id: check-merge-conflict
9+
- id: check-shebang-scripts-are-executable
10+
- id: check-symlinks
11+
- id: check-toml
12+
- id: check-xml
13+
- id: check-yaml
14+
args: [--allow-multiple-documents]
15+
- id: end-of-file-fixer
16+
- id: mixed-line-ending
17+
args: [--fix=auto]
18+
- id: pretty-format-json
19+
args: [--autofix, --no-sort-keys]
20+
21+
- repo: https://github.com/igorshubovych/markdownlint-cli
22+
rev: v0.41.0
23+
hooks:
24+
- id: markdownlint
25+
args: [-c, .markdownlint.yaml, --fix]
26+
27+
- repo: https://github.com/adrienverge/yamllint
28+
rev: v1.35.1
29+
hooks:
30+
- id: yamllint
31+
32+
- repo: https://github.com/pre-commit/mirrors-prettier
33+
rev: v4.0.0-alpha.8
34+
hooks:
35+
- id: prettier
36+
37+
- repo: https://github.com/shellcheck-py/shellcheck-py
38+
rev: v0.10.0.1
39+
hooks:
40+
- id: shellcheck
41+
42+
- repo: https://github.com/scop/pre-commit-shfmt
43+
rev: v3.9.0-1
44+
hooks:
45+
- id: shfmt
46+
47+
- repo: https://github.com/rhysd/actionlint
48+
rev: v1.7.1
49+
hooks:
50+
- id: actionlint

.yamlignore

Whitespace-only changes.

0 commit comments

Comments
 (0)