Rule change proposal: no-duplicate-imports
See original GitHub issueNot sure if this is the right venue to raise this issue, as this proposal involves some Flow-specific syntax. Please redirect if there’s a better place to discuss.
What rule do you want to change?
no-duplicate-imports
Does this change cause the rule to produce more or fewer warnings? Fewer
How will the change be implemented? (New option, new default behavior, etc.)? New default behavior
Please provide some example code that this change will affect:
import type { ... } from 'module'
import { ... } from 'module'
What does the rule currently do for this code? Raises error as there are two imports from the same module, but currently there is no syntax in Flow to import types and values with a single import statement.
What will the rule do after it’s changed? Accepts the example code as valid. Note that this should be a fairly safe change to default behavior, since the only people this change will affect probably aren’t using this rule anyway.
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (3 by maintainers)
Top GitHub Comments
gajus/eslint-plugin-flowtype#72
Closing because this involves experimental syntax, so we can’t support it in core. Feel free to use a plugin like
eslint-plugin-flowtype
for this.