Skip to content
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

Enable @typescript-eslint/consistent-type-definitions rule #57

Closed
jonahsnider opened this issue Jun 2, 2022 · 2 comments
Closed

Enable @typescript-eslint/consistent-type-definitions rule #57

jonahsnider opened this issue Jun 2, 2022 · 2 comments

Comments

@jonahsnider
Copy link

It's been about 3 years since @typescript-eslint/consistent-type-definitions was added to this config as a disabled rule.

// This rule is fine. I just don't want to deal with the churn yet. Enable this in 2023.
// '@typescript-eslint/consistent-type-definitions': [
// 'error',
// 'type'
// ],

Can we re-enable it?

The rule has an automated fixer which should make adoption easy.
I'm not sure there are any situations where you'd even need to manually make the change.


I'll also mention that it may be worth revisiting the decision to prefer type over interface. Historically there were performance concerns from using type instead of interface, but I'm not sure if those are still relevant now.

@sindresorhus
Copy link
Member

Yeah, I'll enable it in the next XO version.

@fregante
Copy link
Member

fregante commented Aug 1, 2022

-> #63

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants