eslint的setting.json配置


vscode中eslint的setting.json配置,如下:

{
    "workbench.editor.enablePreview": false, //打開文件不覆蓋
    "search.followSymlinks": false, //關閉rg.exe進程
    "editor.minimap.enabled": false, //關閉快速預覽
    "liveServer.settings.donotShowInfoMsg": true, //關閉liveserver提示
    "files.autoSave": "afterDelay", //打開自動保存
    "editor.fontSize": 16, //設置文字大小
    "editor.lineHeight": 24, //設置文字行高
    "editor.lineNumbers": "on", //開啟行數提示
    "editor.quickSuggestions": { //開啟自動顯示建議
        "other": true,
        "comments": true,
        "strings": true
    },
    "window.zoomLevel": 0, // 調整窗口的縮放級別
    "editor.tabSize": 2, //制表符符號eslint
    "editor.formatOnSave": true, //每次保存自動格式化
    "prettier.semi": false, //去掉代碼結尾的分號
    "prettier.singleQuote": true, //使用帶引號替代雙引號
    "javascript.format.insertSpaceBeforeFunctionParenthesis": true, //讓函數(名)和后面的括號之間加個空格
    "vetur.format.defaultFormatter.html": "js-beautify-html", //格式化.vue中html
    "vetur.format.defaultFormatter.js": "vscode-typescript", //讓vue中的js按編輯器自帶的ts格式進行格式化
    "vetur.format.defaultFormatterOptions": {
        "js-beautify-html": {
            "wrap_attributes": "force-aligned" //屬性強制折行對齊
        }
    },
    "editor.codeActionsOnSave": {
        "source.fixAll.eslint": true
    },
    "editor.suggestSelection": "first",
    "vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue",
    "java.configuration.checkProjectSettingsExclusions": false,
    "java.errors.incompleteClasspath.severity": "ignore",
    "breadcrumbs.enabled": true,
    "editor.renderControlCharacters": false,
    "vetur.validation.template": false
}


免責聲明!

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



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