简体   繁体   English

按行长度对导入进行排序 - eslint

[英]Sorting imports by line length - eslint

Any ideas how could I sort my imports by line "length" using eslint ?任何想法如何使用eslint按行“长度”对我的导入进行排序?

What I would like to achieve the behaviour shown in the attachment:我想实现附件中显示的行为:

在此处输入图像描述

Now you can use eslint-plugin-perfectionist.现在你可以使用 eslint-plugin-perfectionist。 It can sort the imports by line length:它可以按行长度对导入进行排序:

https://github.com/azat-io/eslint-plugin-perfectionist https://github.com/azat-io/eslint-plugin-perfectionist

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM