react/jsx-closing-tag-location
eslint-plugin-react
Safe autofix
eslint.config.js
import react from "eslint-plugin-react";
export default [
{
plugins: { react },
rules: {
"react/jsx-closing-tag-location": "error",
},
},
];<Hello>
marklar
</Hello><Hello>
marklar</Hello><Hello>
marklar
</Hello><Hello>marklar</Hello>Examples from the ESLint documentation.
react/jsx-closing-tag-location
eslint-plugin-react
import react from "eslint-plugin-react";
export default [
{
plugins: { react },
rules: {
"react/jsx-closing-tag-location": "error",
},
},
];Oxlint does not have this rule.
Biome does not have this rule.
Enforce closing bracket location in JSX
Enforce consistent linebreaks in curly braces in JSX attributes and expressions
Enforce or disallow spaces inside of curly braces in JSX attributes and expressions
Enforce consistent usage of destructuring assignment of props, state, and context
Enforce or disallow spaces around equal signs in JSX attributes