Editing a data file via frontMatter.data.files and Dashboard > Data results in the saved/changed file being saved without "newline at the end of the file". My linting rules expect a newline, so my linting always results in an extra step to add a new line.
Would it be possible to somehow check the file before changing it and using the existing characters after the json is closed (] or }) somehow? Or maybe add a config variable that enables newline/no-newline for edited files?
Editing a data file via `frontMatter.data.files` and Dashboard > Data results in the saved/changed file being saved without "newline at the end of the file". My linting rules expect a newline, so my linting always results in an extra step to add a new line.
Would it be possible to somehow check the file before changing it and using the existing characters after the json is closed (] or }) somehow? Or maybe add a config variable that enables newline/no-newline for edited files?
<!-- github-sync-id:1285995595 -->
@davidsneighbour instead of checking the file, I'll use the files.insertFinalNewLine setting from VS Code.
@davidsneighbour instead of checking the file, I'll use the `files.insertFinalNewLine` setting from VS Code.

<!-- github-comment-id:1168315046 -->
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Editing a data file via
frontMatter.data.filesand Dashboard > Data results in the saved/changed file being saved without "newline at the end of the file". My linting rules expect a newline, so my linting always results in an extra step to add a new line.Would it be possible to somehow check the file before changing it and using the existing characters after the json is closed (] or }) somehow? Or maybe add a config variable that enables newline/no-newline for edited files?
@davidsneighbour instead of checking the file, I'll use the
files.insertFinalNewLinesetting from VS Code.