eslint jsx-quotes rule not working in visual studio code. config:
.eslintrc.json:
{
"plugins": ["jsx"],
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"rules": {
"semi": [2, "never"],
"jsx-quotes": ["error", "prefer-double"],
"quotes": ["error", "single"]
},
"extends": "eslint:recommended"
}
All my other rules are working.
Example jsx not throwing an error:
<div className="hero-head">
<div className='container'>
<div className='tabs is-centered'>
<ul>
<li><a>This is always at the top</a></li>
</ul>
</div>
</div>
</div>
I have also tried it with prefixing the rule name with "jsx/"
Is my config wrong?