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

Skip to content

Enhancement: add experimentalDecorators option to typescript-estree #6571

Closed
@sosukesuzuki

Description

@sosukesuzuki

Before You File a Proposal Please Confirm You Have Done The Following...

Relevant Package

typescript-estree

My proposal is suitable for this project

  • I believe my proposal would be useful to the broader TypeScript community (meaning it is not a niche proposal).

Description

What:
Adds experimentalDecorators option to @typescript-eslint/typescript-estree.
It just corresponds to experimentalDecorators in TS compiler options.

Why:
Since TypeScript 5.0, ECMAScript decorators are implemented; we can switch between them using experimantalDecortors in the compiler options.

There is no way to switch it on in typescript-estree except by specifying tsconfig.json by project.

It would be helpful to have experimentalDecorators as a parsing option, like the already existing jsx option.

Fail

// N/A

Pass

// N/A

Additional Info

I think we can avoid breaking changes by setting the default value of this option to true. (And, we can change it to false at next major version)

Metadata

Metadata

Assignees

No one assigned

    Labels

    awaiting responseIssues waiting for a reply from the OP or another partyenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions