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

nix: add lefthook #1167

Merged
merged 1 commit into from
Oct 28, 2023
Merged

nix: add lefthook #1167

merged 1 commit into from
Oct 28, 2023

Conversation

phinze
Copy link
Contributor

@phinze phinze commented Oct 27, 2023

What it does

Allows pre-commit linters to run in Nix development environments.

Why it is important

Reduces likelihood of back-and-forth based on formatting issues.

Implementation notes

Lefthook needs to be able to invoke node directly so explicitly add nodejs to dependencies as well. This is probably worthwhile for asset generation stuff anyways.

Allows pre-commit linters to run in Nix development environments.

Lefthook needs to be able to invoke `node` directly so explicitly add
`nodejs` to dependencies as well. This is probably worthwhile for asset
generation stuff anyways.
@phinze phinze requested a review from jim October 28, 2023 00:09
Copy link
Member

@jim jim left a comment

Choose a reason for hiding this comment

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

Thanks for improving things for folks using nix.

@phinze phinze merged commit 2688575 into main Oct 28, 2023
5 checks passed
@phinze phinze deleted the nix-lefthook branch October 28, 2023 00:56
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