Skip to content

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

Closed
@jprichardson

Description

Using [email protected] in conjunction with [email protected] 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 [email protected] 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

Assignees

Labels

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions