上一篇:《人到底是啥》


《vscode vetur eslint 配置 settings.json 文件》

作者 vhaixingv 创建于 21-06-07 18:16:08

vetur  eslint 


家里最新

{
  "editor.codeActionsOnSave": {
    "source.fixAll.eslint": true
  },
  "vetur.format.defaultFormatterOptions": {
    "js-beautify-html": {
      "wrap_attributes": "force-expand-multiline"
    },
    "prettyhtml": {
      "printWidth": 100,
      "singleQuote": false,
      "wrapAttributes": false,
      "sortAttributes": false
    },
    "prettier": {
      "semi": false, // 分号
      "singleQuote": true // 单引号
    }
  },
  "workbench.editorAssociations": {
    "*.ipynb": "jupyter-notebook"
  },
  // 排除一些扩展名的文件
  "files.exclude": {
    "**/.git": true,
    "**/.svn": true,
    "**/.hg": true,
    "**/CVS": true,
    "**/.DS_Store": true,
    "**/*.pyc": true
  },
  "javascript.format.insertSpaceBeforeFunctionParenthesis": true,
  "notebook.cellToolbarLocation": {
    "default": "right",
    "jupyter-notebook": "left"
  },
  "[vue]": {
    "editor.defaultFormatter": "octref.vetur"
  },
  "prettier.printWidth": 100,
  "search.exclude": {
    "**/dist": true
  },
  "git.suggestSmartCommit": false,
  "editor.formatOnSave": true,
  "vetur.format.defaultFormatter.html": "prettyhtml",
  "security.workspace.trust.untrustedFiles": "open",
  "vetur.format.defaultFormatter.js": "vscode-typescript",
  "[javascript]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  }
}


最新

{
    "editor.codeActionsOnSave": {
        "source.fixAll.eslint": true
    },
    "vetur.format.defaultFormatterOptions": {
        "js-beautify-html": {
            "wrap_attributes": "force-expand-multiline",
        },
        "prettyhtml": {
            "printWidth": 100,
            "singleQuote": false,
            "wrapAttributes": false,
            "sortAttributes": false,
        },
        "prettier": {
            "semi": false,  // 分号
            "singleQuote": true,  // 单引号
        }
    },
    "workbench.editorAssociations": {
        "*.ipynb": "jupyter-notebook"
    },
    // 排除一些扩展名的文件
    "files.exclude": {
        "**/.git": true,
        "**/.svn": true,
        "**/.hg": true,
        "**/CVS": true,
        "**/.DS_Store": true,
        "**/*.pyc": true,
    },
    "javascript.format.insertSpaceBeforeFunctionParenthesis": true,
    "notebook.cellToolbarLocation": {
        "default": "right",
        "jupyter-notebook": "left"
    },
    "[vue]": {
        "editor.defaultFormatter": "octref.vetur"
    },
    "prettier.printWidth": 100,
    "search.exclude": {
        "**/dist": true
    },
    "git.suggestSmartCommit": false,
    "editor.formatOnSave": true,
    "vetur.format.defaultFormatter.html": "prettyhtml",                // vetur html 使用  prettyhtml
    "vetur.format.defaultFormatter.js": "vscode-typescript"             // vetur js  使用 vscode-typescript
}


最新

{
    "editor.codeActionsOnSave": {
        "source.fixAll.eslint": true
    },
    "editor.formatOnSave": true,
    "vetur.format.defaultFormatterOptions": {
        "js-beautify-html": {
            "wrap_attributes": "force-expand-multiline",
        },
        "prettyhtml": {
            "printWidth": 100,
            "singleQuote": false,
            "wrapAttributes": false,
            "sortAttributes": false,
        },
        "prettier": {
            "semi": true,
            "singleQuote": true
        }
    },
    "workbench.editorAssociations": {
        "*.ipynb": "jupyter-notebook"
    },
    // 排除一些扩展名的文件
    "files.exclude": {
        "**/.git": true,
        "**/.svn": true,
        "**/.hg": true,
        "**/CVS": true,
        "**/.DS_Store": true,
        "**/*.pyc": true,
    },
    "javascript.format.insertSpaceBeforeFunctionParenthesis": true,
    "vetur.format.defaultFormatter.js": "vscode-typescript",
    "vetur.format.defaultFormatter.html": "prettyhtml",
    "notebook.cellToolbarLocation": {
        "default": "right",
        "jupyter-notebook": "left"
    },
    "[vue]": {
        "editor.defaultFormatter": "octref.vetur"
    },
    "prettier.printWidth": 100,
    "search.exclude": {
        "**/dist": true
      }
}




最新:

{
    "editor.codeActionsOnSave": {
        "source.fixAll.eslint": true
    },
    "editor.formatOnSave": true,
    "vetur.format.defaultFormatterOptions": {
        "js-beautify-html": {
            "wrap_attributes": "force-expand-multiline",
        },
        "prettyhtml": {
            "printWidth": 100,
            "singleQuote": false,
            "wrapAttributes": false,
            "sortAttributes": false,
        },
        "prettier": {
            "semi": false,
            "singleQuote": true
        }
    },
    "workbench.editorAssociations": {
        "*.ipynb": "jupyter.notebook.ipynb"
    },
    // 排除一些扩展名的文件
    "files.exclude": {
        "**/.git": true,
        "**/.svn": true,
        "**/.hg": true,
        "**/CVS": true,
        "**/.DS_Store": true,
        "**/*.pyc": true,
    },
    "javascript.format.insertSpaceBeforeFunctionParenthesis": true,
    "vetur.format.defaultFormatter.js": "vscode-typescript",
    "vetur.format.defaultFormatter.html": "prettyhtml"
}


过去:

{
    "git.ignoreMissingGitWarning": true,
    "search.followSymlinks": false,
    "editor.formatOnSave": false,
    "files.encoding": "UTF-8",
    "eslint.autoFixOnSave": true,
    "eslint.validate": [
        "javascript",
        "javascriptreact",
        {
            "language": "html",
            "autoFix": true
        },
        {
            "language": "vue",
            "autoFix": true
        }
    ],
    "files.exclude": {
        "**/.git": true,
        "**/.svn": true,
        "**/.hg": true,
        "**/CVS": true,
        "**/.DS_Store": true,
        "**/*.pyc": true,
    },
    "files.autoSave": "off",
    "editor.codeActionsOnSave": {
        "source.fixAll.eslint": true
    },
    "python.pydev.forcedBuiltins": [],
    "python.pydev.java.home": "C:\\Program Files\\Java\\jre1.8.0_261",
    "workbench.editorAssociations": [
        {
            "viewType": "jupyter.notebook.ipynb",
            "filenamePattern": "*.ipynb"
        }
    ],
    "terminal.integrated.shell.windows": "C:\\Windows\\System32\\cmd.exe",
    "terminal.integrated.shellArgs.windows": []
}



下一篇:《归宿》