forked from nhcarrigan-2025-hackathon/mint-syntax
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
33 lines (31 loc) · 927 Bytes
/
.pre-commit-config.yaml
File metadata and controls
33 lines (31 loc) · 927 Bytes
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
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.12.1
hooks:
# Run the linter.
- id: ruff-check
files: ^backend/.*\.py$
args: [ --fix ]
# Run the formatter.
- id: ruff-format
files: ^backend/.*\.py$
- repo: https://github.com/pre-commit/mirrors-eslint
rev: v9.29.0
hooks:
- id: eslint
files: ^frontend/.*\.[jt]sx?$
additional_dependencies:
- eslint@9.29.0
- eslint-config-prettier@10.1.5
- eslint-plugin-react@6.10.3
- eslint-plugin-react-hooks@5.2.0
- eslint-plugin-react-refresh@0.4.20
args: ["--config=frontend/eslint.config.js", "."]
- repo: https://github.com/rbubley/mirrors-prettier
rev: v3.6.2
hooks:
- id: prettier
files: ^frontend/.*\.(ts|tsx|js|jsx|css|html|json)$
additional_dependencies:
- prettier@3.6.2