Skip to content
This repository was archived by the owner on Jan 14, 2019. It is now read-only.
This repository was archived by the owner on Jan 14, 2019. It is now read-only.

Evaluate ecmaFeatures option #21

Closed
@kaicataldo

Description

@kaicataldo

What version of TypeScript are you using?
N/A

What version of typescript-estree are you using?
master

What code were you trying to parse?
N/A

What did you expect to happen?
N/A

What actually happened?
N/A

Had a thought while I was looking at eslint/typescript-eslint-parser#530. Now that the ESLint-compatibility layer has been separated out, does it make sense to keep the ecmaFeatures option? It looks as though it's only used to enable JSX.

I'm not entirely sure ecmaFeatures makes sense for this package - perhaps we could just add either a jsx: true or enableJSX: true option?

We could always make this backwards compatible, if that's a worry. I'm more than happy to make a PR!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions