-
Notifications
You must be signed in to change notification settings - Fork 15
/
.pre-commit-config.yaml
84 lines (79 loc) · 2.84 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
exclude: .*\node_modules\|.*\static|.*\.sql
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: trailing-whitespace
files: ^site/
- id: mixed-line-ending
files: ^site/
- id: end-of-file-fixer
files: ^site/
- id: check-added-large-files
args: [ '--maxkb=5000' ]
files: ^site/
- id: check-case-conflict
files: ^site/
- id: check-merge-conflict
files: ^site/
- id: check-symlinks
files: ^site/
- id: check-yaml
files: ^site/
- id: fix-byte-order-marker
files: ^site/
# - id: requirements-txt-fixer
# files: ^site/
- repo: https://github.com/psf/black
rev: 24.2.0
hooks:
- id: black
files: ^site/
language_version: python3
args: [ --target-version=py311, --line-length=119 ]
# rev: v8.56.0
# hooks:
# - id: eslint
# files: ^site/
# types: [ file ]
# types_or: [ javascript, jsx, ts, tsx, vue ]
# exclude: ^site/node_modules/|^site/office/src/office/js/fontawesome/|^site/office/src/office/css/fontawesome/
# args: [ --fix --config=site/.eslintrc ]
# additional_dependencies:
# - "@babel/[email protected]"
# - "@babel/[email protected]"
# - "@babel/[email protected]"
# - "@babel/[email protected]"
# - [email protected]# - repo: https://github.com/pre-commit/mirrors-eslint
#
- repo: https://github.com/pre-commit/mirrors-eslint
rev: v9.17.0
hooks:
- id: eslint
files: ^app/src/
types: [ file ]
types_or: [ javascript, jsx, ts, tsx, vue ]
args: [ --config=app/eslint.config.mjs, --fix ]
additional_dependencies:
- eslint-plugin-vue@^9.32.0
- vue-eslint-parser@^9.4.3
- "@typescript-eslint/eslint-plugin@^8.18.0"
- "@typescript-eslint/parser@^8.18.0"
- "@typescript-eslint/eslint-plugin-tslint@^7.0.2"
- "@typescript-eslint/utils@^8.18.0"
- "@typescript-eslint/typescript-estree@^8.18.0"
- "@typescript-eslint/scope-manager@^8.18.0"
# - repo: https://github.com/awebdeveloper/pre-commit-stylelint
# rev: 0.0.2
# hooks:
# - id: stylelint
# args: [--fix]
# exclude: ^site/node_modules/|^site/office/src/office/js/fontawesome/|^site/office/src/office/css/fontawesome/
# additional_dependencies: ['[email protected]', '[email protected]', '[email protected]', '[email protected]']