Typescipt environment for development

$ npm install --save-dev typescript ts-node
$ npm install --save-dev @types/node @types/express

// generate default tsconfig.json
$ tsc --init


tsconfig.json

***
"rootDir": "./src",
"outDir": "./build"
***


$ ts-node index.ts


Build


package.json

***
"build": "tsc --project ./",
***


Eslint for typescript

$ npm install --save-dev eslint @typescript-eslint/parser @typescript-eslint/elslint-plugin


.eslintrc.json

{
    "parser": "@typescript-eslint/parser",
    "parserOptions" : {
        "ecmaVersion" : 2018,
        "sourceType" : "module"
    },
    "extends" : ["plugin:@typescript-eslint/recommended"],
    "env" : {"node": true},
    "rules" : {
        "indent" : "off",
        "@typescript-eslint/indent" : "off"
    }
}


Visual Studio Themes:

CTRL + P

Preferences: Open Settings (JSON)

***
// eslint
"eslint.validate": [
    "javascript",
    "javascriptreact"
],
***


Webpack & TypeScript Setup

https://www.youtube.com/watch?v=sOUhEJeJ-kI