Skip to content

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

@nirmalhk7

Description

@nirmalhk7

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions