You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import {
BaseButton,
Box,
Provider,
// here is a comment
Typography,
theme,
} from '...';
I'm getting Import lines cannot have more than one blank line between them. when I have a comment, maybe this is a bug given that it's not a newline but a comment?
If it helps, I'm using hermes-parser to parse my JS not sure if that would cause a problem
The text was updated successfully, but these errors were encountered:
I am having quite a difficult time dealing with comments in the imports as I need to reconstruct the import statement from scratch each time to check how the fixed output would look like and adding comment processing to that is a significant effort for me. I already made an exception for the ts-ignore comments above the last line of the import but supporting every possible scenario starts to get out of hand. (think: line comment above the import, just after it, or block comments in either position)
I'll leave the issue open but I consider this issue really low priority and I'm not giving an ETA for a fix. My suggestion would be to stop commenting inside the imports, but I understand this is not something that is always within your control. In such cases I suggest not using this plugin or contributing a fix via a PR.
I'm getting
Import lines cannot have more than one blank line between them.
when I have a comment, maybe this is a bug given that it's not a newline but a comment?If it helps, I'm using
hermes-parser
to parse my JS not sure if that would cause a problemThe text was updated successfully, but these errors were encountered: