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
}

  

 

posted on 2018-06-29 08:48  knyel  阅读(159)  评论(0编辑  收藏  举报