Answer the question
In order to leave comments, you need to log in
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.
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
Don't worry - this is normal git behavior.
One empty line is enough
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question