suspicious/noSuspiciousSemicolonInJsx
suspicious · since 1.6.0
No autofixRecommended
biome.json
{
"linter": {
"rules": {
"suspicious": {
"noSuspiciousSemicolonInJsx": "error"
}
}
}
}It detects possible "wrong" semicolons inside JSX elements.
const Component = () => {
return (
<div>
<div />;
</div>
);
}const Component = () => {
return (
<div>
<div />
;
</div>
);
}
const Component2 = () => {
return (
<div>
<span>;</span>
</div>
);
}Examples from the Biome documentation.
ESLint does not have this rule.
Oxlint does not have this rule.
suspicious/noSuspiciousSemicolonInJsx
suspicious · since 1.6.0
{
"linter": {
"rules": {
"suspicious": {
"noSuspiciousSemicolonInJsx": "error"
}
}
}
}Disallow comparison of expressions modifying the string case with non-compliant value.
Disallow shorthand properties that override earlier, more specific properties.
Disallow passing async functions to Svelte stores.
Disallow comparing values to null in Sass @if conditions.