Skip to content

Instantly share code, notes, and snippets.

@jmbeach
Created March 10, 2020 18:46
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 jmbeach/cdc860ffde615fb81a1d59f7a5daff78 to your computer and use it in GitHub Desktop.
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.
{
"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