New formatter for frontend code

6 views
Skip to first unread message

Nikita Vorobyev

unread,
Mar 12, 2024, 12:49:51 PM3/12/24
to oppi...@googlegroups.com

Hi all!

I've just enabled the prettier formatter in our codebase which you can read more about on this wiki page. If you have an open PR you will probably have merge conflicts. To resolve them merge the develop branch applying your changes and then run prettier. To do it run git fetch -ap upstream && git merge upstream/develop --strategy-option ours && npx prettier . --write. Drop me a message if you struggle after this change.

Thanks,
Nikita.

Nikita Vorobyev

unread,
Mar 12, 2024, 4:56:50 PM3/12/24
to oppi...@googlegroups.com
If you face problems with prettier while committing code, and the problems are not related to the code format, try running ../oppia_tools/yarn-<yarn version>/bin/yarn install as per this instruction.
Reply all
Reply to author
Forward
0 new messages