在vscode中配制setting.json遇到“Auto Fix is enabled by default. Use the single string form.”报错解决
在vscode编辑器的setting.json中设置eslint的校验规则:"eslint.validate": ["javascript","javascriptreact",{"language": "html","autoFix": true},{"language": "vue","autoFix": true}]然后这里就出现黄色波浪线,提示“Auto Fix is enabled by
·
在vscode编辑器的setting.json中设置eslint的校验规则:
"eslint.validate": [
"javascript",
"javascriptreact",
{
"language": "html",
"autoFix": true
},
{
"language": "vue",
"autoFix": true
}
]
然后这里就出现黄色波浪线,提示“Auto Fix is enabled by default. Use the single string form.”
它的意思是autoFix默认是true,直接使用字符串就可以了。
修改成下面这样就不会提示错误了:
"eslint.validate": [
"javascript",
"javascriptreact",
"html",
"vue"
]
更多推荐
已为社区贡献17条内容
所有评论(0)