Skip to content

Commit

Permalink
Moved pre-commit support to github.com/pre-commit/mirrors-prettier (#…
Browse files Browse the repository at this point in the history
…8937)

Co-authored-by: fisker Cheung <lionkay@gmail.com>
Co-authored-by: sosukesuzuki <aosukeke@gmail.com>
  • Loading branch information
3 people committed Nov 16, 2020
1 parent 386759c commit ed49bf1
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
7 changes: 5 additions & 2 deletions .pre-commit-hooks.yaml
@@ -1,4 +1,7 @@
# Remove this file after year 2020

- id: prettier
name: prettier
entry: prettier --write --list-different --ignore-unknown
language: node
entry: Prettier support for pre-commit has been moved to https://github.com/pre-commit/mirrors-prettier, please use the new repository.
language: fail
pass_filenames: false
4 changes: 2 additions & 2 deletions docs/precommit.md
Expand Up @@ -61,13 +61,13 @@ Read more at the [pretty-quick](https://github.com/azz/pretty-quick) repo.
Copy the following config into your `.pre-commit-config.yaml` file:

```yaml
- repo: https://github.com/prettier/prettier
- repo: https://github.com/pre-commit/mirrors-prettier
rev: "" # Use the sha or tag you want to point at
hooks:
- id: prettier
```

Read more at the [pre-commit](https://pre-commit.com) website.
Read more at [mirror of prettier package for pre-commit](https://github.com/pre-commit/mirrors-prettier) and the [pre-commit](https://pre-commit.com) website.

## Option 4. [git-format-staged](https://github.com/hallettj/git-format-staged)

Expand Down
4 changes: 3 additions & 1 deletion website/versioned_docs/version-stable/precommit.md
Expand Up @@ -62,12 +62,14 @@ Read more at the [pretty-quick](https://github.com/azz/pretty-quick) repo.
Copy the following config into your `.pre-commit-config.yaml` file:

```yaml
- repo: https://github.com/prettier/prettier
- repo: https://github.com/pre-commit/mirrors-prettier
rev: "" # Use the sha or tag you want to point at
hooks:
- id: prettier
```

Read more at [mirror of prettier package for pre-commit](https://github.com/pre-commit/mirrors-prettier) and the [pre-commit](https://pre-commit.com) website.

Read more at the [pre-commit](https://pre-commit.com) website.

## Option 4. [git-format-staged](https://github.com/hallettj/git-format-staged)
Expand Down

0 comments on commit ed49bf1

Please sign in to comment.