Skip to content

Instantly share code, notes, and snippets.

@Sarghm
Created December 7, 2020 20:54
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save Sarghm/07140fcb4f835571af51b6f977a5e410 to your computer and use it in GitHub Desktop.
Save Sarghm/07140fcb4f835571af51b6f977a5e410 to your computer and use it in GitHub Desktop.
Minimal tsconfig.json file for React & TypeScript projects
{
"compilerOptions": {
"rootDir": "./src",
"outDir": "./build",
"esModuleInterop": true,
"jsx": "react",
"target": "es5",
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"skipLibCheck": true,
"allowSyntheticDefaultImports": true,
"strict": true,
"forceConsistentCasingInFileNames": true,
"module": "esnext",
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true
},
"include": [
"./src/**/*"
],
"exclude": [
"build"
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment