style/noInlineStyles
style · since 2.4.9
Unsafe autofix
biome.json
{
"linter": {
"rules": {
"style": {
"noInlineStyles": "error"
}
}
}
}<div style={{ color: "red" }}>Error</div>React.createElement("div", { style: { color: "red" } });<div className="text-red">Error</div>React.createElement("div", { className: "container" });Examples from the Biome documentation.
No tracked preset enables this rule, so it has no reach yet.
None of the tracked presets enable this rule. Turn it on with the config below.
ESLint does not have this rule.
Oxlint does not have this rule.
style/noInlineStyles
style · since 2.4.9
{
"linter": {
"rules": {
"style": {
"noInlineStyles": "error"
}
}
}
}Flags text nodes with a trailing $ before a JSX expression.
Limit how complex selectors can be, and disallow chosen parts of selectors.
Detect return type annotations that are misleadingly wider than what the implementation actually returns.
Disallow Sass variables and function calls in custom property values without #{} interpolation.