eslint-plugin-react-refresh
Advanced tools
Changelog
0.4.4
allowExportNames
option (fixes #29)Changelog
0.4.2
Changelog
0.4.1
export type *
(fixes #12)Changelog
0.4.0
allowConstantExport
option (fixes #8)This option allow to don't warn when a constant (string, number, boolean, templateLiteral) is exported aside one or more components.
This should be enabled if the fast refresh implementation correctly handles this case (HMR when the constant doesn't change, propagate update to importers when the constant changes). Vite supports it, PR welcome if you notice other integrations works well.
This only works when using direct export. So this pattern doesn't warn anymore:
export const CMS = () => <></>;
But this one will still warn:
const CMS = () => <></>;
export default CMS;
Changelog
0.3.4
Report default CallExpression exports (#7) (fixes #6)
This allows to report a warning for this kind of patterns that creates anonymous components:
export default compose()(MainComponent)
Changelog
0.3.2
Ignore test files (*.test.*
, *.spec.*
) (fixes #2)