-
Notifications
You must be signed in to change notification settings - Fork 363
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
53 lines (53 loc) · 1.56 KB
/
.pre-commit-config.yaml
File metadata and controls
53 lines (53 loc) · 1.56 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
ci:
autoupdate_schedule: quarterly
skip: ["eslint", "stylelint"]
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.15.5
hooks:
- id: ruff-check
args: ["--fix"]
- id: ruff-format
- repo: https://github.com/executablebooks/mdformat
rev: 1.0.0
hooks:
- id: mdformat
args: ["--wrap", "80"]
additional_dependencies:
- mdformat-gfm
- repo: https://github.com/biomejs/pre-commit
rev: v2.4.6
hooks:
- id: biome-check
args: ["--error-on-warnings"]
- repo: local
hooks:
- id: prettier
name: prettier
language: node
entry: prettier --write --list-different
types_or: ["svelte", "yaml"]
require_serial: true
additional_dependencies:
- "prettier@3.8.1"
- "prettier-plugin-svelte@3.5.1"
- "svelte@5.53.7"
- id: stylelint
name: stylelint
language: node
entry: stylelint --fix --config frontend/stylelint.config.js
types_or: ["css", "svelte"]
require_serial: true
additional_dependencies:
- "stylelint@17.4.0"
- "stylelint-config-recess-order@7.6.1"
- "stylelint-config-standard@40.0.0"
- "postcss-html@1.8.1"
- id: eslint
name: eslint
language: node
entry: ./frontend/node_modules/eslint/bin/eslint.js --config
frontend/eslint.config.js --fix --max-warnings 0
require_serial: true
types_or: ["javascript", "svelte", "ts"]
files: "^frontend/"