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

jsx-wrap-multilines to check stateless components #790

Closed
ColCh opened this issue Aug 29, 2016 · 0 comments
Closed

jsx-wrap-multilines to check stateless components #790

ColCh opened this issue Aug 29, 2016 · 0 comments

Comments

@ColCh
Copy link
Contributor

ColCh commented Aug 29, 2016

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>
);
yannickcr added a commit that referenced this issue Apr 23, 2017
jsx-wrap-multilines check arrow functions without block body (fixes #790)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant