美文网首页
vacode eslint配置分享

vacode eslint配置分享

作者: 刘圣凯 | 来源:发表于2020-10-20 16:35 被阅读0次

    {
    "workbench.iconTheme": "vscode-icons",
    "workbench.activityBar.visible": true,
    "workbench.panel.defaultLocation": "right",
    "editor.fontFamily": "sudo",
    "workbench.startupEditor": "newUntitledFile",
    "glassit.alpha": 215,
    "window.menuBarVisibility": "default",
    "workbench.statusBar.visible": true,
    "terminal.integrated.shell.windows": "E:\Git\bin\bash.exe",
    "window.zoomLevel": 1,
    "terminal.integrated.lineHeight": 1.1,
    "editor.minimap.maxColumn": 50,
    "terminal.integrated.fontFamily": "Operator Mono",
    "vsicons.dontShowNewVersionMessage": true,
    "explorer.confirmDelete": false,
    "terminal.integrated.rendererType": "dom",
    "[javascript]": {
    "editor.defaultFormatter": "vscode.typescript-language-features"
    },
    // 兼容eslint 配置
    "files.autoSave": "off",
    // 添加 vue 支持
    "eslint.validate": [
    "javascript",
    "javascriptreact",
    "vue-html",
    {
    "language": "vue",
    "autoFix": true
    }
    ],
    "editor.detectIndentation": false,
    // 重新设定tabsize
    "editor.tabSize": 2,
    // #每次保存的时候自动格式化
    "editor.formatOnSave": false,
    // #每次保存的时候将代码按eslint格式进行修复
    "eslint.autoFixOnSave": true,
    "eslint.run": "onSave",
    "[html]": {
    "editor.defaultFormatter": "vscode.html-language-features"
    },
    "editor.minimap.enabled": false,
    "[vue]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
    },
    "editor.codeActionsOnSave": {
    "source.fixAll.eslint": true
    },
    "debug.console.fontSize": 15,
    "editor.fontSize": 18,
    "sync.autoDownload": false,
    "sync.autoUpload": false,
    "sync.gist": "e3de5fa9af8bf040570fddd0cbb00d1a",
    "files.associations": {},
    "[jsonc]": {
    "editor.defaultFormatter": "vscode.json-language-features"
    },
    "cSpell.enableFiletypes": [
    "log"
    ],
    "editor.renameOnType": true,
    "git.autofetch": true,
    "workbench.colorTheme": "SynthWave '84",
    "editor.fontLigatures": null,
    // 函数后是否带空格,默认为true
    "javascript.format.insertSpaceAfterFunctionKeywordForAnonymousFunctions": false,
    // background && windows:opacity 插件配置
    "background.enabled": false,
    "winopacity.opacity": 238,
    // end
    }

    相关文章

      网友评论

          本文标题:vacode eslint配置分享

          本文链接:https://www.haomeiwen.com/subject/tdvdmktx.html