|
1 | 1 | repos:
|
2 |
| -- repo: https://github.com/pre-commit/pre-commit-hooks |
3 |
| - rev: v4.0.1 |
4 |
| - hooks: |
5 |
| - #- id: check-yaml |
6 |
| - # args: [--allow-multiple-documents] |
7 |
| - # - id: end-of-file-fixer |
8 |
| - - id: trailing-whitespace |
9 |
| - exclude: .*/src/main/java/io/gitpod/supervisor/api/.* |
| 2 | + - repo: https://github.com/pre-commit/pre-commit-hooks |
| 3 | + rev: v4.1.0 |
| 4 | + hooks: |
| 5 | + #- id: check-yaml |
| 6 | + # args: [--allow-multiple-documents] |
| 7 | + # - id: end-of-file-fixer |
| 8 | + - id: trailing-whitespace |
| 9 | + exclude: .*/src/main/java/io/gitpod/supervisor/api/.* |
10 | 10 |
|
11 |
| - - id: check-symlinks |
12 |
| - - id: mixed-line-ending |
13 |
| - - id: check-case-conflict |
14 |
| - - id: check-executables-have-shebangs |
15 |
| - - id: check-shebang-scripts-are-executable |
16 |
| - - id: check-merge-conflict |
| 11 | + - id: check-symlinks |
| 12 | + - id: mixed-line-ending |
| 13 | + - id: check-case-conflict |
| 14 | + - id: check-executables-have-shebangs |
| 15 | + - id: check-shebang-scripts-are-executable |
| 16 | + - id: check-merge-conflict |
17 | 17 |
|
| 18 | + # keep fork in sync! |
| 19 | + - repo: https://github.com/gitpod-io/pre-commit-hooks |
| 20 | + rev: "2.1.5" |
| 21 | + hooks: |
| 22 | + - id: forbid-binary |
| 23 | + exclude: | |
| 24 | + (?x)^( |
| 25 | + .*example-layer.tar.gz| |
| 26 | + .*\.(png|svg|ico|gpg)| |
| 27 | + dev/version-manifest/version-manifest| |
| 28 | + .*gradle-wrapper\.jar |
| 29 | + )$ |
| 30 | + - id: script-must-have-extension |
| 31 | + - id: shellcheck |
| 32 | + args: [-e, "SC1090,SC1091"] |
| 33 | + exclude: .*/gradlew$ |
18 | 34 |
|
19 |
| -# keep fork in sync! |
20 |
| -- repo: https://github.com/gitpod-io/pre-commit-hooks |
21 |
| - rev: "2.1.5" |
22 |
| - hooks: |
23 |
| - - id: forbid-binary |
24 |
| - exclude: | |
25 |
| - (?x)^( |
26 |
| - .*example-layer.tar.gz| |
27 |
| - .*\.(png|svg|ico|gpg)| |
28 |
| - dev/version-manifest/version-manifest| |
29 |
| - .*gradle-wrapper\.jar |
30 |
| - )$ |
31 |
| - - id: script-must-have-extension |
32 |
| - - id: shellcheck |
33 |
| - args: [-e, "SC1090,SC1091"] |
34 |
| - exclude: .*/gradlew$ |
| 35 | + - repo: https://github.com/pre-commit/mirrors-prettier |
| 36 | + rev: "v2.5.1" |
| 37 | + hooks: |
| 38 | + - id: prettier |
| 39 | + # Only enabled for WebApp components initially, to build consensus and incrementally onboard others |
| 40 | + files: ^components\/(server|gitpod-protocol|gitpod-db|dashboard)\/.*\.ts(x?)$ |
0 commit comments