我试图找出一个反应原生的设置,到目前为止,下面的tsconfig似乎工作,我错过了什么或使用不必要的位?因为这主要是从反应中复制过来的。这可以针对反应本地更优化吗?
{
"compilerOptions": {
"target": "es6",
"module": "commonjs",
"lib": [
"es7"
],
"allowJs": true,
"checkJs": true,
"jsx": "react-native",
"removeComments": true,
"outDir": "./dist",
"typeRoots": [
"node_modules/@types",
"./typings"
],
"noFallthroughCasesInSwitch": true,
"noImplicitReturns": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"allowSyntheticDefaultImports": true,
"strict": true
},
"exclude": [
"./node_modules",
"./android",
"./ios",
"./assets",
"./__tests__",
"./dist"
],
"include": [
"./src"
]
}