generated from obsidianmd/obsidian-sample-plugin
-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy path.pre-commit-config.yaml
37 lines (35 loc) · 881 Bytes
/
.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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
hooks:
- id: check-added-large-files
args: [--maxkb=500]
exclude: ^assets/
- id: detect-aws-credentials
args: [--allow-missing-credentials]
- id: detect-private-key
- id: check-case-conflict
- id: check-symlinks
- id: check-merge-conflict
- id: destroyed-symlinks
- id: fix-byte-order-marker
- id: mixed-line-ending
- id: check-yaml
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
rev: v2.11.0
hooks:
- id: pretty-format-yaml
args: [--autofix]
- repo: https://github.com/pre-commit/mirrors-eslint
rev: v8.45.0
hooks:
- id: eslint
files: \.[jt]sx?$
types: [file]
- repo: local
hooks:
- id: keep-version-in-sync
name: keep-version-in-sync
language: node
pass_filenames: false
entry: npm run version