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
On windows npm run lint gives an error.
So we can't commit and push as we husky will give the error again.
Possible Solution
One solution is to add another command for windows in package.json file
like "lint-win": "eslint ./public/*.js *.js --fix"
and use or in pre-commit so that any one of them will run.
Your Environment
Version used:
Windows 10
Would you like to work on this issue?
No
The text was updated successfully, but these errors were encountered:
I think this issue is with ./ syntax and also when there is conflicting eslints in env like global and local ones.
We might have to come up with better solution
Expected Behavior
On windows
npm run lint
gives an error.So we can't commit and push as we husky will give the error again.
Possible Solution
One solution is to add another command for windows in
package.json
filelike
"lint-win": "eslint ./public/*.js *.js --fix"
and use or in pre-commit so that any one of them will run.
Your Environment
Windows 10
Would you like to work on this issue?
No
The text was updated successfully, but these errors were encountered: