Skip to content

Conversation

@Ansonhkg
Copy link
Collaborator

@Ansonhkg Ansonhkg commented Oct 16, 2024

Description

auto-fmt and commit to the branch if lint fails

see it working in this commit: 6280ef8

@Ansonhkg Ansonhkg added the ✨ Enhancement New feature or request label Oct 16, 2024
@FedericoAmura
Copy link
Contributor

Why this and not a pre commit hook?

@MaximusHaximus
Copy link
Contributor

Would definitely prefer if we can use husky and lint-staged -- if I push a branch up, I don't want to get a merge conflict next time I try to push/pull because a third party added a commit on to it...

It's actually pretty straightforward - see 'Running lint and formatting' here: https://christianlydemann.com/how-to-set-up-git-hooks-in-an-nx-repo/

@Ansonhkg Ansonhkg closed this Oct 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

✨ Enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants