vscode的settings配置

"eslint.enable": true,
  "eslint.codeAction.showDocumentation": {
    "enable": true
  },
  "eslint.validate": ["javascript", "typescript", "javascriptreact", "typescriptreact", "html", "vue"],
  "typescript.validate.enable": true,
  "javascript.validate.enable": true,
  // 这里配置eslint和stylelint和prettier的自动格式化
  "editor.codeActionsOnSave": {
    "source.fixAll.eslint": true, // 开启eslint 保存自动检测
    "source.fixAll.stylelint": true // 开启 Stylelint 保存自动检测
  },
  "workbench.iconTheme": "material-icon-theme",
  "workbench.colorTheme": "Community Material Theme Palenight High Contrast",
  "editor.fontFamily": "mononoki",
  "liveServer.settings.donotShowInfoMsg": true,
  "git.ignoreMissingGitWarning": true,
  "typescript.updateImportsOnFileMove.enabled": "always",
  // 当按tab键的时候,会自动提示
  "emmet.triggerExpansionOnTab": true,
  "emmet.showAbbreviationSuggestions": true,
  "emmet.includeLanguages": {
    "javascript": "javascriptreact"
  },
  "js/ts.implicitProjectConfig.checkJs": true,
  "workbench.startupEditor": "none",
  "stylelint.packageManager": "yarn",
  "[scss]": {
    "editor.defaultFormatter": "stylelint.vscode-stylelint"
  },
  "[vue]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "workbench.commandPalette.preserveInput": true,
  "javascript.updateImportsOnFileMove.enabled": "always",
  "editor.detectIndentation": false,
  "[css]": {
    "editor.defaultFormatter": "stylelint.vscode-stylelint"
  },
  "editor.defaultFormatter": "esbenp.prettier-vscode",
  // Stylelint 校验文件
  "stylelint.validate": ["css", "scss", "vue", "html", "tsx"],
  "[typescript]": {
    "editor.defaultFormatter": "vscode.typescript-language-features"
  },
  "[javascript]": {
    "editor.defaultFormatter": "vscode.typescript-language-features"
  },
  "prettier.printWidth": 120,
  "vue3snippets.printWidth": 120,
  "vue3snippets.tabWidth": 4,
  "[xml]": {
    "editor.defaultFormatter": "redhat.vscode-xml"
  },
  "scss.lint.unknownAtRules": "ignore",
  "css.lint.unknownAtRules": "ignore",
  "[dart]": {
    "editor.formatOnSave": true,
    "editor.formatOnType": true,
    "editor.rulers": [80],
    "editor.selectionHighlight": false,
    "editor.suggestSelection": "first",
    "editor.tabCompletion": "onlySnippets",
    "editor.wordBasedSuggestions": false
},
"editor.formatOnSave": true,
"eslint.format.enable": true

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值