sindresorhus/eslint-plugin-unicorn
Auf GitHub ansehenRule proposal: opposite of `prefer-string-raw`
Open
#2.652 geöffnet am 11. Mai 2025
help wantednew rule
Beschreibung
Description
During refactoring, some strings may not need String.raw anymore, should use a string literal instead.
Examples
// ❌
String.raw`a`
// ✅
'a'
Proposed rule name
no-string-raw
Additional Info
Not sure if we want to add a separate rule, or just add to prefer-string-raw.