M
M
myskypesla2018-07-04 01:40:06
Vue.js
myskypesla, 2018-07-04 01:40:06

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

1 answer(s)
R
Roman Kitaev, 2018-07-04
@deliro

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 question

Ask a Question

731 491 924 answers to any question