vscode setting.json 备份

{
“git.ignoreMissingGitWarning”: true,
“files.autoSave”: “afterDelay”,
“javascript.updateImportsOnFileMove.enabled”: “always”,
“git.autofetch”: true,
“gitlens.advanced.fileHistoryFollowsRenames”: false,
// “gitlens.historyExplorer.enabled”: false,
“editor.tabSize”: 2,
“workbench.activityBar.visible”: true,
“window.menuBarVisibility”: “default”,
“breadcrumbs.enabled”: true,
// “remote.onstartup”: true,
“search.followSymlinks”: false,
“git.enableSmartCommit”: true,
“git.ignoreLegacyWarning”: true,
“window.zoomLevel”: 0,
// “atomKeymap.promptV3Features”: true,
“editor.multiCursorModifier”: “ctrlCmd”,
“editor.formatOnPaste”: true,
“editor.formatOnSave”: true,
“eslint.autoFixOnSave”: true,
// “vetur.format.defaultFormatter.html”: “js-beautify-html”, //设置vetur默认的html代码格式化规范
“vetur.format.defaultFormatter.js”: “prettier-eslint”,
“vetur.validation.template”: false,
“vetur.format.defaultFormatterOptions”: {
// 设置设置HTML属性是否换行,与vetur.format.defaultFormatter.html一起使用
// “js-beautify-html”: {
// “wrap_line_length”: 120,
// “wrap_attributes”: “auto”,
// “end_with_newline”: false
// }
},
“[javascript]”: {
“editor.defaultFormatter”: “vscode.typescript-language-features”
},
“editor.detectIndentation”: false,
“editor.renderWhitespace”: “boundary”,
“editor.fontFamily”: “‘Droid Sans Mono’, ‘Courier New’, monospace, ‘Droid Sans Fallback’”
}

设置分号和缩进相关问题,我直接修改
eslintc.js文件

rules: {
// allow async-await
‘generator-star-spacing’: ‘off’,
// allow debugger during development
‘no-console’: process.env.NODE_ENV === ‘production’ ? ‘error’ : ‘off’,
‘no-debugger’: process.env.NODE_ENV === ‘production’ ? ‘error’ : ‘off’,
‘vue/no-parsing-error’: [2, { ‘x-invalid-end-tag’: false }],
“vetur.validation.template”: false,
‘vue/no-use-v-if-with-v-for’: ‘off’,
‘no-undef’: ‘off’,
indent: [2, 4, { SwitchCase: 1 }],//2,4 缩进
camelcase: ‘off’,
semi: [2, ‘always’],//always never 是否显示分号
// ‘semi-spacing’: [2, {
// ‘before’: false,
// ‘after’: true
// }],
},

你可能感兴趣的:(其他)