forked from kirinnee/oreilly-downloader
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
37 lines (35 loc) · 913 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
36
37
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
hooks:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- id: mixed-line-ending
- repo: https://github.com/hadolint/hadolint
rev: v2.6.0
hooks:
- id: hadolint
- repo: local
hooks:
- id: json-fmt
name: Format JSON with prettier
entry: prettier
files: ^.*\.json$
language: system
- id: yaml-fmt
name: Format YAML with prettier
entry: prettier
files: ^.*\.(yaml|yml)$
language: system
- id: md-fmt
name: Format Markdown with prettier
entry: prettier
files: ^.*\.(MD|md)$
language: system
- id: nixpkgs-fmt
name: Format NIX files
entry: nixpkgs-fmt .
files: ^.*\.nix$
language: system
pass_filenames: false