-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
.pre-commit-config.yaml
107 lines (107 loc) · 3.22 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: check-added-large-files
args: ["--maxkb=1024"]
exclude: |
(?x)^(
pkg/bundler/esbuild_v0.20.0.wasm
)$
- id: check-case-conflict
- id: check-executables-have-shebangs
- id: check-json
exclude: |
(?x)^(
test/apps/vite-app/tsconfig.app.json|
test/apps/cf-workers-app/tsconfig.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"]
exclude: |
(?x)^(
test/apps/vite-app/tsconfig.app.json|
test/apps/cf-workers-app/tsconfig.json
)$
- id: trailing-whitespace
- repo: https://github.com/crate-ci/typos
rev: v1.23.2
hooks:
- id: typos
verbose: true
args:
- "--config"
- ".github/typos.toml"
exclude: |
(?x)^(
docs/.*|
)$
- repo: https://github.com/compilerla/conventional-pre-commit
rev: v3.3.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 task script:validate-configs; 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/.*|
.git/COMMIT_EDITMSG|
docs/.*|
pkg/@eser/app-runtime/README.md|
pkg/@eser/bundler/README.md|
pkg/@eser/bundler/esbuild_v0.20.0.wasm|
pkg/@eser/collector/README.md|
pkg/@eser/config/README.md|
pkg/@eser/di/README.md|
pkg/@eser/directives/README.md|
pkg/@eser/dotenv/README.md|
pkg/@eser/events/README.md|
pkg/@eser/fp/README.md|
pkg/@eser/functions/README.md|
pkg/@eser/jsx-runtime/README.md|
pkg/@eser/logging/README.md|
pkg/@eser/parsing/README.md|
pkg/@eser/standards/README.md|
pkg/@cool/cli/README.md|
pkg/@cool/lime/README.md|
test/apps/vite-app/README.md|
Dockerfile|
LICENSE|
README.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