Shared TypeScript config for my projects
$ npm install --save-dev @kudoo/tsconfig
tsconfig.json
{
"extends": "@kudoo/tsconfig",
}
It's also a good idea to include these scripts
"scripts": {
"type-check": "tsc --noEmit",
"type-check:watch": "npm run type-check -- --watch",
"build": "npm run build:types && npm run build:js",
"build:types": "tsc --emitDeclarationOnly",
"build:js": "babel src --out-dir lib --extensions \".ts,.tsx\" --source-maps inline",
"lint": "tslint -c tslint.json 'src/**/*.ts'",
"start": "cd lib && node index.js"
MIT