Skip to content
This repository was archived by the owner on Oct 19, 2021. It is now read-only.
This repository was archived by the owner on Oct 19, 2021. It is now read-only.

Why ignore indentation inside arrays? #583

@mkjois

Description

@mkjois

This comment provides a use case, but IMO people should just write it like this:

x = [
  "foo"
  "bar"
]

In my case, I found that coffeelint wasn't catching incorrect indentation for the following code (setting was at the default, 2 spaces):

angular.module 'myApp', [
    'ui.router'
]

.config [
    '$stateProvider'
    '$urlRouterProvider'
    ($stateProvider, $urlRouterProvider) ->
        $urlRouterProvider.otherwise '/'
        $stateProvider.state 'main',
            url: '/'
            template: '<div><p>Hello, world!</p></div>'
]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions