Last active
June 30, 2018 05:37
-
-
Save qwertie/43207171e2e6fb45cfa237f2a66f0766 to your computer and use it in GitHub Desktop.
Suggested tsconfig.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { // 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