My linter needs these new lines at the end of the file, and so do I.
VSCode ESLint has an option called autoFixOnSavethat you can try. Depending on your workflow, the ESLint CLI also has an option --fixthat you can link with git hook.
If you are just looking for some reasonable defaults , here they are:
"files.trimTrailingWhitespace": true,
"files.insertFinalNewline": true,
"files.trimFinalNewlines": true,
source
share