-
-
Notifications
You must be signed in to change notification settings - Fork 32
feat: new jsx element and attribute resolution for dom rules #1219
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
…arget-blank.spec.ts Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: REL1CX <rel1cx@proton.me>
…element-resolver.ts Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: REL1CX <rel1cx@proton.me>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR introduces a new JSX element and attribute resolution system for DOM rules, removing the legacy custom component configuration feature while improving the core attribute resolution functionality.
- Refactors the JSX attribute resolution system to use a curried function approach for better API design
- Removes support for custom component configuration (
additionalComponents) from settings - Introduces new
resolveAttributeValuefunction with improved type safety and static value extraction
Reviewed Changes
Copilot reviewed 41 out of 41 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| packages/utilities/ast/src/node-types.ts | Adds new type definition for JSX attribute-like nodes |
| packages/shared/src/settings.ts | Removes custom component schema and related functionality |
| packages/core/src/jsx/jsx-attribute.ts | Refactors getAttribute to return a curried function |
| packages/core/src/jsx/jsx-attribute-value.ts | Replaces getAttributeValue with new resolveAttributeValue function |
| packages/plugins/eslint-plugin-react-dom/src/utils/ | Removes custom component utilities and updates element resolver |
| packages/plugins/eslint-plugin-react-dom/src/rules/ | Updates all DOM rules to use new attribute resolution API |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
What kind of change does this PR introduce?
Does this PR introduce a breaking change?
Checklist
fix: remove a typo, closes #___, #___)Other information