KEMBAR78
[compiler] Have react-compiler eslint plugin return a RuleModule by jorge-cab · Pull Request #34421 · facebook/react · GitHub
Skip to content

Conversation

jorge-cab
Copy link
Contributor

@jorge-cab jorge-cab commented Sep 8, 2025

Eslint is expecting a map of [string] => RuleModule. Before we were passing {rule: RuleModule, severity: ErrorSeverity} which was breaking legacy Eslint configurations

Object.entries(allRules).map(([name, {rule}]) => [name, rule]),
);

export {configs, rules, meta};
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems fine. we really need to get rid of this plugin and use the main eslint-plugin-react-hooks one though

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh I could probably help with this if no one is looking at it already

@jorge-cab jorge-cab marked this pull request as ready for review September 8, 2025 20:30
@jorge-cab jorge-cab merged commit 1836b46 into main Sep 9, 2025
32 of 33 checks passed
@poteto poteto deleted the pr34421 branch September 9, 2025 18:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants