template-archive icon indicating copy to clipboard operation
template-archive copied to clipboard

Setup Git Hooks for linting

Open Rishabhraghwendra18 opened this issue 4 years ago • 2 comments

Feature Request 🛍️

The project doesn't have git hooks which can trigger automatically on committing or any git commands . Git Hooks can help us to automate the process like linting , running some tests before pushing to GitHub , etc .

Use Case

We can have a pre-commit hook which can trigger automatically linting to lint the changed files before we commit .

Possible Solution

One of the possible and most famous solution I can think of is using Husky . It's easy to setup .

Context

It can automate the process of linting & testing on every commit .

Detailed Description

We can use Husky package to setup the Git Hooks . I found out easy to setup & use with mono-repos . We just need to install the Husky package & setup the husky command in package.json file and we have setuped the Git Hooks .

Rishabhraghwendra18 avatar Oct 30 '21 11:10 Rishabhraghwendra18

Hi @Rishabhraghwendra18 i am a fresher looking for some opensource contribution can u assign me this issue and guide me how to solve this

Thanks in advance

Krish-bhardwaj avatar Jan 18 '22 05:01 Krish-bhardwaj

@Krish-bhardwaj . Sorry but I have opened this issue for myself . I am waiting for someone from core team to give their views on it. You may look for issues in the repo

Rishabhraghwendra18 avatar Jan 19 '22 04:01 Rishabhraghwendra18