Update dependency eslint-plugin-react-refresh to v0.4.16 #148

Merged
pierre merged 1 commits from renovate/eslint-plugin-react-refresh-0.x-lockfile into master 2024-12-03 00:59:16 +00:00
Owner

This PR contains the following updates:

Package Type Update Change
eslint-plugin-react-refresh devDependencies patch 0.4.14 -> 0.4.16

Release Notes

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

v0.4.16

Compare Source

Fix CJS/ESM interop issue. Sorry everyone for the trouble.

v0.4.15

Compare Source

Add support for custom HOCs (#​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:

const Foo = () => <></>;
export default observer(Foo);
{
  "react-refresh/only-export-components": [
    "error",
    { "customHOCs": ["observer"] }
  ]
}

Thanks @​HorusGoul!

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 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) 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.


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

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 has been generated by Renovate Bot.

This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [eslint-plugin-react-refresh](https://github.com/ArnaudBarre/eslint-plugin-react-refresh) | devDependencies | patch | [`0.4.14` -> `0.4.16`](https://renovatebot.com/diffs/npm/eslint-plugin-react-refresh/0.4.14/0.4.16) | --- ### Release Notes <details> <summary>ArnaudBarre/eslint-plugin-react-refresh (eslint-plugin-react-refresh)</summary> ### [`v0.4.16`](https://github.com/ArnaudBarre/eslint-plugin-react-refresh/blob/HEAD/CHANGELOG.md#0416) [Compare Source](https://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://github.com/ArnaudBarre/eslint-plugin-react-refresh/blob/HEAD/CHANGELOG.md#0415) [Compare Source](https://github.com/ArnaudBarre/eslint-plugin-react-refresh/compare/v0.4.14...v0.4.15) ##### Add support for custom HOCs ([#&#8203;60](https://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 [@&#8203;HorusGoul](https://github.com/HorusGoul)! ##### Add recommended config and simple types ([#&#8203;67](https://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 ([#&#8203;56](https://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. </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **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. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS40NS4yIiwidXBkYXRlZEluVmVyIjoiMzkuNDUuMiIsInRhcmdldEJyYW5jaCI6Im1hc3RlciIsImxhYmVscyI6W119-->
pierre added 1 commit 2024-12-03 00:24:41 +00:00
Update dependency eslint-plugin-react-refresh to v0.4.16
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
1ef5bf8848
pierre scheduled this pull request to auto merge when all checks succeed 2024-12-03 00:24:41 +00:00
pierre merged commit 1ef5bf8848 into master 2024-12-03 00:59:16 +00:00
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: pierre/VirtWebRemote#148
No description provided.