I am currently wondering, why ESLint is not working in my project in Visual Studio 2017. There is the file ".eslintrc" in the project-root:
{
"extends": "defaults/configurations/eslint",
"env": {
"browser": true
},
"globals": {
"xhr": true
},
"rules": {
"eqeqeq": [ "error", "always", { "null": "ignore" } ]
}
}
If I remove the line with "eqeqeq", everything is working fine. But as soon as I add this line, no errors will be displayed at all.
Question 1: Is there any way to see an error-message about the issue ESLint obviously has?
Question 2 as a fallback: What is the issue with this line?
"eqeqeq": [2, "always", { "null": "ignore" }]
. Older versions of ESLint used number to configure warning level before we added "off"/"warning"/"error", so maybe the VS2017 version hasn't been updated."eqeqeq": [ 2 ]
is still working,"eqeqeq": [ 2, "always" ]
and your version are not.