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 certain ES6+ syntaxes #65

Open
neutraali opened this issue Jun 24, 2019 · 1 comment
Open

Cannot parse certain ES6+ syntaxes #65

neutraali opened this issue Jun 24, 2019 · 1 comment

Comments

@neutraali
Copy link

( Possibly related to js2flowchart )

When trying to parse certain ES6+ syntax, the AST parser throw an error:

Error at parseCodeToAST: This experimental syntax requires enabling the parser plugin: 'classProperties' (XX:YY)

An example of this code would be:

class ExampleComponent extends React.Component {
	constructor(props) {
		super(props)
	}
	// Error triggers on the line below
	state = {
		isLoading: false
	}
	// . . .
}

How does one enable classProperties over @ codecrumbs?

@idoo
Copy link
Contributor

idoo commented Jul 23, 2019

@neutraali that code works well for me, maybe you have some global overwrite option for eslint?

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

2 participants