millermedeiros/esformatter — pull request #69 by jzaefferer (2013-08-19 09:10:07+00:00)
Title: Add option to indent one level less when inside a function expression.

Needed for #46. The implementation is rather crude. Since the new config is off by default, it doesn't affect the existing tests and the new one passes. This may need some follow-up improvements later.

The implementation itself can probably improved as well. Is there a better way to figure out if a node as a FunctionExpression as the parent?