Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Forgetting to return JSX should crash the build #2303

Closed
gaearon opened this issue May 21, 2017 · 6 comments
Closed

Forgetting to return JSX should crash the build #2303

gaearon opened this issue May 21, 2017 · 6 comments

Comments

@gaearon
Copy link
Contributor

gaearon commented May 21, 2017

This should crash the build:

screen shot 2017-05-21 at 01 00 46

(Note I didn't return it.)

Instead it is just a lint warning:

./packages/react-scripts/template/src/Logo.js
  Line 5:  Expected an assignment or function call and instead saw an expression  no-unused-expressions

We should probably promote it to be an error.

@amupitan
Copy link
Contributor

Can I work on this? Also, what file(s) can I look at concerning the issue?

@gaearon
Copy link
Contributor Author

gaearon commented May 21, 2017

Sure. You could look at our ESLint config.

@amoghpalnitkar
Copy link

I would like to contribute to this. Don't see any PRs on this yet.
Is it up for grabs?

@gaearon
Copy link
Contributor Author

gaearon commented Jan 16, 2018

There is #2319 (you could see it linked above your comment), but thanks for the suggestion!

@amoghpalnitkar
Copy link

amoghpalnitkar commented Jan 17, 2018

Oh of course. How did I miss that. My bad!

@MayasHaddad
Copy link

@gaearon I see the issue is still open, while the problem is solved.

Do you guys close issues after release?

@iansu iansu closed this as completed Mar 14, 2018
@lock lock bot locked and limited conversation to collaborators Jan 20, 2019
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Projects
None yet
Development

No branches or pull requests

5 participants