VScode Eslint代码校验

{
    "vim.disableAnnoyingNeovimMessage": true,
    "editor.renderWhitespace": "none",
    // "vetur.format.defaultFormatter.js": "vscode-typescript",
    "javascript.format.insertSpaceBeforeFunctionParenthesis": true,
    // "vetur.format.defaultFormatter.ts": "vscode-typescript",
    "git.enableSmartCommit": true,
    "background.useDefault": true,
    "background.customImages": [
        ""
    ],
    // "eslint.autoFixOnSave": true,
    "editor.fontSize": 18,
    "editor.tabSize": 4,
    "prettier.singleQuote": true,
    "prettier.semi": false,
    "standard.validate": [
        "javascript",
        "javascriptreact",
        {
            "language": "html",
            "autoFix": true
        }
    ],
    "standard.autoFixOnSave": true,
    "standard.options": {
        "plugins": [
            "html"
        ]
    },
    "wxmlConfig.format": {
        "indent_size": 4,
    },
    "background.style": {
        "content": "''",
        "pointer-events": "none",
        "position": "absolute",
        "z-index": "99999",
        "width": "100%",
        "height": "100%",
        "background-position": "100% 100%",
        "background-repeat": "no-repeat",
        "opacity": 0.6
    },
    "background.enabled": true,
    "editor.formatOnPaste": false,
    "editor.formatOnSave": false,
    "editor.formatOnType": false,
    "liveServer.settings.donotShowInfoMsg": true,
    "editor.parameterHints": true,
    "editor.quickSuggestions": {
        "other": true,
        "comments": true,
        "strings": true
    },
    "files.associations": {
        "*.vue": "vue",
        "*.html": "html",
        "*.wpy": "vue",
        "*.cjson": "jsonc",
        "*.wxss": "css",
        "*.wxs": "javascript",
        "*.js": "javascript"
    },
    "javascript.updateImportsOnFileMove.enabled": "always",
    "typescript.locale": "zh-CN",
    "breadcrumbs.enabled": true,
    // "editor.fontSize": 15,
    "editor.fontLigatures": true,
    "files.insertFinalNewline": true,
    "files.trimFinalNewlines": true,
    "files.trimTrailingWhitespace": true,
    "files.exclude": {
        "**/.idea": true,
        "**/.vscode": true,
        "**/compiled.php": true,
        "**/node_modules": true,
        "**/.classpath": true,
        "**/.project": true,
        "**/.settings": true,
        "**/.factorypath": true
    },
    "search.useIgnoreFiles": false,
    "search.exclude": {
        "**/*.log": true,
        "**/*.min.css": true,
        "**/*.min.js": true,
        "**/node_modules": true,
        "**/dist": true
    },
    "emmet.syntaxProfiles": {
        "javascript": "jsx",
        "vue": "html",
        "vue-html": "html"
    },
    "eslint.options": {
        "plugins": [
            "html"
        ],
        "configFile": ".eslintrc.js",
        "extensions": [
            ".js",
            ".vue"
        ]
    },
    "vetur.ignoreProjectWarning": true,
    "eslint.validate": [
        "javascript",
        "javascriptreact",
        "vue",
        "html",
    ],
    "prettier.eslintIntegration": true,
    "editor.suggestSelection": "first",
    "vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue",
    "emmet.includeLanguages": {
        "wxml": "html"
    },
    "minapp-vscode.disableAutoConfig": true,
    "terminal.integrated.rendererType": "dom",
    "vetur.format.options.tabSize": 4,
    "[scss]": {
        "editor.defaultFormatter": "HookyQR.beautify"
    },
    "beautify.language": {
        "js": {
            "type": [
                "javascript",
                "json"
            ],
            "filename": [
                ".jshintrc",
                ".jsbeautify"
            ]
        },
        "css": [
            "css",
            "scss"
        ],
        "html": [
            "htm",
            "html",
            "vue" //在这里加上vue
        ]
    },
    "eslint.workingDirectories": [
        {
            "mode": "auto"
        },
        "./frontend"
    ],
    "[vue]": {
        "editor.defaultFormatter": "octref.vetur"
        // "editor.defaultFormatter": "HookyQR.beautify"
        // "editor.defaultFormatter": "hu2ren.vetur-wepy"
        // "editor.defaultFormatter": "HookyQR.beautify"
    },
    "[javascript]": {
        "editor.defaultFormatter": "HookyQR.beautify"
    },
    "[json]": {
        "editor.defaultFormatter": "HookyQR.beautify"
    },
    "[css]": {
        "editor.defaultFormatter": "michelemelluso.code-beautifier"
    },
    "python.jediEnabled": false,
    "editor.codeActionsOnSave": {
        "source.fixAll.eslint": true,
        "source.fixAll": true
    },
    "[html]": {
        "editor.defaultFormatter": "HookyQR.beautify"
    },
    "explorer.confirmDelete": false,
    "eslint.codeAction.showDocumentation": {
        "enable": true
    },
    "python.languageServer": "Microsoft",
    "terminal.integrated.inheritEnv": false,
    "workbench.editorAssociations": {
        "*.ipynb": "jupyter.notebook.ipynb"
    },
    "redhat.telemetry.enabled": true,
    "eslint.alwaysShowStatus": true,
    "[jsonc]": {
        "editor.quickSuggestions": {
            "strings": true
        },
        "editor.suggest.insertMode": "replace"
    },
    "java.debug.settings.stepping.skipClasses": [],
    // 换行
    // "typescript.format.placeOpenBraceOnNewLineForControlBlocks": true,
    // 换行
    // "typescript.format.placeOpenBraceOnNewLineForFunctions": true,
    "vetur.format.defaultFormatterOptions": {

        "prettier": {
            // "semi": false,
            "singleQuote": true
        },
        "js-beautify-html": {
            "wrap_attributes": "force-expand-multiline",
            // "wrap_attributes": "force-aligned"
        },
        "prettyhtml": {
            "printWidth": 100,
            "singleQuote": false,
            "wrapAttributes": false,
            "sortAttributes": false
        }
    },
    "vsintellicode.modelDownloadPath": "",
    "vetur.completion.scaffoldSnippetSources": {
        "vue": ""
    },
    "vetur.grammar.customBlocks": {

        "docs": "md",
        "i18n": "json"
    },
    "explorer.confirmDragAndDrop": false,
    "window.zoomLevel": -0.5,
    "workbench.colorTheme": "One Dark Pro",
    "workbench.iconTheme": "vscode-icons",

}


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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值