Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Moved pre-commit support to github.com/pre-commit/mirrors-prettier #8937

Merged
merged 8 commits into from Nov 16, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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