mpvue

1.项目初始化

vue init mpvue/mpvue-quickstart olbdsys

 2.eslint设置

添加如下配置

{
  "git.ignoreMissingGitWarning": true,
  "window.zoomLevel": 1,
  "workbench.colorTheme": "One Dark Pro",
  "files.autoSave": "afterDelay",
  "explorer.confirmDragAndDrop": false,
  "update.channel": "none",
  "editor.formatOnSave": true,
  "eslint.autoFixOnSave": false,
  "prettier.eslintIntegration": true,
  "prettier.semi": false,
  "prettier.singleQuote": true,
  "javascript.format.insertSpaceBeforeFunctionParenthesis": true,
  "vetur.format.defaultFormatter.html": "js-beautify-html",
  "vetur.format.defaultFormatter.js": "vscode-typescript",
  "vetur.format.defaultFormatterOptions": {
    "js-beautify-html": {
      "wrap_attributes": "force-aligned"
    }
  },
  "vetur.validation.template": false
}

  

原文地址:https://www.cnblogs.com/knyel/p/9241704.html