We use formatting and linting tools to help write consistent and clean code. You still need to take our clean coding principles to heart, but these tools help with git diffs and preventing some bugs.
Code Consistency Presentation.key
Code Consistency Presentation.pptx
We have a shared prettier and eslint config here: https://github.com/IGNE-Agency/code-consistency
These configs are exposed as npm packages and should eventually be used by all our projects.
NPM links:
Install the required plugins:
esbenp.prettier-vscodedbaeumer.vscode-eslintPress cmnd + , to open settings
Then click this icon in the top right:

Alternatively press cmnd + shift + P, type user setings and choose Preferences: Open user settings (JSON).
{
"editor.defaultFormatter": "esbenp.prettier-vscode",
}
// Optional, but recommended:
{
"editor.formatOnPaste": true,
"editor.formatOnSave": true,
}