S
S
Sergey2020-07-31 11:23:15
Pug
Sergey, 2020-07-31 11:23:15

Pug-lint complains about invalid line break "Invalid line break"?

Pug-lint is integrated into the compiler, and when checking the layout of the .pug file with the gulp lint:pug command, it gives the same incomprehensible error "INVALID LINE BREAK":

5f23d21aa2fe1825488773.jpeg

Everything is in order with the layout:

5f23d2b010e35001378563.jpeg

I would not want to disable linter.
Please tell me how to solve this problem?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
lebigmac, 2020-10-15
@lebigmac

In the .pug-lint linter configuration file, the validateLineBreaks option. Look at the line endings in your file and put it

{
  "validateLineBreaks": "CRLF"
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question