Skip to content

Instantly share code, notes, and snippets.

@bennycode
Created April 12, 2022 09:33
Show Gist options
  • Save bennycode/8f768a942446a53e9773374081c351a2 to your computer and use it in GitHub Desktop.
Save bennycode/8f768a942446a53e9773374081c351a2 to your computer and use it in GitHub Desktop.
General tsconfig that works with Node.js & React
{
"compilerOptions": {
"allowJs": true,
"allowSyntheticDefaultImports": true,
"alwaysStrict": true,
"declaration": false,
"downlevelIteration": true,
"emitDecoratorMetadata": true,
"esModuleInterop": true,
"experimentalDecorators": true,
"forceConsistentCasingInFileNames": true,
"jsx": "react",
"lib": [
"dom",
"esnext",
"dom.iterable"
],
"module": "esnext",
"moduleResolution": "node",
"noEmitOnError": true,
"noImplicitAny": true,
"noImplicitReturns": true,
"noUnusedLocals": true,
"outDir": "dist",
"resolveJsonModule": true,
"rootDirs": [
"src"
],
"sourceMap": true,
"target": "es2017"
},
"exclude": [
"node_modules"
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment