react/no-namespace
eslint-plugin-react
No autofix
eslint.config.js
import react from "eslint-plugin-react";
export default [
{
plugins: { react },
rules: {
"react/no-namespace": "error",
},
},
];<ns:TestComponent />
<Ns:TestComponent /><TestComponent />
<testComponent />Examples from the Oxlint documentation.
react/no-namespace
eslint-plugin-react
import react from "eslint-plugin-react";
export default [
{
plugins: { react },
rules: {
"react/no-namespace": "error",
},
},
];react/no-namespace
react plugin · suspicious
{
"plugins": [
"react"
],
"rules": {
"react/no-namespace": "error"
}
}Biome does not have this rule.
Disallows JSX context provider values from taking values that will cause needless rerenders
Disallow usage of shouldComponentUpdate when extending React.PureComponent
Disallow this from being used in stateless functional components