Need to add the pre-commit hook for running the eslint --fix just for the changed files.
That should:
run eslint only for the staged files
run eslint --fix
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.
Need to add the pre-commit hook for running the
eslint --fix
just for the changed files. That should:eslint --fix
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.