Why isn't this configuration for ESLint in Visual Studio 2017 working?
I am currently wondering why ESLint is not working in my project in Visual Studio 2017. There is an .eslintrc file in the project-root file:
{
"extends": "defaults/configurations/eslint",
"env": {
"browser": true
},
"globals": {
"xhr": true
},
"rules": {
"eqeqeq": [ "error", "always", { "null": "ignore" } ]
}
}
If I delete the row with "eqeqeq" everything works fine. But as soon as I add this line, no errors are displayed at all.
Question 1: Is there a way to see the error message related to the problem ESLint obviously has?
Question 2 as a reserve: what's the problem with this line?
+3
source to share
1 answer
Thanks to btmills, I dived into sources and found the version: VS 2017 uses ESLint 2.0.0 (released 2016-02-12).
Correct configuration:
"eqeqeq": [ 2, "allow-null" ]
Documentation is available here:
Links from the list of bugs in VS 2017 lead to the current documentation where you can find many features that do not work in version 2.0.0.
+6
source to share