Skip to content

vue/html-indent Ignore the format of the comment content #1957

@1593292349

Description

@1593292349

What rule do you want to change?
I want to be able to ignore error messages for commenting code

Does this change cause the rule to produce more or fewer warnings?
fewer

How will the change be implemented? (New option, new default behavior, etc.)?
default behavior

Please provide some example code that this change will affect:

<template>
	<div class="app">
		<ResizeObserver
			v-for="i in 1"
			:key="i"
			v-slot="size"
		>
<!--			<Icon-->
<!--				name="bi-alarm"-->
<!--				size="20"-->
<!--				color="red"-->
<!--				class="test1"-->
<!--				:class="['test2',{active:true}]"-->
<!--				style="font-weight:500"-->
<!--				:style="{background:'#eee'}"-->
<!--				@click="clickFn"-->
<!--			/>-->
			<Spin
				type="dot"
				size="20"
				color="red"
				class="test1"
				:class="['test2',{active:true}]"
				style="font-weight:500"
				:style="{background:'#eee'}"
				@click="clickFn"
			/>
			<div>
				{{size}}
			</div>
		</ResizeObserver>
	</div>
</template>

What does the rule currently do for this code?
ESLint: Expected indentation of 3 tabs but found 0 tabs.(vue/html-indent)

What will the rule do after it's changed?
No error message

Additional context

1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions