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

Changing files is consistent with other formatting pre-commit hooks (prettier) #395

Merged

Conversation

andrew-scott-fischer
Copy link
Contributor

@andrew-scott-fischer andrew-scott-fischer commented Feb 6, 2024

A previous PR1 changed the expected behavior of prettier pre-commit-hook from prettier . --write --ignore-unknown --list-different to prettier . --check.

Another previous PR2 sets the precedent that pre-commit-hooks should not just check but actually write formatting changes.

Footnotes

  1. https://github.com/cachix/pre-commit-hooks.nix/commit/02a459585885f57c3fd93bb4e0b9b573a62a1ee5

  2. https://github.com/cachix/pre-commit-hooks.nix/pull/269

A previous PR[^1] changed the expected behavior of prettier pre-commit-hook from
`prettier . --write --ignore-unknown --list-different` to `prettier . --check`.

Another previous PR[^2] sets the precedent that pre-commit-hooks should not just
`check` but actually `write` formating changes.

[^1]: cachix@02a4595
[^2]: cachix#269
@domenkozar domenkozar merged commit 0db2e67 into cachix:master Feb 7, 2024
2 of 4 checks passed
@andrew-scott-fischer andrew-scott-fischer deleted the fix-default-prettier-defaults branch February 7, 2024 16:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants