media-centre / makenews

MakeNews is for journalists and newsrooms. It helps you track news from web and social media in real-time.
https://makenews.in
GNU Affero General Public License v3.0
53 stars 22 forks source link

Add pre commit hook for linting #150

Closed muralikrishna8 closed 4 years ago

muralikrishna8 commented 4 years ago

Need to add the pre-commit hook for running the eslint --fix just for the changed files. That should:

But for that we need to make some changes to the way we have our lint configured. Either we can find a way to do it with the gulp, or we can just use the eslint command directly without having the gulp task.

muralikrishna8 commented 4 years ago

Added pre commit hook for running the eslint --fix for the staged .js and .jsx files using lint-staged