File size: 933 Bytes
1e92f2d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{
  "compilerOptions": {
    "target": "ESNEXT",
    "module": "es2020",
    "moduleResolution": "node",
    "jsx": "preserve",
    "noEmit": true,
    "strict": true,
    // @TODO: It's mandatory to disable this strict check at the moment
    // otherwise we have to type every import we do. The migration is an
    // incremental process so it happens that we import JavaScript module
    // from TypeScript one. The compiler always translates those imports
    // as impliciy any.
    "noImplicitAny": false,
    "noUnusedLocals": true,
    "noUnusedParameters": true,
    "noImplicitReturns": true,
    "noFallthroughCasesInSwitch": true,
    "allowSyntheticDefaultImports": true,
    "skipLibCheck": true
  },
  "exclude": [
    "examples/hooks-next/next-env.d.ts",
    // @TODO: we need to re-enable type checking in the React Native example
    // when the RN types work with React 18.
    "examples/hooks-react-native"
  ]
}