-
Notifications
You must be signed in to change notification settings - Fork 1
/
.pre-commit-config.yaml
35 lines (35 loc) · 1.11 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
# 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: local
hooks:
- id: eslint
name: Eslint
description: 'Run static code linting'
entry: yarn lint --fix
language: node
files: \.[jt]sx?$ # *.js, *.jsx, *.ts and *.tsx
types: [file]