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

How to configure for React projects #778

Open
patrik-csak opened this issue Feb 28, 2025 · 1 comment
Open

How to configure for React projects #778

patrik-csak opened this issue Feb 28, 2025 · 1 comment

Comments

@patrik-csak
Copy link

patrik-csak commented Feb 28, 2025

It’s not clear to me how to use XO for React projects

The readme says:

JSX is supported by default, but you'll need eslint-config-xo-react for React specific linting.

The section of the eslint-config-xo-react readme that that sentence links to (#use-with-xo) was commented out in the latest release (v0.28.0)

The only other mention of React in the readme is an example:

xo --plugin=react

I think that would include eslint-plugin-react, not eslint-config-xo-react

I’m happy to contribute to documentation after this is cleared up

@patrik-csak
Copy link
Author

Not sure if this is related, but I see that the latest version of eslint-config-xo-react (v0.28.0) requires ESLint 9, so I’m using v0.27.0 for now because the latest version of XO (v0.60.0) still requires ESLint 8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant