chore(deps-dev): bump eslint-plugin-react-refresh from 0.4.26 to 0.5.2
Bumps eslint-plugin-react-refresh from 0.4.26 to 0.5.2.
Release notes
Sourced from eslint-plugin-react-refresh's releases.
v0.5.2
- Support nested function calls for extraHOCs (actually fixes #104)
v0.5.1
- 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
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
reactRefreshexport is available and prefered over the default export. It's an object with two properties:
plugin: The plugin object with the rulesconfigs: 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.customHOCsoption was renamed toextraHOCs- Validation of HOCs calls is now more strict, you may need to add some HOCs to the
extraHOCsoption (likeconnectorstyled)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"] }, ], }, }); </tr></table>
... (truncated)
Changelog
Sourced from eslint-plugin-react-refresh's changelog.
0.5.2
- Support nested function calls for extraHOCs (actually fixes #104)
0.5.1
- Mark ESLint v10 as supported
- Support false positives with TypeScript function overloading (fixes #105)
- Support nested function calls for extraHOCs (fixes #104)
0.5.0
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
reactRefreshexport is available and prefered over the default export. It's an object with two properties:
plugin: The plugin object with the rulesconfigs: 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.customHOCsoption was renamed toextraHOCs- Validation of HOCs calls is now more strict, you may need to add some HOCs to the
extraHOCsoptionConfig 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"] }, </tr></table>
... (truncated)
Commits
c0317bfFix support for nested function calls for extraHOCs [publish]42a1805Explicit v10 support (fixes #106) [publish]199793eSupport nested function calls for extraHOCs (fixes #104)26b3c15Support false positives with TypeScript function overloading (fixes #105)daa2efbRevamp logic to catch more cases [publish] (#97)- See full diff in compare view
The latest updates on your projects. Learn more about Vercel for GitHub.
| Project | Deployment | Actions | Updated (UTC) |
|---|---|---|---|
| prepedge_ai | Preview, Comment | Jun 11, 2026 11:33am |