rules 里加入:
"vue/html-indent": ["error", "tab", {
"attribute": 1,
"baseIndent": 1,
"closeBracket": 0,
"alignAttributesVertically": true,
"ignores": []
}]
然后 indent 部分的设置改为:
'indent': [1, 'tab', {
'SwitchCase': 1
}]
rules 里加入:
"vue/html-indent": ["error", "tab", {
"attribute": 1,
"baseIndent": 1,
"closeBracket": 0,
"alignAttributesVertically": true,
"ignores": []
}]
然后 indent 部分的设置改为:
'indent': [1, 'tab', {
'SwitchCase': 1
}]
本文标题:eslint 缩进改成 tab
本文链接:https://www.haomeiwen.com/subject/qeiaqltx.html
网友评论