-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
.pre-commit-config.yaml
102 lines (102 loc) 路 2.93 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: check-added-large-files
args: ["--maxkb=1024"]
exclude: |
(?x)^(
bundler/esbuild_v0.20.0.wasm
)$
- id: check-case-conflict
- id: check-executables-have-shebangs
- id: check-json
- id: check-merge-conflict
- id: check-shebang-scripts-are-executable
- id: check-symlinks
- id: check-toml
- id: check-xml
- id: check-yaml
args: [--allow-multiple-documents]
- id: destroyed-symlinks
- id: detect-private-key
- id: end-of-file-fixer
- id: fix-byte-order-marker
- id: forbid-new-submodules
- id: mixed-line-ending
args: ["--fix=lf"]
- id: pretty-format-json
args: ["--autofix", "--no-ensure-ascii", "--no-sort-keys"]
- id: trailing-whitespace
- repo: https://github.com/crate-ci/typos
rev: v1.16.23
hooks:
- id: typos
verbose: true
args: [
]
exclude: |
(?x)^(
docs/.*
)$
- repo: https://github.com/compilerla/conventional-pre-commit
rev: v3.0.0
hooks:
- id: conventional-pre-commit
stages: [commit-msg]
args: []
- repo: local
hooks:
- id: local-precommit
name: local pre-commit tasks
description: Runs local pre-commit tasks.
entry: bash -c 'deno run -A pre-commit.ts; git add -u' --
always_run: true
pass_filenames: false
language: system
- id: kebab-case-files-only
name: kebab-case files only
entry: filenames must be kebab-case only
language: fail
files: '(?!\.test\.[jt]sx?$)[^a-z0-9.\/\[\]@-]'
exclude: |
(?x)^(
_etc/.*|
.github/FUNDING.yml|
.github/ISSUE_TEMPLATE/bug_report.md|
.github/ISSUE_TEMPLATE/feature_request.md|
.github/PULL_REQUEST_TEMPLATE.md|
.git/COMMIT_EDITMSG|
appserver/README.md|
bundler/README.md|
bundler/esbuild_v0.20.0.wasm|
collector/README.md|
di/README.md|
directives/README.md|
docs/.*|
dotenv/README.md|
events/README.md|
file-loader/README.md|
fp/README.md|
functions/README.md|
jsx-runtime/README.md|
jsx-runtime.test/README.md|
lime/README.md|
lime.test/README.md|
parsing/README.md|
standards/README.md|
CODEOWNERS|
CODE_OF_CONDUCT.md|
CONTRIBUTING.md|
Dockerfile|
LICENSE|
README.md|
SECURITY.md
)$
- id: check-integrity
name: check integrity
description: Check formatting, linting, license headers, types and run tests.
entry: deno task ok
types_or: [javascript, jsx, ts, tsx, json, markdown]
pass_filenames: false
language: system