You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Current situation
The most basic use of this is to check linting using eslint,jslint etc.
But let's consider I added (git add) a few changes. Then I try git commit. There are some errors in the code it tells me and does not let me commit.
I fix the errors and try git commit again. It checks and let me commit because I fixed the errors. But I forgot to do git add afterwards.
Linting will check the latest file (fixed files) but git commit will commit the old changes only.
PS - I know this is a job for the developer to be careful. But if everyone was careful we won't be needing this anyway.
The text was updated successfully, but these errors were encountered:
This may be kind of a feature request.
Current situation
The most basic use of this is to check linting using
eslint
,jslint
etc.But let's consider I added (
git add
) a few changes. Then I trygit commit
. There are some errors in the code it tells me and does not let me commit.I fix the errors and try
git commit
again. It checks and let me commit because I fixed the errors. But I forgot to dogit add
afterwards.Linting will check the latest file (fixed files) but
git commit
will commit the old changes only.PS - I know this is a job for the developer to be careful. But if everyone was careful we won't be needing this anyway.
The text was updated successfully, but these errors were encountered: