Skip to content

Coding Conventions

Attilio Donà edited this page Aug 22, 2019 · 2 revisions

General

This vscode extension is written in Typescript following the coding conventions:

  • lines ends with semi-colon;
  • trimmed trailing whitespaces;
  • single quoted strings

vscode settings

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,
    },
 }
Clone this wiki locally