一、格式化代码
yarn run lint --fix
二、修改项目配置(.prettierrc文件)
"endOfLine": "auto"
三、修改vscode编辑器的配置(setting.json)
"prettier.endOfLine": "auto", // 结尾是 \n \r \n\r auto
一、格式化代码
yarn run lint --fix
二、修改项目配置(.prettierrc文件)
"endOfLine": "auto"
三、修改vscode编辑器的配置(setting.json)
"prettier.endOfLine": "auto", // 结尾是 \n \r \n\r auto