Answer the question
In order to leave comments, you need to log in
How to fix ESLint error in Vue.js + Pug project?
Can you tell me how to fix the ESLint error in a Vue.js + Pug project?
In JS, this is done, for example: // eslint-disable-next-line
Let's say there is a string that is more than 100 characters:
img(:src='require(`@/assets/img/very-long-img-name${i + 1}.gif`)', alt='', v-if='active')
Answer the question
In order to leave comments, you need to log in
Obviously split the string by attributes
img(
v-if="active",
:src="require(`@/assets/img/very-long-img-name${i + 1}.gif`)",
alt="")
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question