-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.pre-commit-config.yaml
42 lines (42 loc) · 1.01 KB
/
.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
38
39
40
41
42
repos:
- repo: local
hooks:
- id: prettier
name: Prettier
entry: /usr/local/bin/prettier
language: system
types: [file]
files: \.(js)$
args: [--write]
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
rev: v2.12.0
hooks:
- id: pretty-format-yaml
args: [--autofix, --indent, '2']
types: [file]
files: \.(yaml|yml|manifest)$
- id: pretty-format-ini
args: [--autofix]
types: [file]
files: \.(properties)$
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: end-of-file-fixer
- id: check-added-large-files
args: [--maxkb=1000]
- id: check-docstring-first
- id: check-ast
- id: check-executables-have-shebangs
- id: check-shebang-scripts-are-executable
- id: pretty-format-json
args: [--autofix]
exclude: ^.vscode
- id: mixed-line-ending
args: [--fix=lf]
- repo: https://github.com/jumanjihouse/pre-commit-hooks
rev: 3.0.0
hooks:
- id: shellcheck
- id: shfmt
args: [-i 2 -ci -bn]