Skip to content

Bug with object spread and computed-property-even-spacing #3

@cesarandreu

Description

@cesarandreu

The following two examples are giving me errors:

// First
const { a, ...b } = obj

// Second
func(a, { ...b })
standard: Use JavaScript Standard Style (https://github.com/feross/standard)
  <text>:44:22: Expected 1 or 0 spaces around "[" and "]" (standard/computed-property-even-spacing)
  <text>:72:25: Expected 1 or 0 spaces around "[" and "]" (standard/computed-property-even-spacing) 

Bug or intentional?

Using babel-eslint@4.0.5 and standard@5.0.0.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions