Open openks opened 6 years ago
报错信息如下:
file: 'file:///d%3A/code/src/components/demos/test.vue'
severity: '错误'
message: 'Missing space before function parentheses. (space-before-function-paren)'
at: '10,9'
source: 'eslint'
code: 'space-before-function-paren'
解决方案 不使用 prettier
的格式化规则
添加如下配置
"vetur.format.defaultFormatter.js": "vscode-typescript",//默认格式化规则
eslint 能够发现错误,但是调用eslint fix all
命令无任何效果,但是修改配置文件
修改为保存自动修复竟然可以自动修复
"eslint.validate": [
"javascript",
"javascriptreact",
{
"language": "html",
"autoFix": true
},
{
"language": "vue",
"autoFix": true
}
],
emmet在vscode中tab建不起作用解决方案
"emmet.triggerExpansionOnTab": true,
"emmet.includeLanguages": {
"vue-html": "html",
"vue": "html"
}