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

Linting+formatting pre-commit hook #80

Merged
merged 3 commits into from Oct 10, 2023
Merged

Conversation

mpeterdev
Copy link
Collaborator

Adds pre-commit hook via husky that prevents committing if formatting or linting check does not pass.

Going ahead and PRing this now with it only enabled for the outer window application package, but it will be extended to all other packages as well.

The nice thing about doing this with turbo is that lint+format checks will return an immediate cached success for any packages which have not been touched

Also switches to a more restrictive turbo version since using latest could lead us to installing a higher without performing requisite migrations. We will get prompts when new versions are available, so this shouldn't hinder us from keeping up to date with latest

@vercel
Copy link

vercel bot commented Oct 6, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
bos-web-engine ✅ Ready (Inspect) Visit Preview Oct 6, 2023 4:02pm

Copy link
Contributor

@andy-haynes andy-haynes left a comment

Choose a reason for hiding this comment

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

LGTM, extend away 👍

@mpeterdev mpeterdev merged commit c2eca5e into main Oct 10, 2023
2 checks passed
@andy-haynes andy-haynes deleted the chore/lint-format-checks branch October 26, 2023 01:33
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.

None yet

2 participants