it-at-m / opensource.muenchen.de

Content for opensource.muenchen.de
https://opensource.muenchen.de
MIT License
14 stars 8 forks source link

Add prettier for formatting #159

Open eidottermihi opened 2 months ago

eidottermihi commented 2 months ago

We could add prettier as devDependency to ensure proper formatting, e.g. including a prettier --check on build time.

This would need some more docs for developers/contributors on how to:

klml commented 1 month ago

@eidottermihi is there a config possibility to config prettier? (I would prefer __Contributions__ befor **Contributions**)

eidottermihi commented 1 month ago

Prettier itself is very "opinionated" and therefore only has a handful options, for those we are using the it@M default config defined in https://github.com/it-at-m/itm-prettier-codeformat/blob/main/src/index.json

For __Contributions__ vs **Contributions** - i think this cannot be configured as there is no option for this: https://prettier.io/docs/en/options