Skip to content

Conversation

timdeschryver
Copy link
Member

Update docusaurus
Also updated lint-staged (the result of running npm audit fix)
Replaced husky with a simple githook, because the pre-commit didn't execute

@netlify
Copy link

netlify bot commented Oct 13, 2022

Deploy Preview for testing-library ready!

Name Link
🔨 Latest commit 4654186
🔍 Latest deploy log https://app.netlify.com/sites/testing-library/deploys/634ede67e1828600086c5c7b
😎 Deploy Preview https://deploy-preview-1157--testing-library.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

Copy link
Member

@MatanBobi MatanBobi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, just a tiny comment :)

package.json Outdated
"docusaurus": "docusaurus"
"docusaurus": "docusaurus",
"pre-commit": "lint-staged",
"prepare": "git config core.hookspath .githooks"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is usually not required for git hooks. The problem here is that now I wouldn't know how to disable git hooks on a per repo basis. I usually change the hooks path to something I own and then symlink the hooks that I do find usefull.

pre-commit hooks are something I will definitelly disable. So if you want to keep this as a pre-commit hook and not something else (e.g. pre-push), please add docs on how to disable this hook for this particular repository.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 That's fair - AFAIK this can't support your use case.
Updating husky also isn't an option then because they also register the hookspath this way (from the docs: "Powered by modern new Git feature (core.hooksPath)").

I reverted the husky update to keep everything like it was as I currently don't see an easy way to disable certain hooks.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@eps1lon could you give this another review please?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants