I have an issue with prettier + eslint in a Vue project with Typescript. Everything is working as expected except one thing, insert new line at the end of the file.
Insert `␍⏎`eslintprettier/prettier
Newline required at end of file but not found.eslinteol-last
I am using VSCode. These are my settings:
I have vetur as default formatter for vue files:
"[vue]": {
"editor.defaultFormatter": "octref.vetur"
}
In vetur, I have the formatters this way:
- Default formatter for JS: prettier-eslint
- Default formatter for TS: prettier-tslint
But when I save the `.vue file, everything is formatted but no new line is at the end of the file. Why not? I can enable this settings in VSCode:
But I think it should not be necessary, prettier should do it.
Am I missing anything?