美文网首页
vscode 使用eslint(保存自动格式化)

vscode 使用eslint(保存自动格式化)

作者: 彩虹_af2e | 来源:发表于2022-06-24 11:12 被阅读0次
  1. setting.json配置
  // #每次保存的时候自动格式化
  "editor.formatOnSave": true,
  "editor.formatOnType": true,
  // #每次保存的时候将代码按eslint格式进行修复
  "eslint.autoFixOnSave": true,
  "eslint.format.enable": true,
  1. 需要安装的vscode插件
  • Eslint
  • Prettier ESLint
  • Vetur

相关文章

网友评论

      本文标题:vscode 使用eslint(保存自动格式化)

      本文链接:https://www.haomeiwen.com/subject/eqvvvrtx.html