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

chore: fix "react-in-jsx-scope" ESLint errors #266

Closed
wants to merge 1 commit into from

Conversation

EvanHahn
Copy link
Contributor

This fixes all 50 violations of the react/react-in-jsx-scope lint rule.

In the docs for that rule:

If you are using the new JSX transform from React 17, you should disable this rule by extending react/jsx-runtime in your eslint config (add "plugin:react/jsx-runtime" to "extends").

We are, so we can do this! It also lets us remove many React imports.

@EvanHahn EvanHahn marked this pull request as ready for review April 21, 2024 12:40
@EvanHahn EvanHahn requested a review from ErikSin April 21, 2024 12:40
This fixes all 50 violations of the [`react/react-in-jsx-scope`][0] lint
rule.

In the docs for that rule:

> If you are using the [new JSX transform from React 17][1], you should
> disable this rule by extending `react/jsx-runtime` in your eslint
> config (add `"plugin:react/jsx-runtime"` to `"extends"`).

We are, so we can do this! It also lets us remove many `React` imports.

[0]: https://github.com/jsx-eslint/eslint-plugin-react/blob/4467db503e38b9356517cf6926d11be544ccf4b1/docs/rules/react-in-jsx-scope.md
[1]: https://legacy.reactjs.org/blog/2020/09/22/introducing-the-new-jsx-transform.html
@ErikSin ErikSin force-pushed the fix-react-in-scope-when-using-jsx-eslint branch from 8dcf2ea to 715e1c0 Compare April 29, 2024 19:50
Copy link

expo bot commented Apr 29, 2024

GitHub Build Trigger Failure

The build trigger failed with the following error:

eas.json not found in the repository.

Please check your GitHub app installation settings and your Expo project's GitHub settings to make sure you've configured everything correctly.

@ErikSin
Copy link
Contributor

ErikSin commented Apr 29, 2024

I am not going to merge this right now. There are alot of active branches and this touches over 50 files, so it is going to cause alot of git problems. I think we should do this eventually, but maybe after MVP when some of us have switched to working on desktop (and there is not 6 people with multiple different branches working on this repo)

@ErikSin ErikSin closed this Apr 29, 2024
@EvanHahn EvanHahn deleted the fix-react-in-scope-when-using-jsx-eslint branch April 29, 2024 19:59
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

Successfully merging this pull request may close these issues.

2 participants