Mayank0255/Stackoverflow-Clone-Frontend

Setup husky to the project

Mayank0255 opened this issue · 11 comments

This is to save some time reviewing the code and then changing the linting errors. Which will be done by locally automating this process before committing the code

Husky Package

Hey, can I give this a go? Thanks

@avinashupadhya99

Sure, go ahead

@avinashupadhya99

While setting it up, go through the linting requirements imposed in this project

Hey @Mayank0255 , this might be a little stupid question. How do you normally run the lint locally? Have you installed eslint and eslint-config-react-app dependencies globally? If that's the case, I will need to install those as dev dependencies for the client package. If there's another way to run it, please let me know.

@avinashupadhya99

Usually, the developers use vscode or webstorm for this kind of stuff in which the IDE configures the linting files to the project.

If you have a better approach for this then go ahead and add creativity to the project. New ideas and suggestions are always welcomed 😃

I think adding them as dev dependencies will ensure it will work just about anywhere. I'll set that up soon.

Sure, go ahead

@avinashupadhya99 what's the status on this issue??

Hey, I will make the PR for this tomorrow. Sorry for the delay

@avinashupadhya99 I just tried out husky and it warns fine but isn't there an option to fix those discrepancies automatically? Rather than manually doing so?