using ESLint in lint-staged is preventing me from checking in code
currently in my package.json file I have
"lint-staged": {
"**/*.{ts,css,html,json,scss}": [
"prettier --write --config .prettierrc",
"eslint"
]
},
If I run ESLint on the individual files I get no errors however when I try to commit files I get a notification
[STARTED] Preparing...
[SUCCESS] Preparing...
[STARTED] Running tasks...
[STARTED] Running tasks for **/*.{ts,css,html,json,scss}
[STARTED] prettier --write --config .prettierrc
[SUCCESS] prettier --write --config .prettierrc
[STARTED] eslint
[FAILED] eslint [FAILED]
[FAILED] eslint [FAILED]
[SUCCESS] Running tasks...
the balloon show no errors only warnings. My peers using VSCode do not have any issues so I assume this is a Webstorm issue but I have no idea where to even start looking. Please help as I have been using Webstorm for 7yrs and do not wish to use VSCode
Please sign in to leave a comment.
Can't imagine how it can be related to Webstorm. What OS is it? Does it work if you start the IDE from terminal? You can try running lint-staged in debug mode (https://github.com/okonet/lint-staged#command-line-flags) to get more verbose output