prateek3255 / scrroll-in

An extension to save the scroll position of a webpage
https://chrome.google.com/webstore/detail/scrroll-in/cjgjbjogfodppempgdlppgefojbcmjom?hl=en&gl=IN
MIT License
66 stars 99 forks source link

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

Open nirmalhk7 opened 4 years ago

nirmalhk7 commented 4 years ago

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.

prateek3255 commented 4 years ago

Sure please go ahead.