-
Notifications
You must be signed in to change notification settings - Fork 8
/
.pre-commit-config.yaml
32 lines (32 loc) · 1.08 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
repos:
- repo: https://github.com/pre-commit/mirrors-prettier
rev: "v3.1.0"
hooks:
- id: prettier
args: ["--ignore-path", ".prettierignore"]
types_or: [css, javascript, json]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: trailing-whitespace
exclude: "^(dist/|public/|tests/__snapshots__/).*$"
- id: check-added-large-files
- id: check-case-conflict
- id: check-executables-have-shebangs
- id: check-merge-conflict
- id: check-shebang-scripts-are-executable
- id: check-symlinks
- id: check-vcs-permalinks
- id: check-yaml
- id: destroyed-symlinks
- id: end-of-file-fixer
exclude: "^(dist/|public/|tests/__snapshots__/).*$"
- repo: local
hooks:
- id: check-build-assets
name: Ensure assets are current
description: Ensure that `npm run build` was run before commiting.
language: script
types_or: [css, javascript, svg, json]
pass_filenames: false
entry: .pre-commit/check-build-assets.sh