1.在使用vue-cli 生成项目使勾选 ESLint+Standard config
2.默认在项目根目录生成 .eslintrc.js 文件
3…eslintrc.js基本配置说明如下
4.解决 eslint和prettier space-before-function-paren冲突
在.eslintrc.js 里的rules 新增规则
'space-before-function-paren': 'off'
1.在使用vue-cli 生成项目使勾选 ESLint+Standard config
2.默认在项目根目录生成 .eslintrc.js 文件
3…eslintrc.js基本配置说明如下
4.解决 eslint和prettier space-before-function-paren冲突
在.eslintrc.js 里的rules 新增规则
'space-before-function-paren': 'off'