It can be very helpful to follow the DHIS2 style to ensure that you write clean, readable, and functional code for your DHIS2 applications.
It also installs git hooks with husky which will automatically check your code style before making a
d2-style as a development dependency:
d2-style comes with code style for a range of presets. The preset
project/react should be a good starting point for a React project, as it adds
Run this command to automatically set up the project to follow the DHIS2 code style:
Then, add the following scripts to
Try out your new scripts!