Closed
Description
Using the latest eslint (2.0.0-rc.0).
Rules:
{
"parserOptions": {
"ecmaVersion": 6
},
"rules": {
"quotes": [2, "single", "avoid-escape"]
}
}
Code:
console.log(`hello 'hi'`)
Gives the following false-positive error:
1:13 error Strings must use singlequote quotes
The ` string should be allowed, because it's being used to avoid quotes.
Changing the code to:
console.log("hello 'hi'")
causes the error to go away. This is inconsistent and contrary to what the docs say.