mirror of
https://github.com/expo/react-mapbox-gl.git
synced 2026-11-14 19:11:41 -10:00
Remove rootDir from example/tsconfig.json Inclusion was causing TS6059 'rootDir' is expected to contain all source files error. Suggestion to remove from: https://github.com/wmonk/create-react-app-typescript/pull/74 Change tsconfig.json compiler target to es7 With target set to es6, was receiving error: ERROR in /home/jthetzel/src/react-mapbox-gl/src/layer.ts (206,22): error TS2339: Property 'includes' does not exist on type 'number[]'. Suggestion to try es7: https://github.com/AngularClass/angular-starter/issues/931#issuecomment-244001423 Removing carets from devDependencies Presume this is preferred, as master branch does not use carets.
26 lines
580 B
JSON
26 lines
580 B
JSON
{
|
|
"compilerOptions": {
|
|
"declaration": false,
|
|
"experimentalDecorators": true,
|
|
"forceConsistentCasingInFileNames": true,
|
|
"jsx": "react",
|
|
"lib": ["es7", "dom"],
|
|
"module": "commonjs",
|
|
"moduleResolution": "node",
|
|
"noImplicitReturns": true,
|
|
"noImplicitThis": true,
|
|
"noImplicitAny": true,
|
|
"noUnusedLocals": true,
|
|
"outDir": "./dist",
|
|
"removeComments": true,
|
|
"sourceMap": true,
|
|
"strictNullChecks": true,
|
|
"suppressImplicitAnyIndexErrors": true,
|
|
"target": "es5"
|
|
},
|
|
"exclude": [
|
|
"node_modules",
|
|
"static"
|
|
]
|
|
}
|