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

feat(lint): new rule, no-immediate-return #748

Merged
merged 1 commit into from Apr 15, 2021
Merged

Conversation

staylor
Copy link
Contributor

@staylor staylor commented Apr 15, 2021

Some ESLint plugins, namely eslint-plugin-react, react strangely when a block JSX is declared and then immediately returned. By simply return the JSX block, instead of assigning it, eslint-plugin-react behaves correctly.

Some ESLint plugins, namely eslint-plugin-react, react strangely when a block JSX is declared and then immediately returned. By simply return the JSX block, instead of assigning it, eslint-plugin-react behaves correctly.
@staylor staylor merged commit e73fc98 into master Apr 15, 2021
@staylor staylor deleted the no-immediate-return branch April 15, 2021 18:36
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.

None yet

1 participant