Icove
Icove

Reputation: 11

Is there a way to lint only modified part in a .js file before git commit?

I will maintain a old project and I must check self commited code with some lint tool, such as eslint or gjslint.

If simply run gjslint or eslint for a .js file, I will get all the lint error...

I don't want to chang the old part which no bug with it.

So is there a way to run gjslint or eslint only for modified part in a .js file before git commit?

Thanks.

Upvotes: 1

Views: 111

Answers (0)

Related Questions