eslint vscode 配置

版权声明:一个被隔壁肥宅嘲笑的... https://blog.csdn.net/weixin_38641550/article/details/81981289

 

安装这俩东西

安装Eslint      npm install eslint -g

然后vsCode 首选项设置  用户设置   然后把老子的代码粘贴一下  

{
    "breadcrumbs.enabled": true,
    "editor.tabSize": 2,
    "editor.renderWhitespace": "boundary",
    "editor.cursorBlinking": "smooth",
    "editor.minimap.renderCharacters": false,
    "editor.fontFamily": "'Fira Code', 'Droid Sans Mono', 'Courier New', monospace, 'Droid Sans Fallback'",
    "editor.fontLigatures": true,
    "explorer.confirmDragAndDrop": false,
    "extensions.autoUpdate": false,
    "files.insertFinalNewline": true,
    "git.autofetch": true,
    "git.path": "F:\\Program Files\\Git\\cmd\\git.exe",
    "search.exclude": {
      "**/node_modules": true,
      "**/dist": true
    },
    "typescript.locale": "en",
    "window.titleBarStyle": "custom",
    "window.title": "${dirty}${activeEditorMedium}${separator}${rootName}",
    "workbench.activityBar.visible": true,
    "workbench.colorTheme": "Plastic - deprioritised punctuation",
    "workbench.iconTheme": "vscode-great-icons",
    "workbench.startupEditor": "newUntitledFile",
    "eslint.autoFixOnSave": true,
    "eslint.validate": ["javascript", "javascriptreact", "vue"],
    "vsicons.projectDetection.autoReload": true,
    "vsicons.dontShowNewVersionMessage": true,
    "tslint.autoFixOnSave": true,
    "debugwrapper.wrappers": {
      "default": "console.log('$eSEL', $SEL)"
    },
    "prettier.tslintIntegration": true,
    "cSpell.userWords": [
      "Unmount"
    ],
    "jest.autoEnable": false,
    "eslint.autoFixOnSave": true,
    "eslint.validate": [
      "javascript",
      "javascriptreact",
      {
        "language": "html",
        "autoFix": true
      },
      {
        "language": "vue",
        "autoFix": true
      }
    ]
  }

猜你喜欢

转载自blog.csdn.net/weixin_38641550/article/details/81981289