Releases: ArnaudBarre/eslint-plugin-react-refresh
Releases · ArnaudBarre/eslint-plugin-react-refresh
v0.4.6
v0.4.5
v0.4.4
v0.4.3
- Add warning for TS enums exports
v0.4.2
- Fix typos in messages (#15, #16). Thanks @adamschachne & @janikga!
v0.4.1
v0.4.0
Add 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.
Allow all-uppercase function exports (fixes #11)
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;