Skip to content

Issue: Honour file ending rules in data files #364

@davidsneighbour

Description

@davidsneighbour

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions