vscode的elsint配置报错“The setting is deprecated. Use editor.codeActionsOnSave instead with a source”

vscode的elsint配置报错“The setting is deprecated. Use editor.codeActionsOnSave instead with a source”_第1张图片
提示:
The setting is deprecated. Use editor.codeActionsOnSave instead with a source.fixAll.eslint member.
意思是:此配置已作废,使用editor.codeActionsOnSave,里面配置source.fixAll.eslint 属性
把"eslint.autoFixOnSave": true 改成:

"editor.codeActionsOnSave": {
    "source.fixAll.eslint": true
  },

你可能感兴趣的:(vscode的elsint配置报错“The setting is deprecated. Use editor.codeActionsOnSave instead with a source”)