eslint基础配置说明并解决prettier冲突

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'

猜你喜欢

转载自blog.csdn.net/DoubleLift_DSX/article/details/121983882