Skip to content

You can only use optional-chaining when the 'optionalChaining' plugin is enabled.  #2568

Closed

Description

@kurtextrem

So how do I enable it?

Activity

  1. bakkot commented on Jul 31, 2017

    @bakkot
    Collaborator

    Prettier will need to add support for it explicitly.

    We try to turn on all the optional syntax plugins, but when they add new node types they require making changes to Prettier.

    We have a few others to do too - notably optionalCatchBinding (#2570), to support try {} catch {}.

  2. added 2 commits that reference this issue on Aug 1, 2017
    5eb3413
    9faa607
  3. added a commit that references this issue on Aug 3, 2017
    e378f5e
  4. added
    locked-due-to-inactivity
    on Jul 6, 2018
  5. locked as resolved and limited conversation to collaborators on Jul 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    locked-due-to-inactivity

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions