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

function declaration inside array, adds extra line. #464

Closed
bitwiseman opened this issue May 15, 2014 · 3 comments
Closed

function declaration inside array, adds extra line. #464

bitwiseman opened this issue May 15, 2014 · 3 comments
Milestone

Comments

@bitwiseman
Copy link
Member

// input
var v = [
  function () {
        return;
    }, {
        id: 1
    }, {
        id: 2
    }
];

// output
var v = [

  function () {
        return;
    }, {
        id: 1
    }, {
        id: 2
    }
];
@bitwiseman bitwiseman added this to the v1.5.2 milestone May 15, 2014
@evocateur
Copy link
Contributor

Something in this conditional could probably be modifed to support this case.

@omasback
Copy link

+1. This causes superfluous indentation when using angular inline array annotation

someModule.factory('greeter', ['$window', 
    function($window) {
      // ...
    }
]);

@bitwiseman
Copy link
Member Author

This is fixed. But #485, is the new issue.

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

3 participants