react/sort-default-props
eslint-plugin-react
No autofix
eslint.config.js
import react from "eslint-plugin-react";
export default [
{
plugins: { react },
rules: {
"react/sort-default-props": "error",
},
},
];No code example for this rule
The linters' documentation does not include one we could extract.
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.
react/sort-default-props
eslint-plugin-react
import react from "eslint-plugin-react";
export default [
{
plugins: { react },
rules: {
"react/sort-default-props": "error",
},
},
];Oxlint does not have this rule.
Biome does not have this rule.
Enforce React components to have a shouldComponentUpdate method
Disallow adjacent inline elements not separated by whitespace.
Require or prevent a new line after jsx elements and expressions.