correctness/noSolidDestructuredProps
correctness · since 2.0.0
No autofix
biome.json
{
"linter": {
"rules": {
"correctness": {
"noSolidDestructuredProps": "error"
}
}
}
}Disallow destructuring props inside JSX components in Solid projects.
let Component = ({}) => <div />;let Component = ({ a: A }) => <div a={A} />;let Component = ({ prop1 }: Props) => <div p1={prop1} />;let Component = (props) => <div />;let Component = (props) => <div a={props.a} />;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.
correctness/noSolidDestructuredProps
correctness · since 2.0.0
{
"linter": {
"rules": {
"correctness": {
"noSolidDestructuredProps": "error"
}
}
}
}Disallow animation and transition times that are shorter than a configured minimum.
Disallow ignoring the function returned by a store's subscribe() method.
Disallow nesting a cascade layer inside a layer with the same name.
Disallow arbitrary values in Tailwind CSS utility classes.