-
Notifications
You must be signed in to change notification settings - Fork 1
/
.pre-commit-config.yaml
42 lines (41 loc) · 1.41 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
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.2.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
# - id: check-added-large-files
exclude: '.*\.md$' # mdでend-of-file-fixerが謎の挙動をするので除外
# hadolint
- repo: https://github.com/hadolint/hadolint
rev: v2.12.0
hooks:
- id: hadolint
# args: [--trusted-registry, grc.io, ./react-app/Dockerfile]
args: [./Dockerfile]
files: Dockerfile$
# ESLint
- repo: https://github.com/pre-commit/mirrors-eslint
rev: v8.54.0 # 一番新しいやつにした
hooks:
- id: eslint
files: \.[jt]sx?$ # *.js, *.jsx, *.ts and *.tsx
types: [file]
# prettier
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v2.5.1 # rvest.vs-code-prettier-eslintにあわせた
hooks:
- id: prettier
files: \.[jt]sx?$ # *.js, *.jsx, *.ts and *.tsx
# Markdown linter
# けっこう厳しいのでVSCodeのExtensionsで見てクリティカルな部分だけ直すでもいいかも
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.38.0
hooks:
- id: markdownlint
files: '.*\.md$'
types: [file]
args: [--disable, MD010, --disable, MD013]