-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
23 lines (23 loc) · 909 Bytes
/
.pre-commit-config.yaml
File metadata and controls
23 lines (23 loc) · 909 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# format-configs
repos:
- repo: local
hooks:
- id: gitleaks
name: gitleaks
entry: gitleaks git --staged --no-banner --redact
language: system
pass_filenames: false
priority: 10
- id: prettier
name: prettier
entry: npx --yes prettier --log-level error --config .prettierrc.json --ignore-path .prettierignore --write
language: system
files: '\\.(js|jsx|ts|tsx|json|jsonc|yaml|yml|css|scss|html|vue|svelte|astro)$'
exclude: ^\.pre-commit-config\.ya?ml$
priority: 0
- id: markdownlint
name: markdownlint
entry: npx --yes -p markdownlint-cli markdownlint --quiet --fix --config .markdownlint.json --ignore-path .markdownlintignore
language: system
files: '\\.(md|mdx)$'
priority: 0