errors potentially fixable with the --fix
option报错的解决
解决的方法是:
① 项目的代码中找到.eslintrc.js 文件夹将extends中的’@vue/standard’注释掉
修改前
module.exports = { | |
root: true, | |
env: { | |
node: true | |
}, | |
extends: [ | |
'plugin:vue/essential', | |
'@vue/standard' | |
], | |
parserOptions: { | |
parser: 'babel-eslint' | |
}, | |
rules: { | |
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off', | |
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off' | |
} | |
} |
修改后:
module.exports = { | |
root: true, | |
env: { | |
node: true | |
}, | |
extends: [ | |
'plugin:vue/essential', | |
//'@vue/standard' | |
], | |
parserOptions: { | |
parser: 'babel-eslint' | |
}, | |
rules: { | |
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off', | |
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off' | |
} | |
} |