react/jsx-max-props-per-line
eslint-plugin-react
Safe autofix
eslint.config.js
import react from "eslint-plugin-react";
export default [
{
plugins: { react },
rules: {
"react/jsx-max-props-per-line": "error",
},
},
];<Hello lastName="Smith" firstName="John" />;
<Hello foo={{
bar
}} baz />;<Hello
firstName="John"
lastName="Smith"
/>;
<Hello
{...this.props}
firstName="John"
lastName="Smith"
/>;Examples from the ESLint documentation.
react/jsx-max-props-per-line
eslint-plugin-react
import react from "eslint-plugin-react";
export default [
{
plugins: { react },
rules: {
"react/jsx-max-props-per-line": "error",
},
},
];Oxlint does not have this rule.
Biome does not have this rule.
Disallow multiple spaces between inline JSX props
Enforce proper position of the first property in JSX
Enforce whitespace in and around the JSX opening and closing brackets