zoukankan      html  css  js  c++  java
  • vscode配置 eslint +prettier

    {
      "editor.fontFamily": "Menlo, Consolas, 'Courier New', monospace",
      "editor.fontLigatures": true,
      "editor.fontSize": 24,
      "editor.fontWeight": "500",
      "editor.lineHeight": 24,
      "editor.lineNumbers": "on",
      "editor.minimap.enabled": false,
      "editor.renderIndentGuides": false,
      "editor.rulers": [120],
      "editor.formatOnPaste": true,
      "workbench.colorTheme": "One Dark Pro",
      "explorer.confirmDelete": false,
      "terminal.integrated.fontFamily": "monospace",
      "editor.formatOnType": false,
      "editor.formatOnSave": true,
      "eslint.validate": [
        "javascript",
        "javascriptreact",
        {
          "language": "html",
          "autoFix": true
        },
        {
          "language": "vue",
          "autoFix": true
        },
        {
          "language": "typescript",
          "autoFix": true
        },
        "typescriptreact"
      ],
      "eslint.options": {
        "plugins": ["html"]
      },
      "editor.tokenColorCustomizations": {
        "textMateRules": [
          {
            "name": "Comments",
            "scope": "comment, punctuation.definition.comment",
            "settings": {
              "fontStyle": ""
            }
          },
          {
            "name": "js/ts italic",
            "scope": "entity.other.attribute-name.js,entity.other.attribute-name.ts,entity.other.attribute-name.jsx,entity.other.attribute-name.tsx,variable.parameter,variable.language.super",
            "settings": {
              "fontStyle": ""
            }
          },
          {
            "name": "js ts this",
            "scope": "var.this,variable.language.this.js,variable.language.this.ts,variable.language.this.jsx,variable.language.this.tsx",
            "settings": {
              "fontStyle": ""
            }
          }
        ]
      },
      "files.autoSave": "off",
      "window.zoomLevel": 0,
      "terminal.integrated.shell.windows": "C:\Windows\System32\cmd.exe",
      "search.location": "panel",
      // prettier插件 自动化格式代码设置
      "prettier.eslintIntegration": true,
      "prettier.singleQuote": true, // 强制单引号
      "prettier.trailingComma": "none", // 尾随逗号
      "prettier.semi": false, // 结尾不加分号
      "prettier.tabWidth": 2, // 2格缩进
      "prettier.arrowParens": "always", // 围绕箭头函数参数强制使用括号
      "editor.detectIndentation": false,
      "editor.tabCompletion": "on",
      "liveServer.settings.donotShowInfoMsg": true,
      "typescript.updateImportsOnFileMove.enabled": "always",
      // vetur格式化插件的配置
      "vetur.format.defaultFormatter.html": "js-beautify-html",
      "vetur.format.defaultFormatter.js": "vscode-typescript",
      "vetur.format.defaultFormatter.ts": "vscode-typescript",
      "vetur.format.options.tabSize": 2,
      "vetur.format.defaultFormatterOptions": {
        "js-beautify-html": {
          "wrap_attributes": "force-expand-multiline"
        },
        "prettyhtml": {
          "printWidth": 100,
          "singleQuote": true,
          "wrapAttributes": false,
          "sortAttributes": false
        }
      },
      "vetur.validation.template": false,
      "files.associations": {
        "*.json": "jsonc",
        "*.cjson": "jsonc",
        "*.wxss": "css",
        "*.wxs": "javascript"
      },
      "emmet.includeLanguages": {
        "wxml": "html"
      },
      "minapp-vscode.disableAutoConfig": true,
      "sync.gist": "e9ec7974d53f0325e050467baabafc3a",
    
      // koroFileHeader插件配置修改
      // "fileheader.configObj": {
      //     "createFileTime": true,
      //     "timeNoDetail": true
      // },
      // 头部注释
      "fileheader.customMade": {
        "Description": "file content",
        "Author": "tgb",
        "Date": "Do not edit",
        "LastEditors": "tgb",
        "LastEditTime": "Do not edit"
      },
      "javascript.updateImportsOnFileMove.enabled": "never",
      "editor.tabSize": 2,
      "explorer.confirmDragAndDrop": false,
      "javascript.implicitProjectConfig.experimentalDecorators": true,
      "workbench.iconTheme": "vscode-icons"
    }
  • 相关阅读:
    Javascript FP-ramdajs
    微信小程序开发
    SPA for HTML5
    One Liners to Impress Your Friends
    Sass (Syntactically Awesome StyleSheets)
    iOS App Icon Template 5.0
    React Native Life Cycle and Communication
    Meteor framework
    RESTful Mongodb
    Server-sent Events
  • 原文地址:https://www.cnblogs.com/bamboopanders/p/13301147.html
Copyright © 2011-2022 走看看