Skip to content

Instantly share code, notes, and snippets.

@bharat-tiwari
Last active April 15, 2018 14:44
Show Gist options
  • Save bharat-tiwari/f13de8a8701e1d8f4ffb514c5f268058 to your computer and use it in GitHub Desktop.
Save bharat-tiwari/f13de8a8701e1d8f4ffb514c5f268058 to your computer and use it in GitHub Desktop.
tsconfig.json for react-native project build with CRNA (Create React Native App)
{
"compilerOptions": {
"module":"es2015",
"target": "es2015",
"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"
},
"filesGlob": [
"typings/index.d.ts",
"src/**/*.ts",
"src/**/*.tsx",
"node_modules/typescript/lib/lib.es6.d.ts"
],
"types": [
"react",
"react-dom",
"react-native"
],
"exclude":[
"build",
"node_modules",
"jest.config.js",
"App.js"
],
"compileOnSave": false
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment