suspicious/noUselessEscapeInString
suspicious · since 2.0.0
Safe autofixRecommended
biome.json
{
"linter": {
"rules": {
"suspicious": {
"noUselessEscapeInString": "error"
}
}
}
}const s = "\a";const o = {
"\a": 0,
};const s = `${0}\a`;const s = "\n";const s = `\${0}`;const s = tagged`\a`;Examples from the Biome documentation.
ESLint does not have this rule.
Oxlint does not have this rule.
suspicious/noUselessEscapeInString
suspicious · since 2.0.0
{
"linter": {
"rules": {
"suspicious": {
"noUselessEscapeInString": "error"
}
}
}
}Disallow unnecessary String.raw function in template string literals without any escape sequence.
Disallow returning a value from a function with the return type 'void'