Long-length import statements could wrap
See original GitHub issueIn the example:
import someCoolUtilWithARatherLongName from '../../../../utils/someCoolUtilWithARatherLongName';
Which is 94 characters. Given that I want to wrap at 80 characters, my subjective ideal would be
import someCoolUtilWithARatherLongName
from '../../../../utils/someCoolUtilWithARatherLongName';
This isn’t an issue with the import { name } from 'source'
syntax.
Issue Analytics
- State:
- Created 7 years ago
- Comments:12 (6 by maintainers)
Top Results From Across the Web
coding style - Long imports in Python - Stack Overflow
The preferred way of wrapping long lines is by using Python's implied line continuation inside parentheses, brackets and braces. Long lines can ...
Read more >Java Code Style. Add option to not line wrap on import ...
An option to force line wrapping in import statements will be added only if there will be enough users who really need it....
Read more >PreparedStatement (Java Platform SE 7 ) - Oracle Help Center
A SQL statement is precompiled and stored in a PreparedStatement object. This object can then be used to efficiently execute this statement multiple...
Read more >Breaking up long lines of code in Python
Let's talk about breaking up long lines of code in Python. How to continue code on the next line. The import statement below...
Read more >vintage sequin kimono
Long styles look great when layered with dresses, while cropped wraps can double up as a top when worn with jeans.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I would say we just let it go past the max length threshold. It’s not common for the above to happen, so I don’t think we should worry about it too much.
@PavelPikat I found a better option than ignoring tslint. You can add exception for specific regex. Prettier will have the lead for managing imports and exports, since it has a special way to deal with them.