Created
March 10, 2020 18:46
-
-
Save jmbeach/cdc860ffde615fb81a1d59f7a5daff78 to your computer and use it in GitHub Desktop.
example tsconfig file for making type checking work with javascript project and including custom type files.
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": { | |
"allowJs": true, | |
"allowSyntheticDefaultImports": true, | |
"baseUrl": "./", | |
"checkJs": true, | |
"jsx": "react", | |
"module": "ESNext", | |
"moduleResolution": "classic", | |
"outDir": "lib", | |
"paths": { | |
"*": [ | |
"src/@types/*", | |
"node_modules/@types/*" | |
] | |
}, | |
"target": "ESNext", | |
"typeRoots": [ | |
"node_modules/@types" | |
] | |
}, | |
"include": [ | |
"./src/**/*" | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment