-
-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Drop @typescript-eslint/consistent-type-definitions
rule
#63
Comments
Just to bring it up… how about using As far as I understand it should migrate interfaces written as types to interfaces? I have not tested it nor have I checked what breakage might be resulted from that. I am quite sure writing all the interfaces as types can break a lot but most projects I know of dont use types of interface style declarations anyway. (I am in support of dropping this rule with 'type', but I would consider thinking about 'interface' before dropping it completely) |
This is a problem with the rule itself and should be opened on https://github.com/typescript-eslint/typescript-eslint |
Enforcing a specific style is literally one of the reasons this repo exists. Declaration merging is IMHO an anti-pattern that should be used sparingly (the best analogy for it is modifying |
Related:
@typescript-eslint/consistent-type-definitions
rule #57This rule’s autofix breaks code like declaration merging, it's not safe nor it is particularly useful other than enforcing a specific style.
Also:
The text was updated successfully, but these errors were encountered: