This repository has been archived by the owner on May 12, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
69 lines (69 loc) · 3.16 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.1.0
hooks:
- id: check-yaml
exclude: ^(rootfs/webapp/static/css/other/|rootfs/webapp/static/js/other/|Logo-Sources|acarshub-typescript/css/other/|acarshub-typescript/js-other)
- id: end-of-file-fixer
exclude: ^(rootfs/webapp/static/css/other/|rootfs/webapp/static/js/other/|Logo-Sources|acarshub-typescript/css/other/|acarshub-typescript/js-other)
- id: trailing-whitespace
exclude: ^(rootfs/webapp/static/css/other/|rootfs/webapp/static/js/other/|Logo-Sources|acarshub-typescript/css/other/|acarshub-typescript/js-other)
- id: requirements-txt-fixer
exclude: ^(rootfs/webapp/static/css/other/|rootfs/webapp/static/js/other/|Logo-Sources|acarshub-typescript/css/other/|acarshub-typescript/js-other)
- id: mixed-line-ending
exclude: ^(rootfs/webapp/static/css/other/|rootfs/webapp/static/js/other/|Logo-Sources|acarshub-typescript/css/other/|acarshub-typescript/js-other)
- repo: https://github.com/hadolint/hadolint
rev: v2.8.0
hooks:
- id: hadolint
exclude: ^(rootfs/webapp/static/css/other/|rootfs/webapp/static/js/other/|Logo-Sources|acarshub-typescript/css/other/|acarshub-typescript/js-other)
args:
- "--ignore"
- "DL3003"
- "--ignore"
- "DL3006"
- "--ignore"
- "DL3010"
- "--ignore"
- "DL3008"
- "--ignore"
- "DL4001"
- "--ignore"
- "DL3007"
- repo: https://github.com/psf/black
rev: 21.12b0
hooks:
- id: black
- repo: https://github.com/pre-commit/mirrors-prettier
rev: 'v2.5.1' # Use the sha / tag you want to point at
hooks:
- id: prettier
files: \.[jt]sx?$ # *.js, *.jsx, *.ts and *.tsx
types: [file]
additional_dependencies:
- prettier@2.5.1
- '@typescript-eslint/eslint-plugin'
exclude: ^(rootfs/webapp/static/css/other/|rootfs/webapp/static/js/other/|Logo-Sources|acarshub-typescript/css/other/|acarshub-typescript/js-other)
- repo: https://github.com/pre-commit/mirrors-eslint
rev: v8.6.0
hooks:
- id: eslint
files: \.[j]sx?$ # *.js, *.jsx, *.ts and *.tsx
types: [file]
exclude: ^(rootfs/webapp/static/css/other/|rootfs/webapp/static/js/other/|Logo-Sources|acarshub-typescript/css/other/|acarshub-typescript/js-other)
additional_dependencies:
- eslint@8.6.0
- eslint-config-google@0.7.1
- babel-eslint@10.1.0
# - '@typescript-eslint/eslint-plugin'
# - repo: https://github.com/pre-commit/mirrors-csslint
# rev: 'v1.0.5' # Use the sha / tag you want to point at
# hooks:
# - id: csslint
# exclude: ^rootfs/webapp/static/css/other/
- repo: https://github.com/codespell-project/codespell.git
rev: 'v2.1.0' # Use the sha / tag you want to point at
hooks:
- id: codespell
types: [text]
exclude: ^(rootfs/webapp/static/css/other/|rootfs/webapp/static/js/other/|.+\.json|Logo-Sources|acarshub-typescript/css/other/|acarshub-typescript/js-other|rootfs/webapp/adsb.py|acarshub-typescript/src/interfaces.ts)