vscode 解决eslint配置无效问题

```json

{

  "terminal.integrated.shell.windows": "C:\\windows\\System32\\cmd.exe",

  "git.autofetch": true,

  "gitlens.views.compare.files.layout": "tree",

  "workbench.colorTheme": "Atom One Dark",

  "workbench.iconTheme": "vscode-icons",

  "editor.acceptSuggestionOnCommitCharacter": false,

  "vetur.format.defaultFormatterOptions": {

    "js-beautify-html": {

      // force-aligned | force-expand-multiline

      "wrap_attributes": "force-aligned"

    },

    "prettyhtml": {

      "printWidth": 100,

      "singleQuote": false,

      "wrapAttributes": false,

      "sortAttributes": true

    },

    // "javascript.format.insertSpaceAfterFunctionKeywordForAnonymousFunctions": true,

    // --- 解决问题 ---

    "prettier": {

      "semi": false,

      "singleQuote": true,

      "eslintIntegration": true,

      "insertSpaceBeforeFunctionParenthesis": true

    }

    // --- 解决问题 ---

  },

  "vetur.format.defaultFormatter.html": "js-beautify-html",

  "vetur.format.defaultFormatter.js": "vscode-typescript",

  "javascript.format.insertSpaceBeforeFunctionParenthesis": true,

  "[jsonc]": {

    "editor.defaultFormatter": "esbenp.prettier-vscode"

},

"[javascript]": {

    "editor.defaultFormatter": "esbenp.prettier-vscode"

},

"files.autoSave": "onFocusChange"

}

```

你可能感兴趣的:(vscode 解决eslint配置无效问题)