-
Notifications
You must be signed in to change notification settings - Fork 15
/
.pre-commit-config.yaml
41 lines (41 loc) · 1.29 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
# See http://pre-commit.com for more information
# See http://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/mirrors-prettier
# Use the sha / tag you want to point at, this needs
# to stay in sync with the package.json version
rev: 'v2.3.2'
hooks:
- id: prettier
args: [--write, --list-different]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.5.0
hooks:
- id: check-merge-conflict
- id: check-symlinks
- id: check-case-conflict
- id: check-executables-have-shebangs
- id: check-added-large-files
exclude: (yarn.lock|.yarn/|.pnp.cjs)
- id: check-json
exclude: (.vscode/|tsconfig.json)
- id: detect-private-key
- id: detect-aws-credentials
args: [--allow-missing-credentials]
- id: check-yaml
files: (yaml$|yml$)
- repo: https://github.com/thlorenz/doctoc
rev: v1.4.0
hooks:
- id: doctoc
exclude: (.github)
args: [--title, "\n## Table of Contents", --maxlevel, '5']
- repo: local
hooks:
- id: eslint
name: Eslint
description: 'Run static code linting'
entry: yarn lint --fix
language: node
files: \.js?$ # *.js, *.jsx, *.ts and *.tsx
types: [file]