chore(deps): update dependency @eslint-react/eslint-plugin to v5#2084
Conversation
✅ Deploy Preview for cert-manager ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
f5ac87f to
8128596
Compare
8128596 to
fc18a6d
Compare
Signed-off-by: Renovate Bot <renovate-bot@users.noreply.github.com>
fc18a6d to
8b6f03a
Compare
There was a problem hiding this comment.
Pull request overview
Renovate-generated dependency update bumping @eslint-react/eslint-plugin from 4.2.3 to 5.7.5 (a major version upgrade).
Changes:
- Bump
@eslint-react/eslint-plugindevDependency to 5.7.5 inpackage.json - Update
package-lock.jsonwith new versions for the plugin and its transitive dependencies (including a new@eslint-react/eslintpackage and bumps to@typescript-eslint/*8.59.2 andzod4.4.3)
Reviewed changes
Copilot reviewed 1 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| package.json | Bumps @eslint-react/eslint-plugin from 4.2.3 to 5.7.5 |
| package-lock.json | Regenerated lockfile reflecting the v5 upgrade and transitive dep bumps |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: erikgb The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
This PR contains the following updates:
4.2.3→5.7.5Release Notes
Rel1cx/eslint-react (@eslint-react/eslint-plugin)
v5.7.5Compare Source
🏗️ Internal
@eslint/compatfrom 2.0.5 to 2.1.0.@types/nodefrom 25.6.0 to 25.6.2.nextfrom 16.2.5 to 16.2.6.publintfrom 0.3.19 to 0.3.20.tsdownfrom 0.21.10 to 0.22.0.pnpmfrom 10.33.4 to 11.0.8.Full Changelog: Rel1cx/eslint-react@v5.7.4...v5.7.5
v5.7.4Compare Source
🏗️ Internal
@typescript-eslintpackages from 8.59.1 to 8.59.2.reactandreact-domfrom 19.2.5 to 19.2.6.nextfrom 16.2.4 to 16.2.5.nxfrom 22.7.1 to 23.0.0-canary.20260506-b594537.fumadocs-coreandfumadocs-uifrom 16.8.5 to 16.8.7.postcssfrom 8.5.13 to 8.5.14.publintfrom 0.3.18 to 0.3.19.pnpmfrom 10.33.2 to 10.33.4.Full Changelog: Rel1cx/eslint-react@v5.7.3...v5.7.4
v5.7.3Compare Source
🐞 Fixes
react-x/immutability: Exempted ref mutations via a naming heuristic — any object whose identifier isrefor ends withRefis treated as a mutable ref and skipped from immutability checks. This fixes false positives when mutatingRefObject<T>values received as props (#1752, #1751).react-x/immutability: AddednoRefLikeStateNamediagnostic to prevent state variables from being namedrefor ending withRef, which would otherwise bypass the ref exemption heuristic (#1752).📝 Documentation
react-jsx/no-key-after-spreaddocumentation (jsx/no-key-after-spread→jsx-no-key-after-spread) (#1750).Full Changelog: Rel1cx/eslint-react@v5.7.2...v5.7.3
v5.7.2Compare Source
🐞 Fixes
react-x/no-unused-state: Removed the rule from therecommendedpreset for now (#1747, #1748).📝 Documentation
🏗️ Internal
Full Changelog: Rel1cx/eslint-react@v5.7.1...v5.7.2
v5.7.1Compare Source
🐞 Fixes
allpreset: Fixed an issue where theallpreset accidentally included rules requiring type information (#1744).📝 Documentation
no-unused-staterule wording and examples.🏗️ Internal
nextand@rbxts/react.react-compiler-fixtures-all-preset.jsonlsnapshot generation.Full Changelog: Rel1cx/eslint-react@v5.7.0...v5.7.1
v5.7.0Compare Source
✨ New
react-x/no-unused-state: The rule re-added as a no-op inv5.6.6is now fully implemented. It detects state variables declared viauseState(or similar state hooks) that are defined but never read, or only read inside an effect or effect dependency array (#1741).📝 Documentation
no-unused-statemigration docs and removed rule reasons.Full Changelog: Rel1cx/eslint-react@v5.6.6...v5.7.0
v5.6.6Compare Source
✨ New
react-x/no-unused-state: Re-add thereact-x/no-unused-staterule that was removed in5.0.0as a no-op rule for detecting unused state in function components in a future release.Full Changelog: Rel1cx/eslint-react@v5.6.4...v5.6.6
v5.6.4Compare Source
✨ New
react-x/no-unused-class-component-members: Now flagsshouldComponentUpdatemethods defined in classes extendingPureComponentas unused, sincePureComponentimplements its ownshouldComponentUpdatewith shallow prop and state comparison (#1738).📝 Documentation
jsxpreset documentation to multiple rule docs.🏗️ Internal
ast: Added an optionalstoppredicate tofindParentutility for more control over ancestor traversal (#1736).skottwithsentruxfor architecture linting.Full Changelog: Rel1cx/eslint-react@v5.6.3-beta.0...v5.6.4
v5.6.2Compare Source
🐞 Fixes
react-x/use-memo: Fixed false positives inuseMemodependency analysis by using reference/definition analysis (#1735).📝 Documentation
custom-rules-of-staterecipe.noDirectAccessPropscustom rule example.🏗️ Internal
lucide-reactfrom 1.12.0 to 1.14.0.baseline-browser-mappingto 2.10.24.Full Changelog: Rel1cx/eslint-react@v5.6.0...v5.6.2
v5.6.0Compare Source
This release consolidates all changes since v4.2.1.
💥 Breaking Changes
Core API Refactoring (@eslint-react/core)
component/,function/,hook/,semantic/, andapi/into the root directory.isReactAPI→isAPIisReactAPICall→isAPICallisInitializedFromReact→isAPIFromReactisInitializedFromReactNative→isAPIFromReactNativeComponentDetectionHint→FunctionComponentDetectionHintComponentFlag→FunctionComponentFlaggetComponentCollector→getFunctionComponentCollectorgetComponentCollectorLegacy→getClassComponentCollectortype-is,type-name,type-variant) fromeslint-plugin-react-xto@eslint-react/core.Toolkitinterface in@eslint-react/kitto reflect the naming changes above.Kit API Simplification (@eslint-react/kit)
RuleToolkit.isAPI: Removed pre-built identifier predicates (memo,lazy,forwardRef, etc.) fromRuleToolkit.is. Only*Callvariants andAPI/APICallfactories are now available.initializedFromReact→APIFromReactinitializedFromReactNative→APIFromReactNativeis.memo(node),is.lazy(node), etc. must migrate tois.memoCall(node)or useis.API("memo")(node).Type Alias Removal
RuleDefinitiontype alias: TheRuleDefinitiontype has been completely removed from@eslint-react/kit. UseRuleFunctioninstead.Removed Rules
The following rules have been removed from
eslint-plugin-react-x,eslint-plugin-react-dom, andeslint-plugin-react-debug:component-hook-factoriesreact-xno-redundant-should-component-updatereact-xno-unnecessary-use-callbackreact-xno-unnecessary-use-memoreact-xno-unused-statereact-xprefer-destructuring-assignmentreact-xprefer-namespace-importreact-xprefer-namespace-importreact-domdebug/class-componentreact-debugClass Component Support Deprecation
isClassComponent,isPureComponent, and various lifecycle checkers) have been marked as@deprecated, retaining only minimal compatibility support for existing rules.eslint-plugin-react-web-api, includingno-leaked-event-listener,no-leaked-interval, andno-leaked-timeout, have removed detection for Class Component lifecycles (componentDidMount/componentWillUnmount) and now only report on Hook Effects (useEffect, etc.).✨ New
New Rules
react-x/globals: New rule for restricting usage of global variables in React components.react-x/static-components: New rule for enforcing static component definitions. Enhanced with variable reference tracking and acreatedHerediagnostic to reduce false positives.react-web-api/no-leaked-fetch: New rule that detects leakedfetchcalls in effects, closing #1714.Kit Enhancements
ast.findParentutility to@eslint-react/kitfor traversing AST ancestors.node:crypto randomBytes).Custom Rule Examples
🐞 Fixes
Rule Fixes
react-x/error-boundaries: Fixed false positives on non-React code and resolved catch block over-reporting.react-x/set-state-in-effect: Improved validation accuracy.react-x/use-memo: Added reassignment check, aligned message IDs, and added support forfor-of/for-inloops.Config Fixes
Type Expression Fixes
Extract.unwrapfor type expressions and chain expressions.🪄 Improvements
API & Refactoring
ast: Normalized API naming conventions and rewrote Check helpers.ast: RenamedisJSXLike→isJSXElementOrFragmentandisMethodOrProperty→isPropertyOrMethod.@eslint-react/eslintpackage.@eslint-react/jsxfrom@eslint-react/coreinto a standalone utility package for static analysis of JSX patterns.@and#path aliases and replacedtsxwithvite-node.lib.tsmodules across multiple plugins.RuleConfigwithLinter.RulesRecordfrom ESLint.Core & AST Improvements
ast: UpdatedFunctionInitPathtypes to support method definitions and property arrow functions in class expressions.ast/isNodeEqual: FixedJSXNamespacedNamecomparison logic.Rule Improvements
react-x/static-components: Registered inall,x, anddisable-experimentalconfigs.react-rsc/function-definition: Added directive position and quote checks.lib.tsfiles.Website & Documentation Improvements
/llms.txt,/llms-full.txt,/llms.mdx).Testing
Dependencies
@typescript-eslintpackages to 8.59.1.tsl-dx,tsdown,fumadocs,postcss,lucide-react,eslint-plugin-package-json, and other dependencies.📝 Documentation
no-set-state,no-string-refs).🏗️ Internal
build:pluginsscript and updated build path patterns.publishConfig.accessto packages and marked@local/effas private.major-release-checklist.md.scripts/prepare-release.tsand the accompanyingprepare:releasenpm script.Full Changelog: Rel1cx/eslint-react@v4.2.1...v5.6.0
Configuration
📅 Schedule: (in timezone Europe/London)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.