Skip to content

Commit

Permalink
Fix prettier installation yet again
Browse files Browse the repository at this point in the history
I hope prettier/pre-commit@d2e9f0c is the last chapter of this prettiermaggeddon. At least now the official source is maintained by the pre-commit community, which has more experience on how things work for pre-commit.
  • Loading branch information
Jairo Llopis authored and yajo committed Nov 26, 2020
1 parent 99a27b5 commit dd749cc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ repos:
rev: 19.10b0
hooks:
- id: black
- repo: https://github.com/prettier/prettier
rev: "1.19.1"
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v2.1.2
hooks:
- id: prettier
- repo: https://github.com/pre-commit/pre-commit-hooks
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ repos:
rev: {{ repo_rev.black }}
hooks:
- id: black
- repo: https://github.com/prettier/pre-commit
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v{{ repo_rev.prettier }}
hooks:
- id: prettier
Expand Down
9 changes: 2 additions & 7 deletions version-specific/13.0/.pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,10 @@ repos:
rev: 19.10b0
hooks:
- id: black
- repo: https://github.com/prettier/pre-commit
rev: "v1.19.1"
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v1.19.1
hooks:
- id: prettier
# TODO Avoid awebdeveloper/pre-commit-prettier if possible
# HACK https://github.com/prettier/prettier/issues/7407
- repo: https://github.com/awebdeveloper/pre-commit-prettier
rev: v0.0.1
hooks:
- id: prettier
name: prettier xml plugin
additional_dependencies:
Expand Down

0 comments on commit dd749cc

Please sign in to comment.