react-refresh/only-export-components
eslint-plugin-react-refresh
No autofix
eslint.config.js
import reactRefresh from "eslint-plugin-react-refresh";
export default [
{
plugins: { "react-refresh": reactRefresh },
rules: {
"react-refresh/only-export-components": "error",
},
},
];