sindresorhus/eslint-plugin-unicorn
Rule proposal: opposite of `prefer-string-raw`
Fechada
#2.652 aberto em 11 de mai. de 2025
help wantednew rule
Métricas do repositório
- Stars
- (5.022 estrelas)
- Métricas de merge de PR
- (Mesclagem média 1d 16h) (399 fundiu PRs em 30d)
Description
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.