style/noUnusedTemplateLiteral
style · since 1.0.0
Safe autofix
biome.json
{
"linter": {
"rules": {
"style": {
"noUnusedTemplateLiteral": "error"
}
}
}
}Disallow template literals if interpolation and special-character handling are not needed
const foo = `bar`const foo = `bar `const foo = `bar
has newline`;const foo = `"bar"`const foo = `'bar'`Examples from the Biome documentation.
ESLint does not have this rule.
Oxlint does not have this rule.
style/noUnusedTemplateLiteral
style · since 1.0.0
{
"linter": {
"rules": {
"style": {
"noUnusedTemplateLiteral": "error"
}
}
}
}Require the JSON top-level value to be an array or object.
Disallow unused error parameters in catch clauses.
Disallow constants whose string value is the same as their uppercase name.
Disallow CSS properties, values, at-rules, functions, and selectors that are not part of the configured Baseline.