Skip to content

Instantly share code, notes, and snippets.

@qwertie
Last active June 30, 2018 05:37
Show Gist options
  • Select an option

  • Save qwertie/43207171e2e6fb45cfa237f2a66f0766 to your computer and use it in GitHub Desktop.

Select an option

Save qwertie/43207171e2e6fb45cfa237f2a66f0766 to your computer and use it in GitHub Desktop.
Suggested tsconfig.json
{ // TypeScript configuration file: provides options to the TypeScript
// compiler (tsc) and makes VSCode recognize this folder as a TS project,
// enabling the VSCode build tasks "tsc: build" and "tsc: watch".
"compilerOptions": {
"target": "es5", // Compatible with older browsers
"module": "umd", // Compatible with both Node.js and browser
"moduleResolution": "node", // Tell tsc to look in node_modules for modules
"sourceMap": true, // Creates *.js.map files
"jsx": "react", // Causes inline XML (JSX code) to be expanded
"strict": true, // Strict types, eg. prohibits `var x=0; x=null`
"alwaysStrict": true // Enable JavaScript's "use strict" mode
},
"include": ["**/*.ts", "**/*.tsx"],
"exclude": ["node_modules"]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment