Skip to content

html-indent: extra warning on line with comment #330

Closed
@usernamehw

Description

@usernamehw
  • 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions