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 2 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
19 changes: 5 additions & 14 deletions .pre-commit-hooks.yaml
@@ -1,16 +1,7 @@
# Remove this file after year 2020

- id: prettier
name: prettier
entry: prettier --write --list-different
language: node
files: "\\.(\
css|less|scss\
|graphql|gql\
|html\
|js|jsx\
|json\
|md|markdown|mdown|mkdn\
|mdx\
|ts|tsx\
|vue\
|yaml|yml\
)$"
entry: Prettier support for pre-commit has been moved to https://github.com/prettier/pre-commit, please use the new repository.
language: fail
pass_filenames: false
1 change: 1 addition & 0 deletions changelog_unreleased/cli/pr-8937.md
@@ -0,0 +1 @@
#### Move [pre-commit](https://github.com/pre-commit/pre-commit) support to github.com/prettier/pre-commit ([#8937](https://github.com/prettier/prettier/pull/8937) by [@FloChehab](https://github.com/FloChehab))
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/prettier/pre-commit
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 [prettier's repo dedicated to pre-commit](https://github.com/prettier/pre-commit) and the [pre-commit](https://pre-commit.com) website.

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

Expand Down