vscode个人vue-eslint配置

{
    "workbench.iconTheme": "simple-icons",
    "workbench.colorTheme": "One Dark Pro Bold",
    "editor.fontSize": 13,
    "workbench.sideBar.location": "right",
    "git.enableSmartCommit": true,
    "git.autofetch": true,
    "vetur.format.defaultFormatterOptions": {
        "prettier": {
            // 格式化不加分号
            "semi": false,
            // 格式化为单引号
            "singleQuote": true
        } 
    },
    // 在方法括号之间插入空格
    "javascript.format.insertSpaceBeforeFunctionParenthesis": true,
    // 格式化vue
    "vetur.format.defaultFormatter.html": "js-beautify-html",
    // 编辑粘贴自动格式化
    "editor.formatOnPaste": true,
    // 行高
    "editor.lineHeight": 17,
    // 行太长自动换行
    "editor.wordWrap": "on",
    // 通过使用鼠标滚轮同时按住 Ctrl 可缩放编辑器的字体
    "editor.mouseWheelZoom": true,
    // // 以下为stylus配置
    // "stylusSupremacy.insertColons": false, // 是否插入冒号
    // "stylusSupremacy.insertSemicolons": false, // 是否插入分好
    // "stylusSupremacy.insertBraces": false, // 是否插入大括号
    // "stylusSupremacy.insertNewLineAroundImports": false, // import之后是否换行
    // "stylusSupremacy.insertNewLineAroundBlocks": false, // 两个选择器中是否换行
    // 项目格式化
    "editor.tabSize": 2,
    "files.associations": {
        "*.vue": "vue"
    },
    // 双引号变单引号
    "eslint.autoFixOnSave": false,
    "eslint.options": {
        "extensions": [
            ".js",
            ".vue"
        ],
        "plugins": [
            "html"
        ]
    },
    "search.exclude": {
        "**/node_modules": true,
        "**/bower_components": true,
        "**/dist": true
    },
    "emmet.syntaxProfiles": {
        "javascript": "jsx",
        "vue": "html",
        "vue-html": "html"
    },
    "git.confirmSync": false,
    "window.zoomLevel": 0,
    "editor.renderWhitespace": "boundary",
    "editor.cursorBlinking": "smooth",
    "editor.minimap.enabled": true,
    "editor.minimap.renderCharacters": false,
    "editor.fontFamily": "Consolas, 'Courier New', monospace",
    "window.title": "${dirty}${activeEditorMedium}${separator}${rootName}",
    "editor.codeLens": true,
    "editor.snippetSuggestions": "top",
    "files.autoSave": "off",
    "eslint.validate": [
        "javascript",
        "javascriptreact",
        "html",
        {
            "language": "vue",
            "autoFix": true
        }
    ],
    "explorer.confirmDragAndDrop": false,
    "explorer.confirmDelete": false,
    "[javascript]": {
        "editor.defaultFormatter": "esbenp.prettier-vscode"
    },
    // vscode 自动保存取消分号
    "javascript.format.insertSpaceAfterSemicolonInForStatements": false,
    "prettier.semi": false,
    "typescript.format.insertSpaceAfterSemicolonInForStatements": false,
    "prettier.singleQuote": true
}

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值