-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
36 lines (36 loc) · 1.45 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
hooks:
- id: trailing-whitespace # trims trailing whitespace.
- id: end-of-file-fixer # ensures that a file is either empty, or ends with one newline.
- id: check-added-large-files # prevents giant files from being committed.
args: ["--maxkb=20480"]
- id: check-case-conflict # checks for files that would conflict in case-insensitive filesystems.
- id: check-json # Attempts to load all json files to verify syntax.
- id: check-merge-conflict # checks for files that contain merge conflict strings.
- id: check-yaml # checks yaml files for parseable syntax.
- id: detect-private-key # detects the presence of private keys.
- id: mixed-line-ending # replaces or checks mixed line ending.
args: ["--fix=auto"]
- id: no-commit-to-branch
args:
- --branch=main
- repo: https://github.com/dnephin/pre-commit-golang
rev: v0.5.1
hooks:
- id: go-fmt # Runs gofmt
- id: go-mod-tidy # Tidies up and removes unused requires in go.mod using go mod tidy
- repo: https://github.com/renovatebot/pre-commit-hooks
rev: 32.221.1
hooks:
- id: renovate-config-validator
- repo: local
hooks:
- id: lpa-prettier
name: lpa-prettier
entry: yarn prettier
language: system
pass_filenames: true
types: [file]
files: .*\.(js|scss)$