mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-04-08 02:52:39 -05:00
Update dependency eslint-plugin-react-refresh to v0.4.19 (#22690)
This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [eslint-plugin-react-refresh](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh) | [`0.4.3` -> `0.4.19`](https://renovatebot.com/diffs/npm/eslint-plugin-react-refresh/0.4.3/0.4.19) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>ArnaudBarre/eslint-plugin-react-refresh (eslint-plugin-react-refresh)</summary> ### [`v0.4.19`](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh/blob/HEAD/CHANGELOG.md#0419) [Compare Source](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh/compare/v0.4.18...v0.4.19) Add name to configs for [ESLint Config Inspector](https://redirect.github.com/eslint/config-inspector) ### [`v0.4.18`](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh/blob/HEAD/CHANGELOG.md#0418) [Compare Source](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh/compare/v0.4.17...v0.4.18) ESM/CJS interop is the worse that happened to this ecosystem, this is all I have to say. ### [`v0.4.17`](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh/blob/HEAD/CHANGELOG.md#0417) [Compare Source](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh/compare/v0.4.16...v0.4.17) - Fix detection of local components to not generate warning on for variable inside JSX files that follow React component naming (fixes [#​75](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh/issues/75)) - Update types to not require extra unnecessary `.default` property access under TS node16 module resolution (fixes [#​70](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh/issues/70)) ### [`v0.4.16`](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh/blob/HEAD/CHANGELOG.md#0416) [Compare Source](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh/compare/v0.4.15...v0.4.16) Fix CJS/ESM interop issue. Sorry everyone for the trouble. ### [`v0.4.15`](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh/blob/HEAD/CHANGELOG.md#0415) [Compare Source](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh/compare/v0.4.14...v0.4.15) ##### Add support for custom HOCs ([#​60](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh/issues/60)) By default, the rule only knows that `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: ```tsx const Foo = () => <></>; export default observer(Foo); ``` ```json { "react-refresh/only-export-components": [ "error", { "customHOCs": ["observer"] } ] } ``` Thanks [@​HorusGoul](https://redirect.github.com/HorusGoul)! ##### Add recommended config and simple types ([#​67](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh/issues/67)) You can now add the recommended config to your ESLint config like this: ```js 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 `error` severity. Some simple types ensure that people typecheking their config won't need `@ts-expect-error` anymore. ##### Bump ESLint peer dependency to 8.40 This was actually done by mistake in the previous release when moving from a deprecated API to a new one. Given that ESLint 8 is officialy end-of-life and the only report ([#​56](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh/issues/56)) didn't get likes, I'm going forward and documenting the expected minimum version from ESLin in the package JSON so that people can get warning from their package manager. ### [`v0.4.14`](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh/blob/HEAD/CHANGELOG.md#0414) [Compare Source](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh/compare/v0.4.13...v0.4.14) - Warn if a context is exported alongside a component (fixes [#​53](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh/issues/53)). Thanks [@​IgorAufricht](https://redirect.github.com/IgorAufricht)! ### [`v0.4.13`](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh/blob/HEAD/CHANGELOG.md#0413) [Compare Source](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh/compare/v0.4.12...v0.4.13) - Support for `react-redux` connect (`export default connect(mapStateToProps, mapDispatchToProps)(MyComponent)`) (fixes [#​51](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh/issues/51)) - Support for [Arbitrary Module Identifiers](https://devblogs.microsoft.com/typescript/announcing-typescript-5-6/#support-for-arbitrary-module-identifiers) syntax (fixes [#​52](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh/issues/52)) ### [`v0.4.12`](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh/blob/HEAD/CHANGELOG.md#0412) [Compare Source](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh/compare/v0.4.11...v0.4.12) - Support type assertion on default export (fixes [#​48](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh/issues/48)) - Add default export to fix usage with jiti (fixes [#​50](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh/issues/50)) ### [`v0.4.11`](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh/blob/HEAD/CHANGELOG.md#0411) [Compare Source](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh/compare/v0.4.10...v0.4.11) - Ignore type exports (ex. `export type foo = string;`) (fixes [#​47](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh/issues/47)) ### [`v0.4.10`](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh/blob/HEAD/CHANGELOG.md#0410) [Compare Source](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh/compare/v0.4.9...v0.4.10) - Support `function Foo() {}; export default React.memo(Foo)` ([#​46](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh/issues/46)) (thanks [@​SukkaW](https://redirect.github.com/SukkaW)!) ### [`v0.4.9`](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh/blob/HEAD/CHANGELOG.md#049) [Compare Source](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh/compare/v0.4.8...v0.4.9) - Support `function Foo() {}; export default memo(Foo)` (fixes [#​44](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh/issues/44)) (thanks [@​SukkaW](https://redirect.github.com/SukkaW)!) ### [`v0.4.8`](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh/blob/HEAD/CHANGELOG.md#048) [Compare Source](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh/compare/v0.4.7...v0.4.8) - Support `export const foo = -1` with `allowConstantExport` (fixes [#​43](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh/issues/43)) ### [`v0.4.7`](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh/blob/HEAD/CHANGELOG.md#047) [Compare Source](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh/compare/v0.4.6...v0.4.7) - Support `export { Component as default }` (fixes [#​41](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh/issues/41)) ### [`v0.4.6`](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh/blob/HEAD/CHANGELOG.md#046) [Compare Source](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh/compare/v0.4.5...v0.4.6) - Ignore cypress test files ([#​39](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh/issues/39)) ### [`v0.4.5`](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh/blob/HEAD/CHANGELOG.md#045) [Compare Source](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh/compare/v0.4.4...v0.4.5) - Allow `TaggedTemplateExpression` for styled components (fixes [#​32](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh/issues/32)) ### [`v0.4.4`](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh/blob/HEAD/CHANGELOG.md#044) [Compare Source](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh/compare/v0.4.3...v0.4.4) - Add `allowExportNames` option (fixes [#​29](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh/issues/29)) - Support memo default export function components (fixes [#​27](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh/issues/27)) - Warn on export expressions that are not React component (array, object, logical expression, ...) (fixes [#​26](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh/issues/26)) </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Never, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/TryGhost/Ghost). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS4yMDcuMSIsInVwZGF0ZWRJblZlciI6IjM5LjIwNy4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
This commit is contained in:
parent
db4ca70601
commit
1383e383aa
7 changed files with 10 additions and 10 deletions
|
@ -44,7 +44,7 @@
|
|||
"c8": "8.0.1",
|
||||
"chai": "4.3.8",
|
||||
"eslint-plugin-react-hooks": "4.6.0",
|
||||
"eslint-plugin-react-refresh": "0.4.3",
|
||||
"eslint-plugin-react-refresh": "0.4.19",
|
||||
"eslint-plugin-tailwindcss": "3.13.0",
|
||||
"jsdom": "24.1.3",
|
||||
"lodash-es": "4.17.21",
|
||||
|
|
|
@ -72,7 +72,7 @@
|
|||
"@types/mocha": "10.0.1",
|
||||
"c8": "8.0.1",
|
||||
"eslint-plugin-react-hooks": "4.6.0",
|
||||
"eslint-plugin-react-refresh": "0.4.3",
|
||||
"eslint-plugin-react-refresh": "0.4.19",
|
||||
"jsdom": "24.1.3",
|
||||
"mocha": "10.8.2",
|
||||
"react": "18.3.1",
|
||||
|
|
|
@ -55,7 +55,7 @@
|
|||
"@types/validator": "13.12.0",
|
||||
"@vitejs/plugin-react": "4.2.1",
|
||||
"eslint-plugin-react-hooks": "4.6.0",
|
||||
"eslint-plugin-react-refresh": "0.4.3",
|
||||
"eslint-plugin-react-refresh": "0.4.19",
|
||||
"eslint-plugin-tailwindcss": "3.13.0",
|
||||
"stylelint": "15.11.0",
|
||||
"vite": "4.5.3",
|
||||
|
|
|
@ -71,7 +71,7 @@
|
|||
"concurrently": "8.2.2",
|
||||
"eslint-plugin-i18next": "6.0.3",
|
||||
"eslint-plugin-react-hooks": "4.6.0",
|
||||
"eslint-plugin-react-refresh": "0.4.3",
|
||||
"eslint-plugin-react-refresh": "0.4.19",
|
||||
"eslint-plugin-tailwindcss": "3.13.0",
|
||||
"jsdom": "24.1.3",
|
||||
"moment": "2.30.1",
|
||||
|
|
|
@ -45,7 +45,7 @@
|
|||
"c8": "8.0.1",
|
||||
"chai": "4.3.8",
|
||||
"eslint-plugin-react-hooks": "4.6.0",
|
||||
"eslint-plugin-react-refresh": "0.4.3",
|
||||
"eslint-plugin-react-refresh": "0.4.19",
|
||||
"eslint-plugin-tailwindcss": "3.13.0",
|
||||
"jsdom": "24.1.3",
|
||||
"lodash-es": "4.17.21",
|
||||
|
|
|
@ -56,7 +56,7 @@
|
|||
"autoprefixer": "10.4.19",
|
||||
"concurrently": "8.2.2",
|
||||
"eslint-plugin-react-hooks": "4.6.0",
|
||||
"eslint-plugin-react-refresh": "0.4.3",
|
||||
"eslint-plugin-react-refresh": "0.4.19",
|
||||
"eslint-plugin-tailwindcss": "3.13.0",
|
||||
"jsdom": "24.1.3",
|
||||
"postcss": "8.4.39",
|
||||
|
|
|
@ -17311,10 +17311,10 @@ eslint-plugin-react-hooks@4.6.0:
|
|||
resolved "https://registry.yarnpkg.com/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-4.6.0.tgz#4c3e697ad95b77e93f8646aaa1630c1ba607edd3"
|
||||
integrity sha512-oFc7Itz9Qxh2x4gNHStv3BqJq54ExXmfC+a1NjAta66IAN87Wu0R/QArgIS9qKzX3dXKPI9H5crl9QchNMY9+g==
|
||||
|
||||
eslint-plugin-react-refresh@0.4.3:
|
||||
version "0.4.3"
|
||||
resolved "https://registry.yarnpkg.com/eslint-plugin-react-refresh/-/eslint-plugin-react-refresh-0.4.3.tgz#59dae8c00a119f06ea16b1d3e6891df3775947c7"
|
||||
integrity sha512-Hh0wv8bUNY877+sI0BlCUlsS0TYYQqvzEwJsJJPM2WF4RnTStSnSR3zdJYa2nPOJgg3UghXi54lVyMSmpCalzA==
|
||||
eslint-plugin-react-refresh@0.4.19:
|
||||
version "0.4.19"
|
||||
resolved "https://registry.yarnpkg.com/eslint-plugin-react-refresh/-/eslint-plugin-react-refresh-0.4.19.tgz#f15020c0caa58e33fc4efda27d328281ca74e53d"
|
||||
integrity sha512-eyy8pcr/YxSYjBoqIFSrlbn9i/xvxUFa8CjzAYo9cFjgGXqq1hyjihcpZvxRLalpaWmueWR81xn7vuKmAFijDQ==
|
||||
|
||||
eslint-plugin-react@7.33.0:
|
||||
version "7.33.0"
|
||||
|
|
Loading…
Add table
Reference in a new issue