开发工具配置文件

分类:Golang |

VSCode eslint 配置

{
    "workbench.startupEditor": "newUntitledFile",
    "workbench.statusBar.visible": true,
    "editor.fontSize": 15,
    "editor.largeFileOptimizations": false,
    "editor.wordWrap": "on",
    "editor.formatOnSave": true,
    "files.maxMemoryForLargeFilesMB": 10000,
    "vetur.format.options.tabSize": 2,
    "vetur.format.options.useTabs": false,
    "vetur.format.defaultFormatterOptions": {
        "prettier": {
            "singleQuote": true, //不加分号
            "semi": true, //不加分号
            "eslintIntegration": true
        },
        "js-beautify-html": {
            "wrap_attributes":"auto",
            "html.format.wrapLineLength": 12000,
        },
    },
    "files.associations": {
        "*.vue": "vue",
        "*.cjson": "jsonc",
        "*.wxss": "css",
        "*.wxs": "javascript"
    },
    "eslint.options": {
        "extensions": [
            ".js",
            ".vue"
        ]
    },
    "workbench.preferredDarkColorTheme": "Default Light+",
    "editor.formatOnPaste": true,
    "editor.suggestSelection": "first",
    "vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue",
    "emmet.includeLanguages": {
        "wxml": "html"
    },
    "minapp-vscode.disableAutoConfig": true,
    "window.title": "${activeEditorLong}${separator}${rootName}",
    "terminal.integrated.shell.osx": "/bin/zsh",
    "eslint.format.enable": true,
    "eslint.autoFixOnSave": true, //  启用保存时自动修复,默认只支持.js文件
    "eslint.validate": [
        "javascript", //  用eslint的规则检测js文件
        {
            "language": "vue", // 检测vue文件
            "autoFix": true //  为vue文件开启保存自动修复的功能
        },
        {
            "language": "html",
            "autoFix": true
        },
    ],
    "editor.codeActionsOnSave": {
        "source.fixAll.eslint": true
    },
    "[vue]": {
        "editor.defaultFormatter": "octref.vetur"
    },
    "editor.wordWrapColumn": 8000,
    "html.format.wrapLineLength": 12000,
    "vetur.format.defaultFormatter.html": "js-beautify-html",
    "bracketPairColorizer.depreciation-notice": false,
    "workbench.colorTheme": "Default Light+",
}


bootstrap-vue:


https://bootstrap-vue.org/docs/components/navbar#navbar