-
Notifications
You must be signed in to change notification settings - Fork 13
/
.pre-commit-config.yaml
36 lines (36 loc) · 1.09 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.2.0
hooks:
- id: check-yaml
- id: check-added-large-files
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.1.0
hooks:
- id: prettier
additional_dependencies:
- prettier@3.2.5
- prettier-plugin-astro@0.13.0
- prettier-plugin-tailwindcss@0.5.11
- repo: local
hooks:
- id: vitest
name: Vitest
language: system
entry: docker-compose run --rm -T app npm run
args: [test, run]
files: '^(src/.+/.+\.(js|ts)x*|package(-lock)?\.json)'
pass_filenames: false
- id: docker_eslint
name: ESLint
language: system
entry: docker-compose run --rm -T app npm run
args: [lint]
files: '^(src/.+/.+\.(js|ts)x*|package(-lock)?\.json)'
- id: docker_frontend_build
name: Frontend Build
language: system
entry: docker-compose run --rm -T app npm run
args: [build]
files: '^src/.+/.+\.(astro|(js|ts)x*)'
pass_filenames: false