vue项目遇到error This line has a length of 108. Maximum allowed is 100 max-len的解决办法
生活随笔
收集整理的這篇文章主要介紹了
vue项目遇到error This line has a length of 108. Maximum allowed is 100 max-len的解决办法
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
今天在 調(diào)試vue項目時,啟運服務(wù):
yarn serve
突然報如下錯誤信息:
原來是ecslint語法檢測時報的錯,后來在eclintConfig的rules規(guī)則里加上max-len 規(guī)則就可以了
原配置規(guī)則:
?
改成:
"eslintConfig": {"root": true,"env": {"node": true},"extends": ["plugin:vue/vue3-essential","@vue/airbnb","@vue/typescript/recommended"],"parserOptions": {"ecmaVersion": 2020},"rules": {"max-len": ["error", {"code": 300} ]}},總結(jié)
以上是生活随笔為你收集整理的vue项目遇到error This line has a length of 108. Maximum allowed is 100 max-len的解决办法的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 【vue开发】 父组件传值给子组件时 ,
- 下一篇: [NLP] 相对位置编码(二) Rela