Skip to content

space between parens () and brakets []?  #1303

@chiefjester

Description

@chiefjester

Thanks for making this!

With 1.0 released; Finally we can adopt this in our company. I just wanted to open this issue in the hope it could be added as an option for future releases.

Basically adding spaces between parens and brackets.

Function arguments:
So:

function foo( one, two, three ){

Instead of

function foo(one, two, three){

Arrays:

var array = [ 1, 2, 3, 4 ]

instead of:

var array = [1, 2, 3, 4]

Methods:

array.slice( 0, 1 )

instead of

array.slice(0, 1)

This is an actual option in ESLint so I'm sure there are people using this and not just us. For me its so much easier to read a code with consistent spacing. Here's hoping you would consider this change.

Metadata

Metadata

Assignees

No one assigned

    Labels

    locked-due-to-inactivityPlease open a new issue and fill out the template instead of commenting.status:needs discussionIssues needing discussion and a decision to be made before action can be taken

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions