-
Notifications
You must be signed in to change notification settings - Fork 86
/
.pre-commit-config.yaml
45 lines (44 loc) · 1.35 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
ci:
autofix_prs: false
autoupdate_schedule: 'quarterly'
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: check-added-large-files
- id: check-case-conflict
- id: check-json
- id: check-merge-conflict
- id: check-symlinks
- id: check-toml
- id: check-yaml
args: ['--unsafe']
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/astral-sh/ruff-pre-commit
# keep in sync with .github/workflows/ruff.yml
rev: 'v0.6.4'
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
- id: ruff-format
- repo: https://github.com/pre-commit/mirrors-prettier
rev: 'v2.7.1'
hooks:
- id: prettier
types_or: [markdown, css, scss, javascript, json, yaml, ts, tsx]
- repo: https://github.com/pre-commit/mirrors-eslint
rev: 'v8.1.0'
hooks:
- id: eslint
additional_dependencies:
- eslint-config-prettier@^6.15.0
- eslint-config-torchbox@^0.2.0
- eslint-plugin-import@^2.23.4
- '@typescript-eslint/[email protected]'
- '@typescript-eslint/[email protected]'