plugin-php icon indicating copy to clipboard operation
plugin-php copied to clipboard

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

Open jehon opened this issue 1 year ago • 2 comments

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

jehon avatar Dec 04 '23 08:12 jehon

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.

Kenneth-Sills avatar Jun 24 '24 00:06 Kenneth-Sills

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

jehon avatar Jun 24 '24 07:06 jehon