Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

eslint-plugin-react-refresh

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-react-refresh - npm Package Versions

13

0.4.4

Diff

Changelog

Source

0.4.4

  • 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)
arnaud-barre
published 0.4.3 •

Changelog

Source

0.4.3

  • Add warning for TS enums exports
arnaud-barre
published 0.4.2 •

Changelog

Source

0.4.2

  • Fix typos in messages (#15, #16). Thanks @adamschachne & @janikga!
arnaud-barre
published 0.4.1 •

Changelog

Source

0.4.1

  • Ignore export type * (fixes #12)
  • Support for all-uppercase function wrapped in forwardRef/memo (#11)
arnaud-barre
published 0.4.0 •

Changelog

Source

0.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;
arnaud-barre
published 0.3.5 •

Changelog

Source

0.3.5

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

arnaud-barre
published 0.3.4 •

Changelog

Source

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)

arnaud-barre
published 0.3.3 •

Changelog

Source

0.3.3

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

arnaud-barre
published 0.3.2 •

Changelog

Source

0.3.2

Ignore test files (*.test.*, *.spec.*) (fixes #2)

arnaud-barre
published 0.3.1 •

Changelog

Source

0.3.1

Allow numbers in component names (fixes #1)

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc