You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
@prateek3255 I'd love to implement this myself. Please let me know if its okay.
The text was updated successfully, but these errors were encountered:
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
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.
The text was updated successfully, but these errors were encountered: