C
C
cupacabka2022-01-29 14:54:48
JavaScript
cupacabka, 2022-01-29 14:54:48

How to set up ESLint?

Please tell me which setting in ESLint is responsible for controlling empty lines in ESLint at the end of the file. I need to turn it off so that I can upload the file to git, and so that git displays that the file has empty lines at the end of the code. By default or with my settings, ESLint allows you to put one empty line at the end of the code, but one empty line is truncated in git. And if you leave two lines empty in the IDE, then ESLint already swears.
There are two empty lines at the end of the code, and ESLint swears.
61f52aaf6b2c6731238793.jpeg
How to remove such control so that you can put two or more empty lines at the end of the code?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexey Yarkov, 2022-01-29
@yarkov

Nothing is truncated in git, it's your fantasy

V
Vasily Bannikov, 2022-01-29
@vabka

Don't worry - this is normal git behavior.
One empty line is enough

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question