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

chore: update husky package for web #1355

Merged
merged 9 commits into from
Jun 29, 2022

Conversation

joshJarr
Copy link
Contributor

@joshJarr joshJarr commented May 25, 2022

Had issues committing code as pre-commit hooks could not find the husky config.
Huskys latest version no longer auto installs to align with npms best practices , so thought it best to use the latest version of the package.

So In this PR, to get things working I have:

  • Update husky to ^8.0.0
  • Update lint-staged to it's latest minor version
  • Committed the.husky/pre-commit for website package
  • Removed legacy husky config from package.json
  • Fix a few linting violations

@olizilla olizilla requested a review from orvn June 9, 2022 15:10
@joshJarr
Copy link
Contributor Author

Hey @orvn! Sorry I've totally neglected this PR till now 🤦‍♂️
Just updated it with main and it's magically fixed a few linity things!

Do you think this is safe to merge?

getTokens()
}, []);
getTokens();
}, [getTokens]);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This was the only linting violation I had to manually resolve, the rest were all minor things it seems. I don't think this breaks anything here?

Copy link
Contributor

Choose a reason for hiding this comment

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

No, not seeing any issues here either

@joshJarr joshJarr force-pushed the chore/update-husky-pre-commit-for-website branch from be63e80 to a7784a9 Compare June 28, 2022 13:16
Copy link
Contributor

@orvn orvn left a comment

Choose a reason for hiding this comment

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

I tested the pre-commit hooks in a few different contexts and all seems well! Upon merging main, I needed to rebuild the repo's base package-lock.json

@joshJarr
Copy link
Contributor Author

Cool, I'll merge this now, thanks @orvn!

@joshJarr joshJarr merged commit 913be2c into main Jun 29, 2022
@joshJarr joshJarr deleted the chore/update-husky-pre-commit-for-website branch June 29, 2022 14:41
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