-
Notifications
You must be signed in to change notification settings - Fork 3
Coding Conventions
Attilio Donà edited this page Aug 22, 2019
·
2 revisions
This vscode extension is written in Typescript following the coding conventions:
- lines ends with semi-colon;
- trimmed trailing whitespaces;
- single quoted strings
This is the relevant subset of settings.json
vscode configuration related to code formatting:
{
"editor.rulers": [
80,
120
],
"javascript.format.insertSpaceBeforeFunctionParenthesis": true,
"prettier.disableLanguages": [
],
"prettier.eslintIntegration": true,
"prettier.singleQuote": true,
"prettier.trailingComma": "all",
"prettier.arrowParens": "always",
"files.trimTrailingWhitespace": true,
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true,
},
}