ESlint自动化设置

// 赋值粘贴下面代码到首选项=> 设置=> 用户设置,然后保存
 "editor.fontSize": 16,
    "editor.fontFamily": "Fira Code, Consolas", //Fira Code
    "editor.fontLigatures": true,
    "editor.tabSize": 2,
    "editor.formatOnType": true,
    "editor.renderWhitespace": "boundary",
    "editor.wordSeparators": "`~!@#$%^&*()=+[{]}\\|;:'\",.<>/?",
    "extensions.autoUpdate": true,
    "emmet.syntaxProfiles": {
        "vue-html": "html",
        "vue": "html",
        // "javascript": "jsx",
        "javascript": "html"
    },
    "emmet.includeLanguages": {
        "vue-html": "html",
        "vue": "html",
        "javascript": "javascriptreact",
        "wxml": "html"
    },
    "emmet.triggerExpansionOnTab": true,
    "terminal.external.windowsExec": "C:\\#Alan\\Software\\cmder\\Cmder.exe",
    "eslint.validate": [
        "javascript",
        "javascriptreact",
        "vue-html",
        {
            "language": "vue",
            "autoFix": true
        },
        "html",
        "vue"
    ],
    // 需要 npm install -g eslint-plugin-vue
    "eslint.options": {
        "extensions": [
            ".js",
            ".vue"
        ]
    },
    "files.associations": {
        "*.vue": "vue",
        "*.js": "javascript",
        "*.cjson": "jsonc",
        "*.wxss": "css",
        "*.wxs": "javascript",
        // "*.wpy": "vue"
    },
    "editor.cursorBlinking": "smooth",
    "sync.gist": "0098ebc82c9c1ac3237c27c11ba0cca9",
    "sync.lastUpload": "2018-08-21T00:41:00.355Z",
    "sync.autoDownload": false,
    "sync.autoUpload": false,
    "sync.lastDownload": "2017-09-23T11:59:03.285Z",
    "sync.forceDownload": false,
    "sync.host": "",
    "sync.pathPrefix": "",
    "sync.quietSync": false,
    "editor.renderIndentGuides": false,
    "search.exclude": {
        "**/node_modules": true,
        "**/bower_components": true,
        "**/dist": true
    },
    "vetur.format.styleInitialIndent": true,
    "vetur.format.scriptInitialIndent": true,
    "eslint.autoFixOnSave": true,
    "window.zoomLevel": 0,
    "sync.askGistName": false,
    "fileheader.Author": "Alan-Yih",
    "workbench.startupEditor": "newUntitledFile",
    "liveServer.settings.donotShowInfoMsg": true,
    "git.confirmSync": false,
    "explorer.confirmDragAndDrop": false,
    "explorer.confirmDelete": false,
    "workbench.colorCustomizations": {},
    // "materialTheme.cache.workbench.settings": {
    //     "accentPrevious": "Purple",
    //     "themeColours": "Default"
    // },
    "python.disablePromptForFeatures": [
        "pylint"
    ],
    "python.linting.flake8Enabled": true,
    "workbench.iconTheme": "material-icon-theme",
    "material-icon-theme.folders.color": "#fdd835",
    "material-icon-theme.activeIconPack": "react",
    "sync.removeExtensions": true,
    "sync.syncExtensions": true,
    "editor.quickSuggestions": {
        "strings": true
    },
    "element-helper.version": "2.3",
    "editor.wordWrap": "on",
    "gitlens.advanced.messages": {
        "suppressShowKeyBindingsNotice": true
    },
    "gitlens.historyExplorer.enabled": true,
    "minapp-vscode.disableAutoConfig": true,
    "breadcrumbs.enabled": true,
    "px-to-rem.px-per-rem": 37.5,
    "workbench.colorTheme": "Dracula Soft",
    "files.autoSave": "off",
    "javascript.updateImportsOnFileMove.enabled": "always",
    "editor.smoothScrolling": true
    // wxb88afe2feec4e6e0
}
posted @ 2019-04-03 17:05  不会代码的前端  阅读(2808)  评论(0编辑  收藏  举报