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
fix: restore .pre-commit-hooks.yaml #1380
base: master
Are you sure you want to change the base?
Conversation
🦋 Changeset detectedLatest commit: 55a8318 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
This looks like a configuration file for |
we were upgrading |
Thank you, you are correct. |
I guess I removed the file because it's undocumented and I simply didn't know about it... IMO it's a bit redundant to run two tools that provide the same functionality. Essentially https://pre-commit.com/#pre-commit
Because lint-staged also runs only on staged files, and also hides unstaged changes, I do not recommend running them both. |
Does it work if you setup a local hook according to https://pre-commit.com/#repository-local-hooks - repo: local
hooks:
- id: lint-staged
name: lint-staged
entry: lint-staged
language: node
pass_filenames: false # lint-staged handles staged files itself
stages: [pre-commit] |
Co-authored-by: Iiro Jäppinen <iiro@jappinen.fi>
local hook seems to work as the initialization passed. but it failed with this message:
it might be a different issue than what this PR is trying to solve, though update: my config
|
If you don't mind posting your lint-staged and pre-commit configs, I could also take a look at them. I'm still debating whether it's a good idea to add this file back, as the two tools seem to be doing the same thing. Maybe it would be possible for you to migrate to using only one of them... I can help. |
This file is essential when using pre-commit. It throws an error if this file is missing.