Skip to content

Releases: ArnaudBarre/eslint-plugin-react-refresh

v0.4.6

13 Mar 08:52
Compare
Choose a tag to compare
  • Ignore cypress test files (#39)

v0.4.5

02 Dec 20:22
Compare
Choose a tag to compare
  • Allow TaggedTemplateExpression for styled components (fixes #32)

v0.4.4

29 Oct 17:30
Compare
Choose a tag to compare
  • Add allowExportNames option (fixes #29)
  • Support memo default export function components (fixes #27)
  • Warn on export expressions that are not React component (array, object, logical expression, ...) (fixes #26)

v0.4.3

09 Jul 16:20
Compare
Choose a tag to compare
  • Add warning for TS enums exports

v0.4.2

08 Jul 17:31
Compare
Choose a tag to compare

v0.4.1

02 May 22:46
Compare
Choose a tag to compare
  • Ignore export type * (fixes #12)
  • Support for all-uppercase function wrapped in forwardRef/memo (#11)

v0.4.0

30 Apr 13:19
Compare
Choose a tag to compare

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;

v0.3.5

27 Apr 08:47
Compare
Choose a tag to compare

Ignore stories files (*.stories.*) (Fixes #10)

v0.3.4

10 Feb 13:10
Compare
Choose a tag to compare

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)

v0.3.3

29 Jan 03:36
0ab4d91
Compare
Choose a tag to compare

Add checkJS option (#5) (Fixes #4)