Rename component detection hints - #1482
Merged
Merged
Conversation
- Rename JsxDetectionHint flags from Skip* to DoNotIncludeJsxWith*Value - Rename Strict* flags to Require* for better semantics - Rename ComponentDetectionHint Skip* flags to DoNotIncludeFunctionDefined* - Update all references and documentation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
Contributor
There was a problem hiding this comment.
Pull request overview
This PR refactors the naming of JSX/component detection hint flags across @eslint-react/core, updates downstream rule usage in eslint-plugin-react-x, and regenerates/adjusts generated documentation to match the new names and signatures.
Changes:
- Renamed
JsxDetectionHint/ComponentDetectionHintflag names and updated core logic and rule consumers accordingly. - Added a TypeScript symbol fully-qualified-name helper and used it in
react-x/no-implicit-keyto improve React internal key detection. - Regenerated/updated various docs (anchors, parameter optionality, tables) and refreshed
pnpm-lock.yaml.
Reviewed changes
Copilot reviewed 42 out of 43 changed files in this pull request and generated 6 comments.
Show a summary per file
| File | Description |
|---|---|
| pnpm-lock.yaml | Dependency lock updates. |
| packages/utilities/eff/docs/functions/flow.md | Doc table cleanup (placeholder descriptions). |
| packages/shared/docs/variables/DEFAULT_ESLINT_SETTINGS.md | Updated generated anchor IDs. |
| packages/shared/docs/variables/DEFAULT_ESLINT_REACT_SETTINGS.md | Updated generated anchor IDs. |
| packages/shared/docs/type-aliases/RuleSuggest.md | Updated generated anchor IDs. |
| packages/shared/docs/type-aliases/RegExpLike.md | Updated generated anchor IDs. |
| packages/shared/docs/interfaces/ESLintReactSettingsNormalized.md | Updated generated anchor IDs. |
| packages/shared/docs/interfaces/CompatibleRule.md | Updated generated anchor IDs. |
| packages/shared/docs/interfaces/CompatiblePlugin.md | Updated generated anchor IDs. |
| packages/shared/docs/interfaces/CompatibleConfig.md | Updated generated anchor IDs. |
| packages/shared/docs/classes/IdGenerator.md | Updated constructor signature in docs to match optional prefix defaulting. |
| packages/plugins/eslint-plugin-react-x/src/utils/type-name.ts | New helper getFullyQualifiedNameEx for improved symbol naming. |
| packages/plugins/eslint-plugin-react-x/src/utils/index.ts | Re-exported new type-name utilities. |
| packages/plugins/eslint-plugin-react-x/src/rules/no-nested-component-definitions.ts | Updated detection hint bitflags to renamed constants. |
| packages/plugins/eslint-plugin-react-x/src/rules/no-implicit-key.ts | Switched internal-key detection to use getFullyQualifiedNameEx. |
| packages/core/src/jsx/jsx-detection.ts | Renamed JsxDetectionHint flags and updated isJsxLike logic/defaults. |
| packages/core/src/component/component-detection-hint.ts | Renamed ComponentDetectionHint flags and updated default hint composition. |
| packages/core/src/component/component-definition.ts | Updated hint checks to renamed flags. |
| packages/core/docs/variables/JsxEmit.md | Updated generated anchor IDs. |
| packages/core/docs/variables/JsxDetectionHint.md | Updated docs to renamed hint fields and new anchors. |
| packages/core/docs/variables/ComponentFlag.md | Updated generated anchor IDs. |
| packages/core/docs/variables/ComponentDetectionHint.md | Updated docs to renamed hint fields and new anchors. |
| packages/core/docs/interfaces/ServerFunctionSemanticNode.md | Updated generated anchor IDs and cross-links. |
| packages/core/docs/interfaces/SemanticNode.md | Updated generated anchor IDs. |
| packages/core/docs/interfaces/SemanticFunc.md | Updated generated anchor IDs and cross-links. |
| packages/core/docs/interfaces/JsxConfig.md | Updated generated anchor IDs. |
| packages/core/docs/interfaces/HookSemanticNode.md | Updated generated anchor IDs and cross-links. |
| packages/core/docs/interfaces/FunctionComponentSemanticNode.md | Updated generated anchor IDs and cross-links. |
| packages/core/docs/interfaces/ClientFunctionSemanticNode.md | Updated generated anchor IDs and cross-links. |
| packages/core/docs/interfaces/ClassComponentSemanticNode.md | Updated generated anchor IDs and cross-links. |
| packages/core/docs/functions/useComponentCollector.md | Updated signature in docs to show optional options (defaulted). |
| packages/core/docs/functions/isUseStateLikeCall.md | Updated signature in docs to show optional regex param (defaulted). |
| packages/core/docs/functions/isUseEffectLikeCall.md | Updated signature in docs to show optional regex param (defaulted). |
| packages/core/docs/functions/isJsxLike.md | Updated signature in docs to show optional hint param (defaulted). |
| packages/core/docs/functions/isInitializedFromReactNative.md | Updated signature in docs to show optional importSource param. |
| packages/core/docs/functions/isInitializedFromReact.md | Updated signature in docs to show optional importSource param. |
| packages/core/docs/functions/isFunctionWithLooseComponentName.md | Updated signature in docs to show optional allowNone param. |
| packages/core/docs/functions/findParentJsxAttribute.md | Updated signature in docs to show optional test param (defaulted). |
| packages/core/docs/functions/findEnclosingComponentOrHook.md | Updated signature in docs to show optional filter param (defaulted). |
| packages/core/docs/@eslint-react/namespaces/useHookCollector/type-aliases/ReturnType.md | Updated generated anchor IDs. |
| packages/core/docs/@eslint-react/namespaces/useComponentCollectorLegacy/type-aliases/ReturnType.md | Updated generated anchor IDs. |
| packages/core/docs/@eslint-react/namespaces/useComponentCollector/type-aliases/ReturnType.md | Updated generated anchor IDs. |
| packages/core/docs/@eslint-react/namespaces/useComponentCollector/type-aliases/Options.md | Updated generated anchor IDs. |
Files not reviewed (1)
- pnpm-lock.yaml: Language not supported
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Rel1cx
force-pushed
the
component-detection-hint
branch
from
February 7, 2026 10:40
049b5c4 to
49d031e
Compare
5 tasks
Contributor
4 tasks
Contributor
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: REL1CX <solarflamex@hotmail.com>
Contributor
Rel1cx
force-pushed
the
component-detection-hint
branch
from
February 7, 2026 10:50
c4b45b1 to
d9bd7b6
Compare
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Rel1cx
force-pushed
the
component-detection-hint
branch
from
February 7, 2026 10:53
d9bd7b6 to
579ea7e
Compare
Rel1cx
added a commit
that referenced
this pull request
May 15, 2026
Co-authored-by: Rel1cx <solflamex@hotmail.com> Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
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.
What kind of change does this PR introduce?
Does this PR introduce a breaking change?
Checklist
fix: remove a typo, closes #___, #___)Other information