-
Notifications
You must be signed in to change notification settings - Fork 2
/
.pre-commit-config.yaml
38 lines (38 loc) · 1.3 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.1.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-docstring-first
#- id: check-json
- id: check-yaml
- id: debug-statements
- id: name-tests-test
- id: requirements-txt-fixer
- repo: https://github.com/psf/black
rev: 22.1.0
hooks:
- id: black
files: ^server/
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v2.5.1 # Use the sha or tag you want to point at
hooks:
- id: prettier
files: ^front-end/
- repo: https://github.com/pre-commit/mirrors-eslint
rev: v7.32.0 # Use the sha / tag you want to point at
hooks:
- id: eslint
files: ^front-end/.*\.[jt]sx?$ # *.js, *.jsx, *.ts and *.tsx
types: [file]
args: [-c, front-end/.eslintrc-pre-commit.json, --fix]
additional_dependencies:
- "@angular-eslint/[email protected]"
- "@angular-eslint/[email protected]"
- "@angular-eslint/[email protected]"
- "@typescript-eslint/[email protected]"
- "@typescript-eslint/[email protected]"