💅 There is a false positive in the useLiteralKeys
rule
#3160
Labels
A-Linter
Area: linter
L-JavaScript
Language: JavaScript and super languages
S-Bug-confirmed
Status: report has been confirmed as a valid bug
Environment information
Rule name
useLiteralKeys
Playground link
https://biomejs.dev/playground/?code=YwBvAG4AcwB0ACAAbwBiAGoAIAA9ACAAewAKACAAIABbAGAAZgBpAHIAcwB0AAoAIAAgAHMAZQBjAG8AbgBkAAoAIAAgAHQAaABpAHIAZABgAF0AOgAgAHQAcgB1AGUALAAKAH0AOwA%3D
Expected result
To write a string literal across multiple lines, you need backslashes, like this:
However, I understand that this method has been rarely used since the introduction of template literals.
Therefore, I expect this not to be diagnosed as an error.
Code of Conduct
The text was updated successfully, but these errors were encountered: