5 ms·
The syntax plugins for Prisma ORM auto-format their schema files in a similar way [1]. It bothers me so much that I can't bring myself to use their solution - w
by krono 5y ago
The syntax plugins for Prisma ORM auto-format their schema files in a similar way [1]. It bothers me so much that I can't bring myself to use their solution - which I realise is incredibly petty :)
[1] https://github.com/prisma/docs/blob/main/content/200-concepts/100-components/01-prisma-schema/index.mdx#auto-formatting https://github.com/prisma/docs/blob/main/content/200-concept...
- tuxie_ 5y agoInteresting, I just found this discussion on the subject: https://github.com/prisma/prisma/issues/90 https://github.com/prisma/prisma/issues/90 While I don't agree with their views it may shed some light on where they are coming from.
- krono 5y agoGood find, thanks for sharing the link. I couldn't really put into words why this column style formatting bothers me so much for this type of data, but thanks to one of the comments there I think I do now: this information belongs together horizontally, but it is formatted in a vertical manner which takes more mental processing. The comment: https://github.com/prisma/prisma/issues/90#issuecomment-517515843 https://github.com/prisma/prisma/issues/90#issuecomment-5175...