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

I'd love to run this without committing anything to the repo #54

Open
devinrhode2 opened this issue Mar 12, 2020 · 0 comments
Open

I'd love to run this without committing anything to the repo #54

devinrhode2 opened this issue Mar 12, 2020 · 0 comments

Comments

@devinrhode2
Copy link

I'd also love to be able to run it on save

When I found this, I was originally searching google for a script that would do this:
Given a folder (like ~/repos), check each subfolder for a package.json and .git folder, if they are both present, then install prettier, optionally add some .prettierignore and .prettierrc files, format all code, commit, add a .git-blame-ignore-revs with the formatting commit hash, commit that, and then also add a husky lint-staged thing to format all code going into the codebase with prettier.

This is a one-time operation, there would be a commit in the commit history, but thanks to .git-blame-ignore-revs, we can avoid having every line show it was last modified by the formatting commit.

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

No branches or pull requests

1 participant