Skip to content

Commit dd749cc

Browse files
Jairo Llopisyajo
authored andcommitted
Fix prettier installation yet again
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.
1 parent 99a27b5 commit dd749cc

File tree

3 files changed

+5
-10
lines changed

3 files changed

+5
-10
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ repos:
33
rev: 19.10b0
44
hooks:
55
- id: black
6-
- repo: https://github.com/prettier/prettier
7-
rev: "1.19.1"
6+
- repo: https://github.com/pre-commit/mirrors-prettier
7+
rev: v2.1.2
88
hooks:
99
- id: prettier
1010
- repo: https://github.com/pre-commit/pre-commit-hooks

.pre-commit-config.yaml.jinja

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ repos:
6767
rev: {{ repo_rev.black }}
6868
hooks:
6969
- id: black
70-
- repo: https://github.com/prettier/pre-commit
70+
- repo: https://github.com/pre-commit/mirrors-prettier
7171
rev: v{{ repo_rev.prettier }}
7272
hooks:
7373
- id: prettier

version-specific/13.0/.pre-commit-config.yaml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,10 @@ repos:
2323
rev: 19.10b0
2424
hooks:
2525
- id: black
26-
- repo: https://github.com/prettier/pre-commit
27-
rev: "v1.19.1"
26+
- repo: https://github.com/pre-commit/mirrors-prettier
27+
rev: v1.19.1
2828
hooks:
2929
- id: prettier
30-
# TODO Avoid awebdeveloper/pre-commit-prettier if possible
31-
# HACK https://github.com/prettier/prettier/issues/7407
32-
- repo: https://github.com/awebdeveloper/pre-commit-prettier
33-
rev: v0.0.1
34-
hooks:
3530
- id: prettier
3631
name: prettier xml plugin
3732
additional_dependencies:

0 commit comments

Comments
 (0)