-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
57 lines (52 loc) · 1.31 KB
/
.pre-commit-config.yaml
File metadata and controls
57 lines (52 loc) · 1.31 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
# Install pre-commit (prek):
# brew install prek
# prek install
# Apply to all files without committing:
# prek run -a
# Update this file:
# prek autoupdate
# Commit without running pre-commit:
# git commit --no-verify
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-added-large-files
- id: check-case-conflict
- id: check-json
- id: check-yaml
- id: detect-private-key
- id: end-of-file-fixer
- id: mixed-line-ending
- id: trailing-whitespace
# Formatting
- repo: local
hooks:
- id: prettier
name: prettier
language: system
entry: bunx prettier --write --plugin prettier-plugin-astro
files: \.(js|mjs|ts|tsx|json|css|md|astro)$
# Linting
- repo: local
hooks:
- id: eslint
name: eslint
language: system
entry: bunx eslint --fix
files: \.(js|mjs|ts|astro)$
# Build
- repo: local
hooks:
- id: astro-build
name: astro-build
language: system
entry: bun run build
pass_filenames: false
always_run: true
# Markdown
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.45.0
hooks:
- id: markdownlint
args: [--fix, --disable, MD013, MD029, --]