Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign up"Use default import syntax to import" #1338
Comments
This comment has been minimized.
This comment has been minimized.
dtudury
commented
Jul 28, 2019
|
if you run standard with -v it gives you
so I guess |
feross
added
the
question
label
Jul 28, 2019
This comment has been minimized.
This comment has been minimized.
|
I believe your code equivalent to this: import MyComponent from './MyComponentContainer'which seems much nicer than what you've got there now. |
feross
closed this
Jul 28, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
lemoustachiste commentedJul 25, 2019
What version of standard?
13.0.1
What operating system, Node.js, and npm version?
Any
What's happening
I am using some imports of the sort:
which I think make sense in the context of what I am doing. Upgrade from 12.0.1 to 13.0.1 throws an error:
I don't really want to because then it would not abstract the layer on top of my component.
I am trying to disable eslint from crying here, but I can't seem to find the rule behind that (tried
no-named-as-defaultandno-useless-rename), and it does not seem listed in the changelog for the new version.Could you point me to the right rule?
Thanks