VSCode:配置自動修復eslint


 

 

{
    //"tfvc.location": "C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Professional\\Common7\\IDE\\CommonExtensions\\Microsoft\\TeamFoundation\\Team Explorer\\TF.exe",
    //"tfvc.location": "C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\TeamExplorer\\Common7\\IDE\\CommonExtensions\\Microsoft\\TeamFoundation\\Team Explorer\\TF.exe",
    //"tfvc.restrictWorkspace": true,
    "team.showWelcomeMessage": false,
    //"team.logging.level": "debug"
    "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,
    "eslint.enable": true,
    "eslint.autoFixOnSave": true,
    "eslint.validate": [
        "javascript",  //  用eslint的規則檢測js文件
        {
          "language": "vue",   // 檢測vue文件
          "autoFix": true   //  為vue文件開啟保存自動修復的功能
        },
        {
          "language": "html",
          "autoFix": true
        },"vue"
      ],
    // "search.exclude": {
    //     "**/node_modules": true,
    //     "**/dist": true
    //   },

}

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM