-
Notifications
You must be signed in to change notification settings - Fork 29
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
45 lines (41 loc) · 1.13 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
45 lines (41 loc) · 1.13 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-merge-conflict
- id: check-case-conflict
- id: check-json
exclude: tsconfig.json # tsconfig uses JSONC (comments allowed)
- id: pretty-format-json
args: [--autofix, --indent=2]
exclude: ^(bun\.lock|tsconfig\.json)$
- id: check-yaml
- id: mixed-line-ending
args: [--fix=lf]
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.44.0
hooks:
- id: markdownlint
args: [--fix]
- repo: local
hooks:
- id: eslint
name: ESLint
language: system
entry: bun run lint
pass_filenames: false
types: [ts]
- id: jsdoc-coverage
name: JSDoc coverage
language: system
entry: bun run check:jsdoc-coverage
pass_filenames: false
types: [ts]
- id: typecheck
name: TypeScript typecheck
language: system
entry: bun run typecheck
pass_filenames: false
types: [ts]