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

feat: Add type-import-style rule #320

Merged
merged 1 commit into from
Feb 21, 2018
Merged

feat: Add type-import-style rule #320

merged 1 commit into from
Feb 21, 2018

Conversation

danwang
Copy link
Contributor

@danwang danwang commented Feb 21, 2018

Adds a lint rule that discriminates between two import styles:

import type {T, U, V} from 'foo';

import {type T, type U, type V} from 'foo';

The latter is superior because it's easier to edit/refactor (adding non-type import entries doesn't require changing the entire line import statement).

@gajus
Copy link
Owner

gajus commented Feb 21, 2018

Thank you.

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

Successfully merging this pull request may close these issues.

2 participants