Created
December 19, 2020 08:57
-
-
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
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
Show hidden characters
{ | |
"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