Repository navigation
Expand file tree
/
Copy pathprek.toml
More file actions
65 lines (58 loc) · 1.61 KB
/
Copy pathprek.toml
File metadata and controls
65 lines (58 loc) · 1.61 KB
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
#:schema https://www.schemastore.org/prek.json
[[repos]]
repo = "builtin"
hooks = [
{ id = "trailing-whitespace", args = [
"--markdown-linebreak-ext=md,mdx",
] },
{ id = "end-of-file-fixer" },
{ id = "check-json", exclude = "\\.vscode/.*\\.json|\\.oxlintrc\\.json|\\.oxfmtrc\\.json|tsconfig\\.json" },
{ id = "check-toml" },
{ id = "check-yaml" },
{ id = "mixed-line-ending", args = [
"--fix=lf",
] },
{ id = "check-symlinks" },
{ id = "destroyed-symlinks" },
{ id = "check-merge-conflict" },
{ id = "detect-private-key" },
{ id = "check-shebang-scripts-are-executable" },
{ id = "check-executables-have-shebangs" },
]
[[repos]]
repo = "https://github.com/editorconfig-checker/editorconfig-checker"
rev = "v3.8.0"
hooks = [{ id = "editorconfig-checker", exclude = "LICENSE$" }]
[[repos]]
repo = "https://github.com/astral-sh/ruff-pre-commit"
rev = "v0.15.20"
hooks = [{ id = "ruff-check", args = ["--fix"] }, { id = "ruff-format" }]
[[repos]]
repo = "local"
hooks = [
{ id = "oxfmt", name = "Oxfmt", entry = "pnpm oxfmt", language = "system", types_or = [
# Taken from the Oxc compatibility list: https://oxc.rs/compatibility.html
"javascript",
"ts",
"vue",
"css",
"html",
"json",
"yaml",
"markdown",
"mdx",
"toml",
], args = [
# Since there may be files which match `types_or` but are ignored by
# `.oxfmtrc.json`, we need to silence the error raised when the staged
# change only has the ignored files.
"--no-error-on-unmatched-pattern",
] },
]
# § project
# § =======
[[repos]]
repo = "https://github.com/astral-sh/ty-pre-commit"
rev = "v0.0.56"
hooks = [{ id = "ty" }]
# /§ project