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

Automatically Prettify after every commit using Husky and Lint-Staged #112

Open
nirmalhk7 opened this issue Oct 4, 2020 · 1 comment
Open
Assignees

Comments

@nirmalhk7
Copy link

nirmalhk7 commented Oct 4, 2020

Is your feature request related to a problem? Please describe.
Currently we're dont have any means to prettify the entire code. However, we can use Husky and lint-staged to automatically format those files which are staged into Git, making it more convenient.

Describe the solution you'd like
We add Husky (which is a git hooks implementation for javascript projects) to execute our commands after pre-commit. We use lint-staged to filter out files which are in our staging area, and run our Prettify commands there. This automation will massively increase code-maintenance in the future.

Describe alternatives you've considered
This is the best solution to the above problem.

Additional context

@prateek3255 I'd love to implement this myself. Please let me know if its okay.

@nirmalhk7 nirmalhk7 changed the title Automatically Prettify and Lint after every commit using Husky and Lint-Staged Automatically Prettify after every commit using Husky and Lint-Staged Oct 4, 2020
@prateek3255
Copy link
Owner

Sure please go ahead.

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 a pull request may close this issue.

2 participants