You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've noticed an inconsistency in the "space-after-anon-function" option, although am unsure whether it is a feature or a bug.
In particular, toggling the option doesn't seem to beautify anonymous functions that are specified as object parameters, e.g.
// Original
var objectName = {
functionName: function(){ ... }
}
// Expected behaviour
var objectName = {
functionName: function () { ... }
}
// Actual behaviour
var objectName = {
functionName: function() { ... }
}
The fact that the brace is beautified makes me think that this was simply an oversight rather than intentional; if so, what are your thoughts on supporting this?
The text was updated successfully, but these errors were encountered:
JulianLaval
changed the title
space-after-anon-function applied to object properties
space-after-anon-function not applied to object properties
Aug 20, 2015
I've noticed an inconsistency in the "space-after-anon-function" option, although am unsure whether it is a feature or a bug.
In particular, toggling the option doesn't seem to beautify anonymous functions that are specified as object parameters, e.g.
The fact that the brace is beautified makes me think that this was simply an oversight rather than intentional; if so, what are your thoughts on supporting this?
The text was updated successfully, but these errors were encountered: