Skip to content

Show a warning when there is only a statement inside a JSXCodeBlock @{} #1261

Description

@leonidaz

E.g. @{user.name}

all @{...} are always JSXCodeBlocks, if there is only one statement (non-jsx), show a warning that the it's a code block and they need to use it as a string, e.g. as a string interpolation, e.g.

  {`@${user.name}`}
  // or
  {'@' + user.name}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions