I recently started react project with vite's default template. And I noticed they include eslint-plugin-react-refresh by default. I'm not sure how useful it is, but I guess it sounds like a good thing to have just in case.
What do you think?
See default vite configuration for react-refresh:
plugins: {
'react-refresh': reactRefresh,
},
rules: {
'react-refresh/only-export-components': [
'warn',
{ allowConstantExport: true },
],
},