Closed Sata51 closed 3 years ago
I don't get why "quotes": ["error", "single", { "allowTemplateLiterals": true, "avoidEscape": true }]
makes it use double quote...
Prettier, is rewritring the code. The avoidEscape just avoid eslint error
Ok, tested it. If we use template literals we don't have to use double quote and neither prettier nor eslint complains about it
Without the avoidEscape, in that case :
"I can't kill you my lord <3 ! mindse4Stop"
eslint keep complains that Strings must use singlequote
. If we use this syntax :
`I can't kill you my lord <3 ! mindse4Stop`
This is valid, but prettier rewrite it...
I have rewrite the two parts that keep complains about the double quote
Propose modification for eslint and prettier rule
I'm not sure that's what you want. Single quote are not always used.
backtick
are replaced by single quote in most case.