vscode 写js项目,自动按照eslint保存

{
    "editor.suggestSelection": "first",
    "vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue",
    "python.jediEnabled": false,
    "files.exclude": {
        "**/.classpath": true,
        "**/.project": true,
        "**/.settings": true,
        "**/.factorypath": true
    },
    "[json]": {
        "editor.defaultFormatter": "esbenp.prettier-vscode"
    },
    "javascript.updateImportsOnFileMove.enabled": "always",
    "explorer.confirmDelete": false,
    "diffEditor.ignoreTrimWhitespace": false,
    "javascript.implicitProjectConfig.experimentalDecorators": true,
    "[javascript]": {
        "editor.defaultFormatter": "esbenp.prettier-vscode"
    },
    "terminal.integrated.shell.osx": "/bin/zsh",
    "editor.fontLigatures": true,
    "editor.fontFamily": "Fira Code",
    "terminal.integrated.fontFamily": "monospace",
    "go.formatTool": "goimports",
    "remote.SSH.connectTimeout": 60,
    "typescript.updateImportsOnFileMove.enabled": "always",
    "C_Cpp.updateChannel": "Insiders",
    "http.proxySupport": "off",
    "[rust]": {
        "editor.defaultFormatter": "statiolake.vscode-rustfmt"
    },
    "debug.allowBreakpointsEverywhere": true,
    "debug.onTaskErrors": "showErrors",
    "[typescript]": {
        "editor.defaultFormatter": "esbenp.prettier-vscode"
    },
    "java.requirements.JDK11Warning": false,
    "java.semanticHighlighting.enabled": true,
    "eslint.alwaysShowStatus": true,
    "eslint.format.enable": true,
    "files.autoSave": "off",
    "eslint.validate": [
        "javascript",
        "javascriptreact",
        "vue-html",
    ],
    "eslint.run": "onSave",
    "python.languageServer": "Microsoft",
    "editor.detectIndentation": false,
    "editor.tabSize": 2,
    "editor.codeActionsOnSave": {
      "source.fixAll.eslint": true
    },
}

生效的核心:"source.fixAll.eslint": true

 

 

posted @ 2020-07-23 14:33  浪浪辛  阅读(672)  评论(0)    收藏  举报