fflib-apex-common icon indicating copy to clipboard operation
fflib-apex-common copied to clipboard

Format the source code with the prettier-plugin-apex

Open jairzh opened this issue 4 years ago • 4 comments

The prettier-plugin-apex is a great tool that can help team to focus on the code not style things.

Can you use this plugin to format the source code?

jairzh avatar Apr 08 '20 13:04 jairzh

It would be nice to have one commit reformatting the whole source of the repo into a single formatting. Now I sometimes struggle with which styling I need to apply.

wimvelzeboer avatar Apr 15 '20 19:04 wimvelzeboer

@ImJohnMDaniel @stohn777 thoughts?

afawcett avatar Jul 20 '20 19:07 afawcett

Seeing a lot of PR approvals and merges today, when this phase is concluded & stabilized, we can conduct an all-inclusive insignificant code refactoring, and commit with proper tagging.

stohn777 avatar Jul 20 '20 23:07 stohn777

I want to throw https://editorconfig.org/ in as well so that the common IDEs just 'do the right thing'. According to the docs, it sounds like Prettier and EditorConfig get along with one another.

daveespo avatar Jul 21 '20 00:07 daveespo