找到根目录下的.eslintrc.js文件
修改rules,如下
rules: {
// allow async-await
'generator-star-spacing': 'off',
// allow debugger during development
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-trailing-spaces':'off',
'indent':'off',
'spaced-comment':'off',
'no-new':'off',
'key-spacing':'off',
'comma-dangle':'off',
'eol-last':'off',
'quotes':'off',
'semi':'off',
'keyword-spacing':'off',
'space-before-blocks':'off',
'comma-spacing':'off',
'space-before-function-paren':'off',
'space-infix-ops':'off',
'no-multiple-empty-lines':'off',
'block-spacing':'off',
'padded-blocks':'off',
'arrow-spacing':'off',
'no-sequences':'off',
'no-unused-expressions':'off',
'no-multi-spaces':'off',
'no-unused-vars':'off',
'camelcase ':'off'
}
重新编译项目即可