The following prototype will allow us to quickly bootstrap Node projects in the future, this allows us to ensure consistency across our Node repositories.
We use ESlint as both a formatter and code quality assurance, while using Prettier to apply formatting on save.
-
Install the Prettier VScode extenstion.
-
Open your user settings inside VScode and search for: format
-
Select your Default Formatter as:
Prettier - Code formatter
. -
Click the checkbox under:
Format on Save
. -
Reload VScode.