Code Style
Project configured to use following rule chain:
.editorconfig -> .prettierrc -> .eslint
- .editorconfig will tell your editor how to handle spaces and newlines
- .prettierrc will add some newlines, spaces and brackets to make code easier to read
- .eslintrc will strict code to the rules, to exclude oblivious errors
Recommended VSCode settings plugin:
"editor.tabSize": 2,
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true,
},
"editor.defaultFormatter": "esbenp.prettier-vscode",
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},