Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

chore: remove react imports#1867

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
Kira-Pilot merged 3 commits intomainfromno-more-react-imports/kira-pilot
May 31, 2022
Merged

Conversation

Kira-Pilot
Copy link
Member

resolves#1856

Weno longer need to import React when using JSX.
Screen Shot 2022-05-27 at 4 32 46 PM

This is a big change so definitely let me know if you have concerns.

I will comment below on any functional changes to assist in review.

@Kira-PilotKira-Pilot requested a review froma team as acode ownerMay 27, 2022 20:39
@@ -114,6 +114,9 @@ rules:
react/jsx-curly-brace-presence:
- error
- children: ignore
# https://reactjs.org/blog/2020/09/22/introducing-the-new-jsx-transform.html#eslint
react/jsx-uses-react: "off"
react/react-in-jsx-scope: "off"
Copy link
MemberAuthor

Choose a reason for hiding this comment

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

Turning off these ESLint rules (as suggested by React) so we don't hear it complain.

@@ -5,7 +5,7 @@
"forceConsistentCasingInFileNames": true,
"incremental": true,
"isolatedModules": true,
"jsx": "react",
"jsx": "react-jsx",
Copy link
MemberAuthor

Choose a reason for hiding this comment

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

This just informs React that we're using the new transform.

greyscaled reacted with heart emoji
@Kira-PilotKira-Pilot merged commitdd55d45 intomainMay 31, 2022
@Kira-PilotKira-Pilot deleted the no-more-react-imports/kira-pilot branchMay 31, 2022 14:01
kylecarbs pushed a commit that referenced this pull requestJun 10, 2022
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@kylecarbskylecarbskylecarbs approved these changes

@greyscaledgreyscaledgreyscaled approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

Quiet ESLint so we don't have to import React anymore
3 participants
@Kira-Pilot@kylecarbs@greyscaled

[8]ページ先頭

©2009-2025 Movatter.jp