-
Notifications
You must be signed in to change notification settings - Fork 31
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
35 lines (32 loc) · 1.08 KB
/
.pre-commit-config.yaml
File metadata and controls
35 lines (32 loc) · 1.08 KB
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
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.7.3
hooks:
# Run the linter.
- id: ruff
files: \.py$
# Run the formatter.
- id: ruff-format
files: \.py$
args: [--config, format.quote-style = 'single']
- repo: local
hooks:
- id: eslint
name: eslint
entry: bash -c 'cd wavefront/client && pnpm eslint $(printf "%s\n" "$@" | sed "s|^wavefront/client/||")' --
language: system
files: ^wavefront/client/.*\.(js|jsx|ts|tsx)$
pass_filenames: true
- id: typescript-check
name: typescript-check
entry: bash -c 'cd wavefront/client && pnpm typecheck'
language: system
files: ^wavefront/client/.*\.(ts|tsx)$
pass_filenames: false
- id: prettier
name: prettier
entry: bash -c 'cd wavefront/client && pnpm prettier --write $(printf "%s\n" "$@" | sed "s|^wavefront/client/||")' --
language: system
files: ^wavefront/client/.*\.(js|jsx|ts|tsx|json|css|md)$
pass_filenames: true