Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Support Optional Chaining in Typescript Parser #1035

Closed
@justinmwarner

Description

@justinmwarner

What code were you trying to parse?

// Please put code here
  const obj = {name: ""};
  return {
    name: obj?.name,
    ...additionalData,
  };

What did you expect to happen?
No error, parses fine, and shows in IDE fine.

What actually happened?
image
image
image

Versions

package version
@typescript-eslint/parser ^2.3.1
TypeScript ^3.7.0-dev.20191002
ESLint 6.1.0
node 10.16.3
npm 6.9.0

Expected to land in 3.7.x from Typescript-
https://github.com/Microsoft/TypeScript/wiki/Roadmap#37-november-2019
microsoft/TypeScript#33294

Relates to #136

Metadata

Metadata

Assignees

No one assigned

    Labels

    package: parserIssues related to @typescript-eslint/parsertriageWaiting for team members to take a look

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions