Skip to content

feat: Add type-import-style rule#320

Merged
gajus merged 1 commit intogajus:masterfrom
danwang:master
Feb 21, 2018
Merged

feat: Add type-import-style rule#320
gajus merged 1 commit intogajus:masterfrom
danwang:master

Conversation

@danwang
Copy link
Copy Markdown
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 gajus merged commit 3c67223 into gajus:master Feb 21, 2018
@gajus
Copy link
Copy Markdown
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