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 consistent-type-imports typescript eslint rule #44

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

hughns
Copy link
Member

@hughns hughns commented Jan 14, 2025

Some background on this rule: https://typescript-eslint.io/blog/consistent-type-imports-and-exports-why-and-how/

Originally this was just for matrix-js-sdk: matrix-org/matrix-js-sdk#4611 (review)

Full docs on the rule: https://typescript-eslint.io/rules/consistent-type-imports

The fixStyle of inline-type-imports means that: where we are importing both types and implementations from a single import dep we keep one import line (as opposed to two) but with trade off of multiple type annotations.

@hughns hughns added the enhancement New feature or request label Jan 14, 2025
@hughns hughns requested a review from t3chguy January 14, 2025 10:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants