-
-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
49 lines (45 loc) · 1.38 KB
/
.pre-commit-config.yaml
File metadata and controls
49 lines (45 loc) · 1.38 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
# Pre-commit hooks configuration for Ideon
# Install: sudo apt install pre-commit && pre-commit install
# Run manually: pre-commit run --all-files
repos:
# -------------------------
# YAML validation
# -------------------------
- repo: https://github.com/adrienverge/yamllint
rev: v1.33.0
hooks:
- id: yamllint
args: [-d, "{extends: default, rules: {line-length: {max: 200}}}"]
# -------------------------
# Hygiene checks
# -------------------------
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: trailing-whitespace
exclude: ^(.*\.(md|rst)|package-lock.json|\.gitignore|\.dockerignore|LICENSE)$
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
args: ["--maxkb=500"]
- id: check-merge-conflict
- id: check-case-conflict
# -------------------------
# Type Check & Lint
# -------------------------
- repo: local
hooks:
- id: type-check
name: type-check
entry: npm run check
language: system
pass_filenames: false
types_or: [javascript, ts, tsx]
# -------------------------
# Prettier
# -------------------------
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.1.0
hooks:
- id: prettier
exclude: ^(\.all-contributorsrc|package\.json|package-lock\.json)$