react/jsx-pascal-case
eslint-plugin-react
No autofix
eslint.config.js
import react from "eslint-plugin-react";
export default [
{
plugins: { react },
rules: {
"react/jsx-pascal-case": "error",
},
},
];<Test_component /><TEST_COMPONENT /><div /><TestComponent /><TestComponent>
<div />
</TestComponent>Examples from the ESLint documentation.
react/jsx-pascal-case
eslint-plugin-react
import react from "eslint-plugin-react";
export default [
{
plugins: { react },
rules: {
"react/jsx-pascal-case": "error",
},
},
];react/jsx-pascal-case
react plugin · style
{
"plugins": [
"react"
],
"rules": {
"react/jsx-pascal-case": "error"
}
}Biome does not have this rule.
Disallow using another component's propTypes
Disallow extra closing tags for components without children
Enforce shorthand or standard form for React fragments
Disallow .bind() or arrow functions in JSX props