问题

在配置 eslint 的 settings.json 时,发现下面飘颜色:

Auto Fix is enabled by default. Use the single string form

解决

不用添加 autoFix 字段,它是默认为 true 的。

// 保存后自动修复格式
"editor.codeActionsOnSave": {
    "source.fixAll.eslint": true
},
// 添加vue支持
"eslint.validate": [
    "javascript",
    "javascriptreact",
    "vue"
]

参考:https://stackoverflow.com/questions/61316272/auto-fix-is-enabled-by-default-use-the-single-string-form

相关文章:

  • 2021-11-09
  • 2021-08-28
  • 2021-06-23
  • 2021-06-19
  • 2021-09-06
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-08-17
  • 2021-07-27
  • 2022-12-23
  • 2021-12-25
  • 2022-12-23
  • 2021-09-09
  • 2022-12-23
相关资源
相似解决方案