Skip to content

Instantly share code, notes, and snippets.

@Happytreat
Created May 7, 2020 21:44
Show Gist options
  • Save Happytreat/525f9a16a1726b21ca4d1f91a8c3cabf to your computer and use it in GitHub Desktop.
Save Happytreat/525f9a16a1726b21ca4d1f91a8c3cabf to your computer and use it in GitHub Desktop.
Setup Typescript project
{
...
"scripts": {
"start": "tsc && node ./dist/index.js",
"dev": "ts-node-dev --no-notify --respawn --transpileOnly src/index"
},
"dependencies": {},
"devDependencies": {
"@types/node": "^13.13.4",
"ts-node-dev": "^1.0.0-pre.44",
"tslint": "^6.1.2",
"tslint-config-airbnb": "^5.11.2",
"typescript": "^3.8.3"
}
}
{
"compilerOptions": {
"target": "es6",
"module": "commonjs",
"strict": true,
"outDir": "./dist",
"sourceMap": true,
"esModuleInterop": true,
"resolveJsonModule": true
},
"include": ["src/*"],
"exclude": ["node_modules", "**/*.spec.ts"]
}
{
"defaultSeverity": "error",
"extends": "tslint-config-airbnb",
"jsRules": {},
"rules": {
"eofline": false
},
"rulesDirectory": []
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment