-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
73 lines (67 loc) · 2.28 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
73 lines (67 loc) · 2.28 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
66
67
68
69
70
71
72
73
default_stages: [pre-commit]
default_install_hook_types: [pre-commit, commit-msg]
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: check-case-conflict
- id: check-symlinks
- id: check-yaml
- id: destroyed-symlinks
- id: end-of-file-fixer
- id: forbid-new-submodules
- id: mixed-line-ending
- id: trailing-whitespace
- repo: local
hooks:
- id: deno-fmt
name: Deno format
entry: deno fmt
types_or: [file]
language: system
args: [--config, deno.jsonc, --permit-no-files]
exclude: '\.(svelte|md|yaml|yml)$'
- id: deno-lint
name: Deno lint
entry: deno lint
types_or: [file]
language: system
args: [--config, deno.jsonc, --permit-no-files, --fix]
- repo: https://github.com/codespell-project/codespell
rev: v2.4.1
hooks:
- id: codespell
stages: [pre-commit, commit-msg]
args:
[--ignore-words-list, 'te,ba,nd,ore,claus,manuel,sade,devlop,trough,coul,ontop,datas,hel', --check-filenames]
# Lock files contain package names that read as typos (e.g. the Rust
# `inout` crate in Cargo.lock) — skip them, like pnpm-lock.yaml.
exclude: '(pnpm-lock\.yaml|Cargo\.lock)$'
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.45.0
hooks:
- id: markdownlint
# MD013: line too long
# MD026: trailing punctuation in heading
# MD031: fenced code blocks should be surrounded by blank lines
# MD033: no inline HTML
# MD034: no bare URLs
# MD036: no emphasis as heading
# MD040: fenced code blocks should have a language
# MD041: first line in a file should be a top-level heading
args: [--disable, MD013, MD026, MD031, MD032, MD033, MD034, MD036, MD037, MD040, MD041, '--']
exclude: changelog\.md$
- repo: https://github.com/pre-commit/mirrors-eslint
rev: v9.38.0
hooks:
- id: eslint
types: [file]
args: [--fix]
files: \.(js|ts|svelte)$
additional_dependencies:
- eslint
- eslint-plugin-svelte
- svelte
- typescript
- typescript-eslint
- '@stylistic/eslint-plugin'