react/prefer-exact-props
eslint-plugin-react
No autofix
eslint.config.js
import react from "eslint-plugin-react";
export default [
{
plugins: { react },
rules: {
"react/prefer-exact-props": "error",
},
},
];No code example for this rule
The linters' documentation does not include one we could extract.
react/prefer-exact-props
eslint-plugin-react
import react from "eslint-plugin-react";
export default [
{
plugins: { react },
rules: {
"react/prefer-exact-props": "error",
},
},
];Oxlint does not have this rule.
Biome does not have this rule.
Enforce stateless components to be written as a pure function
Enforce a defaultProps definition for every prop that is not a required prop
Disallow declaring unused methods of component class