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

js-standard Error Parsing error: Unexpected token = (null) in Atom #726

Closed
Superpencil opened this issue Dec 19, 2016 · 3 comments

Comments

@Superpencil
Copy link

commented Dec 19, 2016

import React, {Component} from 'react'

export default class Jake extends Component {
  mathmatical = (ingredient) => { // js-standard Error Parsing error: Unexpected token = (null)
    return `${ingredient} pancakes!`
  }
  render () {
    return (
      <div>'YAYYYY!'</div>
    )
  }
}
@Superpencil

This comment has been minimized.

Copy link
Author

commented Dec 19, 2016

Compiles fine, just get an error from the linter

@kimsk

This comment has been minimized.

Copy link

commented Dec 22, 2016

If you want to use some es7 syntax, you could use babel-eslint by following this instruction. This should fix your issue.

@feross

This comment has been minimized.

Copy link
Member

commented Dec 22, 2016

The syntax you are using is experimental, so it's not built into ESLint/standard. Once it progresses to stage-4 of the standardization process then it will work out-of-the-box. You can set up babel-eslint using the instructions here: https://github.com/feross/standard#can-i-use-a-custom-js-parser-for-bleeding-edge-es-next-support

@feross feross closed this Dec 22, 2016

@eddier eddier referenced this issue Mar 16, 2017

@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.