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

requireSpacesInFunctionExpression issue #8

Closed
vesparny opened this issue Jun 25, 2015 · 2 comments
Closed

requireSpacesInFunctionExpression issue #8

vesparny opened this issue Jun 25, 2015 · 2 comments

Comments

@vesparny
Copy link

Using:

"requireSpacesInFunctionExpression": {
    "beforeOpeningRoundBrace": true
  }

doesn't seem to work for ES6 classes methods

// no problem here
function ciao () {
  console.log('ciao');
}

// error here, despite the space
class Ciao {
  ciao () {
    console.log('ciao');
  }
}

this is the output from the console
screen shot 2015-06-25 at 10 15 40

It works using esprima-fb

@hzoo
Copy link
Member

hzoo commented Jun 25, 2015

Thanks for the report - I think it's the same issue as #4. I'l need to do a fix in upstream (jscs)?

What happens with the regular parser and esnext: true?

I'l try to get a fix in soon if it is an issue with jscs.

@vesparny
Copy link
Author

Yeah I guess it's a duplicate.
With esprima-fb works.

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

No branches or pull requests

2 participants