Skip to content

Instantly share code, notes, and snippets.

@Wonder2210
Created May 29, 2020 03:27
Show Gist options
  • Save Wonder2210/1fdab079504b8b7be752776404759ec4 to your computer and use it in GitHub Desktop.
Save Wonder2210/1fdab079504b8b7be752776404759ec4 to your computer and use it in GitHub Desktop.
Tsconfig for most cases
{
"compilerOptions": {
"target": "es5", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', or 'ESNEXT'. */
"module": "commonjs", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', 'es2020', or 'ESNext'. */
/* Concatenate and emit output to single file. */
"outDir": "dist", /* Redirect output structure to the directory. */
"rootDir": "src", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */
"strict": true, /* Enable all strict type-checking options. */
"moduleResolution": "node", /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */
"skipLibCheck": true, /* Skip type checking of declaration files. */
"forceConsistentCasingInFileNames": true /* Disallow inconsistently-cased references to the same file. */
},
"files": ["./index.d.ts"]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment