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

Invalid autoformatting when function name contains word "function" #109

Closed
leomelin opened this issue Apr 9, 2015 · 3 comments

Comments

@leomelin
Copy link

commented Apr 9, 2015

I ran a cross this problem when I tried to autoformat a file that runs a function called "viewFunctions()"

var viewFunctions = function () {
}

viewFunctions()

The formatter formats it as:

var viewFunctions = function () {}

viewfunction s ()

... aand that breaks the code. The problem propably bubbles from https://github.com/maxogden/standard-format -library, and from there it propably bubbles from https://github.com/millermedeiros/esformatter ?

@feross

This comment has been minimized.

Copy link
Member

commented Apr 9, 2015

Yep, this is a know issue with standard-format. It will be fixed once maxogden/standard-format#47 is merged and released (soon!).

@feross feross closed this Apr 9, 2015

@leomelin

This comment has been minimized.

Copy link
Author

commented Apr 9, 2015

ok, great! btw. Awesome job with this library!

@feross

This comment has been minimized.

Copy link
Member

commented Apr 9, 2015

Thanks! :-)

@lock lock bot locked as resolved and limited conversation to collaborators May 11, 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.