chore(deps): bump @eslint-react/eslint-plugin from ^4.2.3 to ^5.6.0#162
Merged
chore(deps): bump @eslint-react/eslint-plugin from ^4.2.3 to ^5.6.0#162
@eslint-react/eslint-plugin from ^4.2.3 to ^5.6.0#162Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^4.2.3→^5.6.0Release Notes
Rel1cx/eslint-react (@eslint-react/eslint-plugin)
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: (UTC)
🚦 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.