Skip to content

Instantly share code, notes, and snippets.

@longlho
Created March 24, 2019 19:15
Show Gist options
  • Save longlho/cc27aaa7a3678b8eb2c9b60cac001aeb to your computer and use it in GitHub Desktop.
Save longlho/cc27aaa7a3678b8eb2c9b60cac001aeb to your computer and use it in GitHub Desktop.
Sample TS Compiler Options
const CJS_CONFIG: ts.CompilerOptions = {
experimentalDecorators: true,
jsx: ts.JsxEmit.React,
module: ts.ModuleKind.ESNext,
moduleResolution: ts.ModuleResolutionKind.NodeJs,
noEmitOnError: false,
noUnusedLocals: true,
noUnusedParameters: true,
stripInternal: true,
declaration: true,
baseUrl: __dirname,
target: ts.ScriptTarget.ES2016
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment