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

TypeError in require-render-return #589

Closed
jkrems opened this issue May 9, 2016 · 3 comments
Closed

TypeError in require-render-return #589

jkrems opened this issue May 9, 2016 · 3 comments
Labels

Comments

@jkrems
Copy link

jkrems commented May 9, 2016

I think the latest update broke arrow function support in require-render-return:

TypeError: Cannot read property 'name' of undefined
    at getPropertyName (node_modules/eslint-plugin-react/lib/rules/require-render-return.js:57:20)
    at Object.ArrowFunctionExpression (node_modules/eslint-plugin-react/lib/rules/require-render-return.js:96:40)

Example:

const DefaultSpinner = () => <Text>Spinner</Text>;
module.exports = DefaultSpinner;
@ljharb
Copy link
Member

ljharb commented May 9, 2016

#564 (comment)

@ljharb ljharb added the bug label May 9, 2016
@jkrems
Copy link
Author

jkrems commented May 9, 2016

Ah, sorry. Should've searched harder.

@yannickcr
Copy link
Member

yannickcr commented May 9, 2016

No problem, you were both very fast to find the issue :)

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

No branches or pull requests

3 participants