修改.eslintrc.js文件
rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'semi': 0, // 如果 不需要eslint 检查分号这一项
'space-before-function-paren': 0, // Missing space before function parentheses的问题,意思是在方法名和刮号之间需要有一格空格
'indent': 'off' // 报错Expected indentation of xxx spaces but found xxx 解决方法
},