-
Notifications
You must be signed in to change notification settings - Fork 1
/
.pre-commit-config.yaml
51 lines (51 loc) · 1.74 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
---
default_install_hook_types:
- pre-commit
- commit-msg
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-toml
- id: check-yaml
- id: check-added-large-files
- id: check-merge-conflict
- id: check-symlinks
- id: fix-byte-order-marker
- id: mixed-line-ending
- id: trailing-whitespace
- repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook
rev: v9.4.0
hooks:
- id: commitlint
stages: [commit-msg]
additional_dependencies: ["@commitlint/config-angular"]
args: ["--config", "./commitlint.config.js"]
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
rev: v2.12.0
hooks:
- id: pretty-format-kotlin
args:
# IMPORTANT: keep in sync with the version configured in build.gradle.kts
- --ktlint-version=0.50.0
- --autofix
- repo: https://github.com/pre-commit/mirrors-prettier
# IMPORTANT: keep in sync with the version configured in `vue-model-api/package.json`
rev: v3.0.3
hooks:
- id: prettier
files: ^(vue-model-api)|(model-api-gen-gradle-test/vue-integration)/
- repo: https://github.com/pre-commit/mirrors-eslint
# IMPORTANT: keep versions of hook and additional dependencies in sync with the versions configured in `vue-model-api/package.json`
rev: v8.50.0
hooks:
- id: eslint
additional_dependencies:
- "eslint@8.5.0"
- "eslint-config-prettier@9.0.0"
- "@typescript-eslint/eslint-plugin@6.7.2"
- "@typescript-eslint/parser@6.7.2"
files: ^vue-model-api/src/
'types': [ts]