Created
November 22, 2021 04:43
-
-
Save theprantadutta/4dd35e32555aa59093fba8b5b407b53b to your computer and use it in GitHub Desktop.
Typescript Config File for Node.js and React
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"compilerOptions": { | |
"target": "es6", | |
"module": "commonjs", | |
"lib": ["dom", "es6", "es2017", "esnext.asynciterable"], | |
"skipLibCheck": true, | |
"sourceMap": true, | |
"outDir": "./dist", | |
"moduleResolution": "node", | |
"removeComments": true, | |
"noImplicitAny": true, | |
"strictNullChecks": true, | |
"strictFunctionTypes": true, | |
"noImplicitThis": true, | |
"noUnusedLocals": true, | |
"noUnusedParameters": true, | |
"noImplicitReturns": true, | |
"noFallthroughCasesInSwitch": true, | |
"allowSyntheticDefaultImports": true, | |
"esModuleInterop": true, | |
"emitDecoratorMetadata": true, | |
"experimentalDecorators": true, | |
"resolveJsonModule": true, | |
"baseUrl": "." | |
}, | |
"exclude": ["node_modules"], | |
"include": ["./src/**/*.tsx", "./src/**/*.ts"] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"compilerOptions": { | |
"target": "es5", | |
"lib": ["dom", "dom.iterable", "esnext"], | |
"allowJs": true, | |
"skipLibCheck": true, | |
"strict": true, | |
"noImplicitAny": true, | |
"strictNullChecks": true, | |
"strictFunctionTypes": true, | |
"noImplicitThis": true, | |
"noImplicitReturns": true, | |
"noFallthroughCasesInSwitch": true, | |
"forceConsistentCasingInFileNames": true, | |
"noEmit": true, | |
"esModuleInterop": true, | |
"module": "esnext", | |
"moduleResolution": "node", | |
"resolveJsonModule": true, | |
"isolatedModules": true, | |
"jsx": "preserve" | |
}, | |
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"], | |
"exclude": ["node_modules"] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment