Skip to content

Instantly share code, notes, and snippets.

@dchima
Created February 23, 2020 16:59
Show Gist options
  • Save dchima/db2df1627e4c0557021828126f7897b1 to your computer and use it in GitHub Desktop.
Save dchima/db2df1627e4c0557021828126f7897b1 to your computer and use it in GitHub Desktop.
optimal tsconfig setup
{
"compilerOptions": {
"module": "commonjs",
"resolveJsonModule": true,
"esModuleInterop": true,
"lib": ["es6", "dom"],
"allowSyntheticDefaultImports": true,
"rootDir": ".",
"noEmit": true,
"target": "es6",
"noImplicitAny": true,
"moduleResolution": "node",
"sourceMap": true,
"outDir": "dist",
"baseUrl": ".",
"strict": true,
"typeRoots": [
"node_modules/@types"
],
"paths": {
"*": [
"node_modules/*",
"src/types/*"
],
"@/*": ["src/*"]
}
},
"include": [
"src",
"src/**/*.ts"
],
"exclude": [
"node_modules"
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment