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

please update eslint depends version for support class-static-props #652

Closed
leecade opened this issue Oct 8, 2016 · 2 comments

Comments

@leecade
Copy link

commented Oct 8, 2016

There is a problem prevent remove babel-eslint

export default class extends Component {
  static propTypes = {   // this line cause syntax error
@dustypomerleau

This comment has been minimized.

Copy link

commented Oct 9, 2016

First, make sure you are using babel-eslint as your parser:

npm i -g babel-eslint

and then modify your package.json like so:
http://standardjs.com/#can-i-use-a-custom-js-parser-for-bleeding-edge-es-next-support

If you are still getting a syntax error, put a semicolon in front of the word static.

@feross

This comment has been minimized.

Copy link
Member

commented Oct 9, 2016

Pretty sure that this is a feature that only works with Babel, since it's not in ES stage 4 yet. @dustypomerleau is correct, you still need babel for this.

@feross feross closed this Oct 9, 2016

@lock lock bot locked as resolved and limited conversation to collaborators May 10, 2018

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
3 participants
You can’t perform that action at this time.