https://blog.csdn.net/ljt123456765/article/details/81356792?utm_medium=distribute.pc_relevant_t0.none-task-blog-BlogCommendFromMachineLearnPai2-1.channel_param&depth_1-utm_source=distribute.pc_relevant_t0.none-task-blog-BlogCommendFromMachineLearnPai2-1.channel_param
https://www.jetbrains.com/help/idea/prettier.html#ws_prettier_install
package.json
“scripts”: {
配置
// “format”: “prettier-eslint --write “src/views/single/*.vue””,
eslintrc.js
extends: [‘plugin:vue/recommended’,
‘eslint:recommended’,
//‘plugin:prettier/recommended’],
// plugins: [‘vue’, ‘prettier’]
],
在package.json 节点配置好 scripts
执行格式cnpm run format
执行完后,取消,再修改vue页中 ’;‘ 与 双引号