Skip to content

Instantly share code, notes, and snippets.

@wise-introvert
Created December 19, 2020 08:57
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 wise-introvert/cdf4ed0d0cc7c0b3eb625df81d7107ec to your computer and use it in GitHub Desktop.
Save wise-introvert/cdf4ed0d0cc7c0b3eb625df81d7107ec to your computer and use it in GitHub Desktop.
Config I use to setup typescript in my component libraries for React
{
"compilerOptions": {
"declaration": true,
"declarationDir": "./dist",
"forceConsistentCasingInFileNames": true,
"noImplicitAny": true,
"jsx": "react-jsx",
"lib": ["es5", "dom"],
"module": "esnext",
"moduleResolution": "node",
"outDir": "./dist",
"strict": true,
"target": "es5"
},
"include": ["src/**/*.tsx"],
"exclude": ["node_modules"]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment