You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(eslint): support eslint for ReactLynx (#1274)
<!--
Thank you for submitting a pull request!
We appreciate the time and effort you have invested in making these
changes. Please ensure that you provide enough information to allow
others to review your pull request.
Upon submission, your pull request will be automatically assigned with
reviewers.
If you want to learn more about contributing to this project, please
visit:
https://github.com/lynx-family/lynx-stack/blob/main/CONTRIBUTING.md.
-->
## Summary
<!-- Can you explain the reasoning behind implementing this change? What
problem or issue does this pull request resolve? -->
<!-- It would be helpful if you could provide any relevant context, such
as GitHub issues or related discussions. -->
Support ESLint for ReactLynx.
As `eslint-plugin-react-hooks` is the prerequisite eslint rule for
[React
Compiler](https://react.dev/learn/react-compiler#installing-eslint-plugin-react-compiler),
we need to support eslint for ReactLynx before landing React Compiler.
Related PR: #1269
## Checklist
<!--- Check and mark with an "x" -->
- [x] Tests updated (or not required).
- [x] Documentation updated (or not required).
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **New Features**
* Added ESLint support for ReactLynx templates, including integration
with React Hooks and React Refresh linting rules.
* Enabled linting for example TypeScript and TSX files.
* Implemented ESLint template mapping for React JavaScript and
TypeScript projects.
* **Bug Fixes**
* Updated callback prop from `onMounted` to `onRender` in relevant
components and tests for improved consistency.
* **Style**
* Refined JSX syntax by converting empty elements to self-closing tags.
* **Chores**
* Updated test workflows to include ESLint checks.
* Added new ESLint plugins to development dependencies.
* Added a changeset documenting ESLint support.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
---------
Signed-off-by: Yiming Li <yimingli.cs@gmail.com>
Co-authored-by: Qingyu Wang <40660121+colinaaa@users.noreply.github.com>
0 commit comments