简体   繁体   中英

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.

Say, I want to limit js files from having more than 100 lines.

Does ESLint provide this feature? how can I do it with ESLint?

据我所知,在ESLint中没有检查行数的选项,但是有npm软件包eslint-rules那里有选项no-long-files您可以尝试使用它。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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