-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
57 lines (53 loc) · 1.48 KB
/
.pre-commit-config.yaml
File metadata and controls
57 lines (53 loc) · 1.48 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
54
55
56
57
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.3.2
hooks:
# Run the linter.
- id: ruff
args: [--fix]
# Run the formatter.
- id: ruff-format
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: end-of-file-fixer
- id: trailing-whitespace
args: [--markdown-linebreak-ext=md]
- id: check-merge-conflict
- id: mixed-line-ending
# - repo: https://github.com/pre-commit/mirrors-prettier
# rev: v4.0.0-alpha.8
# hooks:
# - id: prettier
# args: ["--write", "./app/src/"]
# files: \.(vue|js|jsx|cjs|mjs|ts|tsx|cts|mts)$
- repo: https://github.com/pre-commit/mirrors-eslint
rev: v8.49.0
hooks:
- id: eslint
files: \.(vue|js|jsx|cjs|mjs|ts|tsx|cts|mts)$
types: [file]
args:
[
".",
"--ext",
".vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts",
"--fix",
"--ignore-path",
".gitignore",
]
additional_dependencies:
- eslint@8.49.0
- "@rushstack/eslint-patch@1.3.3"
- eslint-plugin-vue@9.17.0
# - repo: local
# hooks:
# - id: typescript
# files: ^app/
# language: system
# name: typescript
# entry: sh -c "cd app && npm run type-check"
# types_or: [ts, tsx, vue]
# pass_filenames: false
# require_serial: true