Skip to content

🎉 Object Rest/Spread Properties arrived at stage 4 #9885

@mysticatea

Description

@mysticatea

tc39/proposals@7a04292

It's the time to update our rules to be according to the current ESTree spec.

  • Update Espree to support the syntax in ecmaVersion:2018.
    I think we should keep ecmaFeatures.experimentalObjectRestSpread to avoid breaking changes.
    1. If ecmaVersion:2018 and no ecmaFeatures.experimentalObjectRestSpread, Espree generates RestElement/SpreadElement.
    2. If ecmaFeatures.experimentalObjectRestSpread:true, Espree generates ExperimentalRestProperty/ExperimentalSpreadProperty as is.
  • Update core rules to support the syntax.

Metadata

Metadata

Assignees

No one assigned

    Labels

    acceptedThere is consensus among the team that this change meets the criteria for inclusionarchived due to ageThis issue has been archived; please open a new issue for any further discussionenhancementThis change enhances an existing feature of ESLintnew syntaxThis issue is related to new syntax that has reached stage 4ruleRelates to ESLint's core rules

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions