-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
42 lines (42 loc) · 1.4 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
# The config for the local pre-commit steps
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-merge-conflict
- id: check-added-large-files
args: [--maxkb=1024, --enforce-all]
- id: check-shebang-scripts-are-executable
- id: mixed-line-ending
args: [--fix, lf]
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
rev: v2.11.0
hooks:
- id: pretty-format-kotlin
args: [--autofix]
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.1.0
hooks:
- id: prettier
types_or: [css, scss, javascript, vue, ts, yaml, html, json]
- repo: https://github.com/shssoichiro/oxipng
rev: v9.0.0
hooks:
- id: oxipng
args: ["-o", "4", "--strip", "safe", "--alpha"]
- repo: local
hooks:
- id: yaml-extension-check
name: yaml extension check
description: Checks if all yaml files have the extension '.yaml'
entry: All Yaml files should have the *.yaml extension.
language: fail
files: .*\.(yml)
- id: jpeg-extension-check
name: jpeg extension check
description: Checks if all jpeg files have the extension '.jpeg'
entry: All JPEG files should have the *.jpeg extension.
language: fail
files: .*\.(jpg)