From 69e4888d71f0231f23244467a745e6450da0d428 Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Tue, 21 Jan 2025 14:24:47 +0200
Subject: [PATCH] Bump eslint-plugin-react-refresh from 0.4.6 to 0.4.18 (#987)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Bumps
[eslint-plugin-react-refresh](https://github.com/ArnaudBarre/eslint-plugin-react-refresh)
from 0.4.6 to 0.4.18.
Sourced from eslint-plugin-react-refresh's
releases. ESM/CJS interop is the worse that happened to this ecosystem, this is
all I have to say. Fix CJS/ESM interop issue. Sorry everyone for the trouble. By default, the rule only knows that Thanks You can now add the recommended config to your ESLint config like
this: export default [
/* Main config */
reactRefresh.configs.recommended, // Or reactRefresh.configs.vite for
Vite users
];
Release notes
v0.4.18
v0.4.17
.default
property access under TS node16 module resolution (fixes #70)v0.4.16
v0.4.15
Add support for custom HOCs (#60)
memo &
forwardRef function calls with return a React component.
With this option, you can also allow extra function names like Mobx
observer to make this code valid:const Foo = () => <></>;
export default observer(Foo);
{
"react-refresh/only-export-components": [
"error",
{ "customHOCs": ["observer"] }
]
}
@​HorusGoul!Add recommended config and simple types (#67)
import reactRefresh from
"eslint-plugin-react-refresh";
To follow ESLint recommandations, the rule is added with the
error severity.
Some simple types ensure that people typecheking their config won't
need @ts-expect-error anymore.
... (truncated)
Sourced from eslint-plugin-react-refresh's changelog.
0.4.18
ESM/CJS interop is the worth that happend to this ecosystem, this is all I have to say.
0.4.17
- Fix detection of local components to not generate warning on for variable inside JSX files that follow React component naming (fixes #75)
- Update types to not require extra unnecessary
.defaultproperty access under TS node16 module resolution (fixes #70)0.4.16
Fix CJS/ESM interop issue. Sorry everyone for the trouble.
0.4.15
Add support for custom HOCs (#60)
By default, the rule only knows that
memo&forwardReffunction calls with return a React component. With this option, you can also allow extra function names like Mobx observer to make this code valid:const Foo = () => <></>; export default observer(Foo);{ "react-refresh/only-export-components": [ "error", { "customHOCs": ["observer"] } ] }Thanks
@​HorusGoul!Add recommended config and simple types (#67)
You can now add the recommended config to your ESLint config like this:
import reactRefresh from "eslint-plugin-react-refresh";export default [ /* Main config */ reactRefresh.configs.recommended, // Or reactRefresh.configs.vite for Vite users ];
To follow ESLint recommandations, the rule is added with the
errorseverity.
... (truncated)
3d6251d
Fix types [publish]47f25f0
Update types to not require extra unnecessary .default
property access unde...639e772
Fix detection of local components to not generate warning on for
variable ins...d939cc4
Fix exports [publish]7d1709b
0.4.15 [publish]ec747c2
Add configs and simple types (#67)359ae21
Bump ESLint peer dependency (fixes #56)86bddb3
Add changelog entry & simplify legacy name based only check478e778
Add basic support for custom HOCs (#60)94c9d7d
docs: switch suggested severity from 'warn' to 'error' (#66)