Skip to content

Instantly share code, notes, and snippets.

@bharat-tiwari
Last active November 18, 2019 17:38
Show Gist options
  • Save bharat-tiwari/9d129349f5f1c3d039a02a515b8eeb00 to your computer and use it in GitHub Desktop.
Save bharat-tiwari/9d129349f5f1c3d039a02a515b8eeb00 to your computer and use it in GitHub Desktop.
RN with typescript tsconfig
{
"compilerOptions": {
"target": "es5" /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017','ES2018' or 'ESNEXT'. */,
"module": "commonjs" /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */,
"jsx": "react",
"rootDir": "src",
"outDir": "build",
"allowSyntheticDefaultImports": true,
"noImplicitAny": true,
"sourceMap": true,
"experimentalDecorators": true,
"preserveConstEnums": true,
"allowJs": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noImplicitReturns": true,
"skipLibCheck": true,
"moduleResolution": "node",
"baseUrl": "./" /* Base directory to resolve non-absolute module names. */,
"esModuleInterop": true
},
"filesGlob": [
"typings/index.d.ts",
"src/**/*.ts",
"src/**/*.tsx",
"node_modules/typescript/lib/lib.es6.d.ts"
],
"types": [
"react",
"react-dom",
"react-native",
"react-test-renderer",
"jest"
],
"exclude": [
"build",
"node_modules",
"babel.config.js",
".eslintrc.js",
".prettirerrc.js",
"metro.config.js",
"jest.config.js",
"index.js",
"src/app/App.js"
],
"compileOnSave": false
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment