forked from blocher/dailyoffice2019
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
88 lines (83 loc) · 2.92 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
85
86
87
88
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 ]
- repo: https://github.com/pre-commit/mirrors-eslint
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]"
- repo: https://github.com/pre-commit/mirrors-eslint
rev: v8.56.0
hooks:
- id: eslint
files: ^app/src/
types: [ file ]
types_or: [ javascript, jsx, ts, tsx, vue ]
args: [ --config=app/.eslintrc.js ]
additional_dependencies:
- "@babel/[email protected]"
- "@babel/[email protected]"
- "@babel/[email protected]"
- "@babel/[email protected]"
- eslint-plugin-vue@^9.22.0
- vue-eslint-parser@^9.4.2
- "@typescript-eslint/eslint-plugin@^7.0.1"
- "@typescript-eslint/parser@^7.0.1"
- "@typescript-eslint/eslint-plugin-tslint@^7.0.1"
- "@typescript-eslint/utils@^7.0.1"
- "@typescript-eslint/typescript-estree@^7.0.1"
- "@typescript-eslint/scope-manager@^7.0.1"
# - 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]']