//方法一.直接不启用eslint(不推荐) //找到build/webpack.base.conf.js把以下代码取消注释 { test: /.(js|vue)$/, loader: 'eslint-loader', enforce: 'pre', include: [resolve('src'), resolve('test')], options: { formatter: require('eslint-friendly-formatter') } }, //方法二.在eslintrc.js的rules下添加字段 'eol-last': 0,//这句话表示在文件末尾可以不加回车,贴个链接 https://eslint.org/docs/rules/eol-last 'space-before-function-paren': 0 //这句话表示在函数后可以不加空格