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
no-duplicate-imports rule triggered by import type
statements
#599
Comments
Here is a corresponding issue for babel-eslint: I also have proposed using import/no-duplicates setting instead of stock |
Fixes browserhtml#1240 This change configures eslint on top of [eslint-config-standard](https://github.com/feross/eslint-config-standard) which is then configured to workaround following issues preventing us using from stock standard package: 1. space-infix-ops reports polymorphic functions: babel/babel-eslint#366 2. no-duplicate-imports rule triggered by `import type`: standard/standard#599 All of the currently tracked fils are also listed under `.eslintignore` so that current code will not be listed until we get to reformat it.
You're using two non-standard things: babel and flow type annotations. This is life on the bleeding edge, nothing quite works... 😒 That said, since I'm considering adding |
We could possibly get back to standard once this issue is fixed: standard/standard#599 Also switched from JSON to YML config format.
No ecosystem impact. This will be part of the standard v10 beta. |
Fixes: standard/standard#599 Fixes: standard/standard#712 `import/no-duplicates` replaces the core rule `no-duplicate-imports`.
Forking #592 to it's separate issue:
Standard uses 'no-duplicate-imports' rule which is triggered if there are two or more import statements from the same module.
It seems that this rule is also triggered for
import type
Flow statements, e.g. this results in an error:There is no other way to combine these two statements into one import statement as flow want's to distinguish type and value imports.
I would really like this issue to be resolved to be able to use standard style with flow typed project.
The text was updated successfully, but these errors were encountered: