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

(generators) Missing space before * #683

Closed
elf-pavlik opened this issue Nov 13, 2016 · 2 comments

Comments

@elf-pavlik
Copy link

commented Nov 13, 2016

function* - JavaScript | MDN

I think should not generate warning about missing space before * in declaration of generator function.

@saadq

This comment has been minimized.

Copy link

commented Nov 16, 2016

The whitespace part doesn't really matter, it's just personal preference. Any of these would work fine:

function* name () {

}

function *name () {

}

function * name () {

}

feross mentioned here that enforcing the whitespace around the * is intentional to make it stand out from a normal function.

@elf-pavlik

This comment has been minimized.

Copy link
Author

commented Nov 16, 2016

Thanks, I tired searching for 'genrators' before creating issue but that closed issue didn't show up :(

Maybe worth adding that rule to http://standardjs.com/rules.html ?

@elf-pavlik elf-pavlik closed this Nov 16, 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.
2 participants
You can’t perform that action at this time.