Skip to content

Expected "[" and "]" to be on the same line (standard/computed-property-even-spacing) #226

@jprichardson

Description

@jprichardson

Using standard@4.5.4 in conjunction with babel-eslint@4.0.5 there is no error in the following code:

import fn from 'fn'

export default function something (args) {
  return fn({
    field: 'blah',
    ...args
  })
}

However, upgrading to standard@5.0.2 an error is thrown:

app.js:6:5: Expected "[" and "]" to be on the same line (standard/computed-property-even-spacing)

Potentially a bug in https://github.com/xjamundx/eslint-plugin-standard/tree/master or is this expected behavior?

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions