Closed
Description
- ESLint Version: 4.14.0
- eslint-plugin-vue Version: 4.1.0
- babel-eslint 8.1.2
- Node Version: 8.9.3
// this is not full configuration
"parserOptions": {
"parser": "babel-eslint",
},
"rules": {
"vue/html-indent": [1, 4, {
"attribute": 1,
"closeBracket": 0
}],
}
What did you do? Please include the actual source code causing the issue.
<!-- this code is perfectly valid -->
<template>
<div>
<div></div>
</div>
</template>
<!-- [eslint] Expected indentation of 4 spaces
but found 8 spaces. (vue/html-indent) -->
<template>
<div>
<!-- <div></div> -->
</div>
</template>
What did you expect to happen?
For it to treat comment beginning the same way as it does for tag.