在vue-cli的组件中,有一段较长的文字,ESLint报错:Line 10 exceeds the maximum line length of 80 ,ESLint设置一行编码最多不能超过80字符。
解决:
在文件夹中有个设置ESLint语法的js文件.eslintrc.js
文件中,rules这个对象中,就是配置的ESlint 语法检测规则。
可根据自己需要对一行的编码量进行设置,具体的设置方法可参考:https://home.cnblogs.com/blog/。
Line 10 exceeds the maximum line length of 80
原文:https://www.cnblogs.com/wr20190131/p/10386843.html