Import order rule #13976
-
Is there a rule (or how to create it) that won't allow local imports to be mixed with library imports? It would require an empty line between them, for example: wrong:
wrong:
correct:
Thank you |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Hi @zefexdeveloper! I think the rule you're looking for is import/order with option newlines-between set to |
Beta Was this translation helpful? Give feedback.
-
@mdjermanovic Thank you for the answer and I'm sorry the delay answering, I was traveling. Example:
I want the space only between the local and 3rd libraries. |
Beta Was this translation helpful? Give feedback.
-
Thank you, I did and they answered there: import-js/eslint-plugin-import#1971 |
Beta Was this translation helpful? Give feedback.
Hi @zefexdeveloper!
I think the rule you're looking for is import/order with option newlines-between set to
"always"
.