Skip to content

Adopt prettier for auto-formatting #328

@n1xx1

Description

@n1xx1

https://prettier.io/

Currently all the files are manually formatted, which is fine but is time consuming and you have to rely on other people following the correct standard as the rest of the project. Prettier fixes this making it automatic, usually it's setup to automatically format the code on save.

Prettier is opinionated so there aren't many customization options. But the ones available should be good enough.

I also think this is the perfect time to adopt since it's before a major release and just after a restructuring. Also there are more people in the team and some may be less experienced in writing code, or knowing how to keep a good "formatting hygene".

Possibile Issues

Something like the multiblock definition may be better left with manual formatting. In that case you can opt out of formatting for a specific statement, if needed.

It requires people to setup prettier on their machine, but since most of the team is already on VS Code it should be a non issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions