Skip to content

Forgetting to return JSX should crash the build #2303

@gaearon

Description

@gaearon

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions