complexity/noUselessStringRaw
complexity · since 1.9.4
No autofixRecommended
biome.json
{
"linter": {
"rules": {
"complexity": {
"noUselessStringRaw": "error"
}
}
}
}Disallow unnecessary String.raw function in template string literals without any escape sequence.
String.raw`a`;String.raw`a ${v}`;String.raw`\n ${a}`;String.raw`\n`;Examples from the Biome documentation.
ESLint does not have this rule.
Oxlint does not have this rule.
complexity/noUselessStringRaw
complexity · since 1.9.4
{
"linter": {
"rules": {
"complexity": {
"noUselessStringRaw": "error"
}
}
}
}Disallow unnecessary escapes in string literals.
Disallow returning a value from a function with the return type 'void'