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

Cannot parse anonymous classes #64

Open
Noviny opened this issue Apr 12, 2019 · 0 comments
Open

Cannot parse anonymous classes #64

Noviny opened this issue Apr 12, 2019 · 0 comments

Comments

@Noviny
Copy link
Contributor

Noviny commented Apr 12, 2019

Currently

export default class extends React.PureComponent<Props> {}

fails with a cryptic 'no converter for: null' error. We implicitly expect all classes (and maybe functions) passed to us to be named.

To resolve this we need to either:

a) Make this an explicit rule and add useful error messaging

or

b) Support unnamed classes (and maybe functions)

I am leaning towards b)

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

No branches or pull requests

1 participant