[英]How to check max count of lines of a js file with ESLint?
I've read all the rules provided by ESLint , but I can't find how to check max count of lines of a js file. 我已经阅读了ESLint提供的所有规则,但是找不到如何检查js文件的最大行数。
Say, I want to limit js files from having more than 100 lines. 说,我想限制js文件超过100行。
Does ESLint provide this feature? ESLint是否提供此功能? how can I do it with ESLint? 如何使用ESLint?
据我所知,在ESLint
中没有检查行数的选项,但是有npm软件包eslint-rules
那里有选项no-long-files
您可以尝试使用它。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.