Skip to content
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

fix(eslint-plugin-react-compiler): support v9 context api #32045

Merged
merged 1 commit into from
Jan 13, 2025

Conversation

michaelfaith
Copy link
Contributor

Summary

This change fixes a gap in the plugin's support of eslint v9. In one place that it's using the SourceCode api, it's correctly considering v9's api. But in the other place where SourceCode is used, it's only using the legacy api, which was removed in v9.

@poteto
Copy link
Member

poteto commented Jan 13, 2025

Thank you!

This change fixes a gap in the plugin's support of eslint v9.  In one place that it's using the SourceCode api, it's correctly considering v9's api.  But in the other place where SourceCode is used, it's only using the legacy api, which was removed in v9.
@michaelfaith michaelfaith force-pushed the fix/compiler-plugin-v9-support branch from 0642f2f to 4c92a41 Compare January 13, 2025 18:43
@poteto poteto merged commit b3a95ca into facebook:main Jan 13, 2025
4 checks passed
@michaelfaith
Copy link
Contributor Author

Thanks for the quick review. I think I saw mention of there eventually being an effort to merge this plugin with the react-hooks plugin. I'm happy to help with that effort, if there's a need.

@poteto
Copy link
Member

poteto commented Jan 13, 2025

Thanks for the quick review. I think I saw mention of there eventually being an effort to merge this plugin with the react-hooks plugin. I'm happy to help with that effort, if there's a need.

Yeah that's something we're planning on and would appreciate the help! Could you send me a DM on Twitter/bluesky to coordinate?

github-actions bot pushed a commit to code/lib-react that referenced this pull request Jan 14, 2025
…2045)

## Summary

This change fixes a gap in the plugin's support of eslint v9. In one
place that it's using the `SourceCode` api, it's correctly considering
v9's api. But in the other place where `SourceCode` is used, it's only
using the legacy api, which was removed in v9.

DiffTrain build for [b3a95ca](facebook@b3a95ca)
github-actions bot pushed a commit to code/lib-react that referenced this pull request Jan 14, 2025
…2045)

## Summary

This change fixes a gap in the plugin's support of eslint v9. In one
place that it's using the `SourceCode` api, it's correctly considering
v9's api. But in the other place where `SourceCode` is used, it's only
using the legacy api, which was removed in v9.

DiffTrain build for [b3a95ca](facebook@b3a95ca)
@michaelfaith michaelfaith deleted the fix/compiler-plugin-v9-support branch January 20, 2025 06:49
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.

3 participants