Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vsc代码规范配置 (Vetur + ESLint + prettier) #47

Open
ronghaoZHI opened this issue Aug 31, 2020 · 0 comments
Open

vsc代码规范配置 (Vetur + ESLint + prettier) #47

ronghaoZHI opened this issue Aug 31, 2020 · 0 comments

Comments

@ronghaoZHI
Copy link
Owner

vscode 开发规范配置
安装插件:
Vetur
ESLint
GitLens

代码规范配置:

// setting.json 
{
  "editor.tabSize": 2,
  "files.autoSave": "afterDelay",
  "editor.formatOnSave": true,
  "editor.codeActionsOnSave": {
    "source.fixAll.eslint": true,
  },
  "vetur.format.defaultFormatter.html": "js-beautify-html",
  "vetur.format.defaultFormatter.js": "vscode-typescript",
  "javascript.format.insertSpaceBeforeFunctionParenthesis": true,
  "vetur.format.defaultFormatterOptions": {
    "js-beautify-html": {
      "wrap_attributes": "force-aligned"
    }
  }
}

// .prettierrc
{
  "semi": true
  "eslintIntegration": true,
  "singleQuote": true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant