-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add prettier to pre-commit & sane default config
- Loading branch information
Showing
4 changed files
with
47 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,40 @@ | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.0.1 | ||
hooks: | ||
#- id: check-yaml | ||
# args: [--allow-multiple-documents] | ||
# - id: end-of-file-fixer | ||
- id: trailing-whitespace | ||
exclude: .*/src/main/java/io/gitpod/supervisor/api/.* | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.1.0 | ||
hooks: | ||
#- id: check-yaml | ||
# args: [--allow-multiple-documents] | ||
# - id: end-of-file-fixer | ||
- id: trailing-whitespace | ||
exclude: .*/src/main/java/io/gitpod/supervisor/api/.* | ||
|
||
- id: check-symlinks | ||
- id: mixed-line-ending | ||
- id: check-case-conflict | ||
- id: check-executables-have-shebangs | ||
- id: check-shebang-scripts-are-executable | ||
- id: check-merge-conflict | ||
- id: check-symlinks | ||
- id: mixed-line-ending | ||
- id: check-case-conflict | ||
- id: check-executables-have-shebangs | ||
- id: check-shebang-scripts-are-executable | ||
- id: check-merge-conflict | ||
|
||
# keep fork in sync! | ||
- repo: https://github.com/gitpod-io/pre-commit-hooks | ||
rev: "2.1.5" | ||
hooks: | ||
- id: forbid-binary | ||
exclude: | | ||
(?x)^( | ||
.*example-layer.tar.gz| | ||
.*\.(png|svg|ico|gpg)| | ||
dev/version-manifest/version-manifest| | ||
.*gradle-wrapper\.jar | ||
)$ | ||
- id: script-must-have-extension | ||
- id: shellcheck | ||
args: [-e, "SC1090,SC1091"] | ||
exclude: .*/gradlew$ | ||
|
||
# keep fork in sync! | ||
- repo: https://github.com/gitpod-io/pre-commit-hooks | ||
rev: "2.1.5" | ||
hooks: | ||
- id: forbid-binary | ||
exclude: | | ||
(?x)^( | ||
.*example-layer.tar.gz| | ||
.*\.(png|svg|ico|gpg)| | ||
dev/version-manifest/version-manifest| | ||
.*gradle-wrapper\.jar | ||
)$ | ||
- id: script-must-have-extension | ||
- id: shellcheck | ||
args: [-e, "SC1090,SC1091"] | ||
exclude: .*/gradlew$ | ||
- repo: https://github.com/pre-commit/mirrors-prettier | ||
rev: "v2.5.1" | ||
hooks: | ||
- id: prettier | ||
# Only enabled for WebApp components initially, to build consensus and incrementally onboard others | ||
files: ^components\/(server|gitpod-protocol|gitpod-db|dashboard)\/.*\.ts(x?)$ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"printWidth": 120, | ||
"tabWidth": 4, | ||
"endOfLine": "auto", | ||
"trailingComma": "all" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters