npm install
npm run serve
npm run build
npm run test
npm run lint
此项目 仅仅 只是 用 @vue-cli 创建的不带 eslit 的最初始的项目,演示了 vue 项目 只单独集成 prettier,并在vscode 中配合插件 prettier-code-format 使用
- 添加 .prettierrc 文件(如果不加,那么就使用插件默认的)
- 安装插件 prettier-code-format
- code-首选项-设置 搜索 prettier 即可看到 插件的默认配置
- 找到 setting 文件 增加 "eslint.autoFixOnSave": true
- https://blog.csdn.net/huangpb123/article/details/97974087 参考
- 请清除其他的 插件的 影响,卸载