prettier / plugin-php

Prettier PHP Plugin
https://loilo.github.io/prettier-php-playground/
MIT License
1.75k stars 130 forks source link

Docs: specify if prettier follow psr-12 or something else #2288

Closed jehon closed 3 months ago

jehon commented 11 months ago

I would suggest that the Readme.md would specify if this module follow any standard...

Because I did follow up this plugin blindly and the question arise afterward :-)

Thanks in advance and have a nice day, Jean

Kenneth-Sills commented 4 months ago

Per the maintainers:

We have always used PSR / PER as guidance when making formatting decisions, but we never aimed to be fully PSR / PER compliant. Probably there are many more examples for this. To me, the idea behind this plugin is to stay reasonably close to how Prettier for JS works.

If there are conflicts with the standards and tooling you use, you'll need to resolve it through configuration - likely in those other tools, since Prettier is fairly opinionated.

jehon commented 4 months ago

Great idea! Perhaps to say that on the homepage would be a plus?