Skip to content

jsx-wrap-multilines to check stateless components #790

Closed
@ColCh

Description

@ColCh
Contributor

Given this code, check should not pass

const Grade = ({ grade }) =>
  <View style={styles.gradeContainer}>
    <Text style={styles.grade}>{grade}</Text>
  </View>;

For this code, check should pass:

const Grade = ({ grade }) => (
  <View style={styles.gradeContainer}>
    <Text style={styles.grade}>{grade}</Text>
  </View>
);

Activity

added a commit that references this issue on Apr 23, 2017

Merge pull request #791 from Lingvokot/790-stateless-multiline-wrap

b5856ca

3 remaining items

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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

        Participants

        @ColCh

        Issue actions

          jsx-wrap-multilines to check stateless components · Issue #790 · jsx-eslint/eslint-plugin-react