vue-cli3中eslint报错

it2022-05-05  89

解决办法:配置  .eslintrc.js  文件

consol报错:配置 'no-console': 'off'

ES6 import等报错:配置 "parser": "babel-eslint"

module.exports = { rules: { 'no-console': 'off', 'parser':'babel-eslint' } }

  

重新运行即可

转载于:https://www.cnblogs.com/lyzw-Y/p/11197197.html

相关资源:vue-cli3 取消eslint校验代码的解决办法

最新回复(0)