Skip to content

Instantly share code, notes, and snippets.

@kilgarenone
Created May 20, 2019 02:49
Show Gist options
  • Save kilgarenone/da5fa979561923cece14d406a03d44d0 to your computer and use it in GitHub Desktop.
Save kilgarenone/da5fa979561923cece14d406a03d44d0 to your computer and use it in GitHub Desktop.
tsconfig.json for type-checking in separate process
{
"compilerOptions": {
// Target latest version of ECMAScript.
"target": "esnext",
// Search under node_modules for non-relative imports.
"moduleResolution": "node",
// Process & infer types from .js files.
"allowJs": true,
// Don't emit; allow Babel to transform files.
"noEmit": true,
// Enable strictest settings like strictNullChecks & noImplicitAny.
// "strict": true,
// Disallow features that require cross-file information for emit.
"isolatedModules": true,
// Import non-ES modules as default imports.
"esModuleInterop": true,
"sourceMap": true,
"jsx": "react",
// Comment this out if you aren't using Preact
"jsxFactory": "h"
},
"include": ["src"],
"exclude": ["node_modules", "build"]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment