Skip to content

chore(deps): update dependency eslint-plugin-react-refresh to v0.5.3 - #168

Open
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/eslint-plugin-react-refresh-0.x
Open

chore(deps): update dependency eslint-plugin-react-refresh to v0.5.3#168
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/eslint-plugin-react-refresh-0.x

Conversation

@renovate

@renovate renovate Bot commented Jul 19, 2025

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
eslint-plugin-react-refresh 0.4.190.5.3 age confidence

Release Notes

ArnaudBarre/eslint-plugin-react-refresh (eslint-plugin-react-refresh)

v0.5.3

Compare Source

  • Fix check for non component class exported via export { } #​110 (fixes #​109)

v0.5.2

Compare Source

  • Support nested function calls for extraHOCs (actually fixes #​104)

v0.5.1

Compare Source

  • Mark ESLint v10 as supported
  • Support false positives with TypeScript function overloading (fixes #​105)
  • Support nested function calls for extraHOCs (fixes #​104)

v0.5.0

Compare Source

Breaking changes
  • The package now ships as ESM and requires ESLint 9 + node 20. Because legacy config doesn't support ESM, this requires to use flat config
  • A new reactRefresh export is available and prefered over the default export. It's an object with two properties:
    • plugin: The plugin object with the rules
    • configs: An object containing configuration presets, each exposed as a function. These functions accept your custom options, merge them with sensible defaults for that config, and return the final config object.
  • customHOCs option was renamed to extraHOCs
  • Validation of HOCs calls is now more strict, you may need to add some HOCs to the extraHOCs option

Config example:

import { defineConfig } from "eslint/config";
import { reactRefresh } from "eslint-plugin-react-refresh";

export default defineConfig(
  /* Main config */
  reactRefresh.configs.vite({ extraHOCs: ["someLibHOC"] }),
);

Config example without config:

import { defineConfig } from "eslint/config";
import { reactRefresh } from "eslint-plugin-react-refresh";

export default defineConfig({
  files: ["**/*.ts", "**/*.tsx"],
  plugins: {
    // other plugins
    "react-refresh": reactRefresh.plugin,
  },
  rules: {
    // other rules
    "react-refresh/only-export-components": [
      "warn",
      { extraHOCs: ["someLibHOC"] },
    ],
  },
});
Why

This version follows a revamp of the internal logic to better make the difference between random call expressions like export const Enum = Object.keys(Record) and actual React HOC calls like export const MemoComponent = memo(Component). (fixes #​93)

The rule now handles ternaries and patterns like export default customHOC(props)(Component) which makes it able to correctly support files like this one given this config:

{
  "react-refresh/only-export-components": [
    "warn",
    { "extraHOCs": ["createRootRouteWithContext"] }
  ]
}

[!NOTE]
Actually createRoute functions from TanStack Router are not React HOCs, they return route objects that fake to be a memoized component but are not. When only doing createRootRoute({ component: Foo }), HMR will work fine, but as soon as you add a prop to the options that is not a React component, HMR will not work. I would recommend to avoid adding any TanStack function to extraHOCs it you want to preserve good HMR in the long term. Bluesky thread.

Because I'm not 100% sure this new logic doesn't introduce any false positive, this is done in a major-like version. This also give me the occasion to remove the hardcoded connect from the rule. If you are using connect from react-redux, you should now add it to extraHOCs like this:

{
  "react-refresh/only-export-components": ["warn", { "extraHOCs": ["connect"] }]
}

v0.4.26

Compare Source

v0.4.25

Compare Source

  • Report cases like export const ENUM = Object.keys(TABLE) as EnumType[]; (fixes #​93) (reverted in 0.4.26)
  • Allow _ in component names (#​94)

v0.4.24

Compare Source

  • Add "generateImageMetadata", "generateSitemaps" & "generateStaticParams" to allowExportNames in Next config

v0.4.23

Compare Source

  • Add "metadata", "generateMetadata" & "generateViewport" to allowExportNames in Next config

v0.4.22

Compare Source

  • Add "viewport" to allowExportNames in Next config (#​89)

v0.4.21

Compare Source

  • Add Next config (fixes #​85)

This allows exports like fetchCache and revalidate which are used in Page or Layout components and don't trigger a full page reload.

import reactRefresh from "eslint-plugin-react-refresh";

export default [
  /* Main config */
  reactRefresh.configs.next,
];

v0.4.20

Compare Source

  • Don't warn on nested HOC calls (fixes #​79)
  • Fix false positive with as const (fixes #​80)

Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate
renovate Bot force-pushed the renovate/eslint-plugin-react-refresh-0.x branch 2 times, most recently from 34fdb58 to 3c3c0ad Compare July 20, 2025 13:12
@renovate
renovate Bot force-pushed the renovate/eslint-plugin-react-refresh-0.x branch from 3c3c0ad to 50b03ba Compare August 10, 2025 14:28
@renovate renovate Bot changed the title chore(deps): update dependency eslint-plugin-react-refresh to v0.4.20 chore(deps): update dependency eslint-plugin-react-refresh to v0.4.21 Sep 23, 2025
@renovate
renovate Bot force-pushed the renovate/eslint-plugin-react-refresh-0.x branch from 50b03ba to 6a62bea Compare September 23, 2025 01:30
@renovate renovate Bot changed the title chore(deps): update dependency eslint-plugin-react-refresh to v0.4.21 chore(deps): update dependency eslint-plugin-react-refresh to v0.4.22 Sep 28, 2025
@renovate
renovate Bot force-pushed the renovate/eslint-plugin-react-refresh-0.x branch 2 times, most recently from 9bc4ebc to 910db62 Compare October 2, 2025 01:10
@renovate renovate Bot changed the title chore(deps): update dependency eslint-plugin-react-refresh to v0.4.22 chore(deps): update dependency eslint-plugin-react-refresh to v0.4.23 Oct 2, 2025
@renovate renovate Bot changed the title chore(deps): update dependency eslint-plugin-react-refresh to v0.4.23 chore(deps): update dependency eslint-plugin-react-refresh to v0.4.24 Oct 15, 2025
@renovate
renovate Bot force-pushed the renovate/eslint-plugin-react-refresh-0.x branch 2 times, most recently from 6263b64 to 902aada Compare October 21, 2025 09:08
@renovate
renovate Bot force-pushed the renovate/eslint-plugin-react-refresh-0.x branch from 902aada to de15333 Compare December 20, 2025 00:36
@renovate renovate Bot changed the title chore(deps): update dependency eslint-plugin-react-refresh to v0.4.24 chore(deps): update dependency eslint-plugin-react-refresh to v0.4.26 Dec 20, 2025
@renovate
renovate Bot force-pushed the renovate/eslint-plugin-react-refresh-0.x branch from de15333 to 32879d5 Compare January 19, 2026 19:50
@renovate
renovate Bot force-pushed the renovate/eslint-plugin-react-refresh-0.x branch from 32879d5 to 9c489a8 Compare February 4, 2026 14:01
@renovate renovate Bot changed the title chore(deps): update dependency eslint-plugin-react-refresh to v0.4.26 chore(deps): update dependency eslint-plugin-react-refresh to v0.5.0 Feb 4, 2026
@renovate
renovate Bot force-pushed the renovate/eslint-plugin-react-refresh-0.x branch from 9c489a8 to c42d582 Compare February 26, 2026 11:05
@renovate renovate Bot changed the title chore(deps): update dependency eslint-plugin-react-refresh to v0.5.0 chore(deps): update dependency eslint-plugin-react-refresh to v0.5.1 Feb 26, 2026
@renovate
renovate Bot force-pushed the renovate/eslint-plugin-react-refresh-0.x branch from c42d582 to 18242f6 Compare February 26, 2026 20:54
@renovate renovate Bot changed the title chore(deps): update dependency eslint-plugin-react-refresh to v0.5.1 chore(deps): update dependency eslint-plugin-react-refresh to v0.5.2 Feb 26, 2026
@renovate
renovate Bot force-pushed the renovate/eslint-plugin-react-refresh-0.x branch from 18242f6 to 66fe22f Compare May 12, 2026 17:53
@renovate
renovate Bot force-pushed the renovate/eslint-plugin-react-refresh-0.x branch from 66fe22f to f1b4254 Compare June 17, 2026 18:47
@renovate renovate Bot changed the title chore(deps): update dependency eslint-plugin-react-refresh to v0.5.2 chore(deps): update dependency eslint-plugin-react-refresh to v0.5.3 Jun 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants