-
-
Notifications
You must be signed in to change notification settings - Fork 663
-
-
Notifications
You must be signed in to change notification settings - Fork 663
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[vue/html-indent] Unexpected indentation level when element follows mustache tag. #780
Comments
I'm running into the same thing. Any suggestions? |
Hello. |
Hello, It doesnt seem to be related to mustaches, but generally with text not wrapped by a tag Below is a sample of my code before updating to latest <label class="label-checkbox">
Text not wrapped by an element
<input
type="checkbox"
class="checkbox"
v-validate="'required'"
data-vv-as="Accept"
v-model="formData.accepted"
name="accepted"
:class="{ 'has-error': errors.has(`${scope}.accepted`) }"
:disabled="submitting"
>
<div class="checkbox-indicator" />
</label> I then run development server and received indentation warnings on above sample. The warning was suggesting to indent the input tag 39 spaces instead of 10 it was originally at. I let it auto fix the problem and the result was: <label class="label-checkbox">
Text not wrapped by an element
<input
type="checkbox"
class="checkbox"
v-validate="'required'"
data-vv-as="Accept"
v-model="formData.accepted"
name="accepted"
:class="{ 'has-error': errors.has(`${scope}.accepted`) }"
:disabled="submitting"
>
<div class="checkbox-indicator" />
</label> In order to temporary fix it i had to wrap the text with an element <label class="label-checkbox">
<span>Text not wrapped by an element</span>
<input
type="checkbox"
class="checkbox"
v-validate="'required'"
data-vv-as="Accept"
v-model="formData.accepted"
name="accepted"
:class="{ 'has-error': errors.has(`${scope}.accepted`) }"
:disabled="submitting"
>
<div class="checkbox-indicator" />
</label> After that the warning disappeared |
@lilisgeorge |
@ota-meshi The project is setup on 2 desktop computers. One at home and the other at work. I have updated both computer dependencies. On home pc i did On my work pc i receive no errors but in my home pc I still get linting errors. |
Hello, |
Woohoo this was indeed fixed in 5.1.0, thank you! |
Tell us about your environment
Please show your full configuration:
What did you do?
On file:
What did you expect to happen?
What actually happened?
The text was updated successfully, but these errors were encountered: