question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Rule change proposal: no-duplicate-imports

See original GitHub issue

Not 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:closed
  • Created 6 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
lydellcommented, May 26, 2017

gajus/eslint-plugin-flowtype#72

0reactions
not-an-aardvarkcommented, Jun 3, 2017

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

no-duplicate-imports - ESLint - Pluggable JavaScript Linter
Rule Details​​ This rule requires that all imports from a single module that can be merged exist in a single import statement.
Read more >
Choose when to run jobs - GitLab Docs
Merge request approvals ... Rate limits for project and group imports and exports ... Approval rules · Approval settings · Changes · Cherry...
Read more >
Learn about DMV inspections for imported vehicles - CT.gov
Learn about Connecticut's inspection requirements for direct import vehicles manufactured with non-US standards.
Read more >
Import Records to Salesforce without Duplicates - Cloudingo
Import records to Salesforce without worrying about creating duplicates in the process. Import new records and update existing records ...
Read more >
Magnuson-Stevens Fishery Conservation and Management Act
In addition, this proposed rule would amend SIMP regulations to clarify the ... and Management Act; Seafood Import Monitoring Program.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found