Skip to content

Instantly share code, notes, and snippets.

@brookslybrand
Created July 12, 2021 14:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brookslybrand/618f9690e1a1a5853231f9fd416306e1 to your computer and use it in GitHub Desktop.
Save brookslybrand/618f9690e1a1a5853231f9fd416306e1 to your computer and use it in GitHub Desktop.
tsconfig examples
{
"compilerOptions": {
"target": "es5",
"lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true,
"skipLibCheck": true,
"strict": false,
"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"]
}
{
"compilerOptions": {
"lib": ["DOM", "DOM.Iterable", "ES2019"],
"esModuleInterop": true,
"jsx": "react-jsx",
"moduleResolution": "node",
"target": "es2019",
"strict": true,
"skipLibCheck": true,
"noImplicitAny": true
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment