Closed
Description
Before You File a Proposal Please Confirm You Have Done The Following...
- I have searched for related issues and found none that match my proposal.
- I have searched the current rule list and found no rules that match my proposal.
- I have read the FAQ and my problem is not listed.
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)