2019-05-18 14:37:35 -04:00
|
|
|
{
|
|
|
|
|
"compilerOptions": {
|
2022-03-06 00:09:10 -05:00
|
|
|
/* Emit */
|
2022-02-28 21:40:34 -05:00
|
|
|
"target": "ES2020",
|
2022-05-18 00:48:28 -04:00
|
|
|
"lib": ["ESNext"],
|
2019-05-18 14:37:35 -04:00
|
|
|
"declaration": true,
|
2022-05-18 00:48:28 -04:00
|
|
|
// These two options will be selectively overridden in each project.
|
|
|
|
|
// Utility libraries will have source maps on, but plugins will not.
|
2021-03-17 11:25:42 -04:00
|
|
|
"declarationMap": false,
|
2022-05-18 00:48:28 -04:00
|
|
|
"sourceMap": false,
|
2022-05-17 03:21:44 -04:00
|
|
|
"jsx": "react-native",
|
2022-03-06 00:09:10 -05:00
|
|
|
"importHelpers": true,
|
|
|
|
|
"noEmitHelpers": true,
|
2022-06-15 13:15:11 -04:00
|
|
|
// Will be overridden in client projects
|
|
|
|
|
"module": "NodeNext",
|
2022-05-18 00:48:28 -04:00
|
|
|
// Avoid accidentally using this config to build
|
|
|
|
|
"noEmit": true,
|
2019-05-18 14:37:35 -04:00
|
|
|
|
|
|
|
|
/* Strict Type-Checking Options */
|
2022-03-06 00:09:10 -05:00
|
|
|
"allowUnreachableCode": false,
|
|
|
|
|
// Too hard to turn on
|
|
|
|
|
"exactOptionalPropertyTypes": false,
|
|
|
|
|
"noFallthroughCasesInSwitch": true,
|
|
|
|
|
"noImplicitOverride": true,
|
|
|
|
|
"noImplicitReturns": true,
|
|
|
|
|
// `process.env` is usually accessed as property
|
|
|
|
|
"noPropertyAccessFromIndexSignature": false,
|
|
|
|
|
"noUncheckedIndexedAccess": true,
|
|
|
|
|
/* strict family */
|
2019-05-18 14:37:35 -04:00
|
|
|
"strict": true,
|
2022-03-06 00:09:10 -05:00
|
|
|
"alwaysStrict": true,
|
|
|
|
|
"noImplicitAny": true,
|
|
|
|
|
"noImplicitThis": true,
|
2019-05-18 14:37:35 -04:00
|
|
|
"strictBindCallApply": true,
|
2022-03-06 00:09:10 -05:00
|
|
|
"strictFunctionTypes": true,
|
|
|
|
|
"strictNullChecks": true,
|
2019-05-18 14:37:35 -04:00
|
|
|
"strictPropertyInitialization": true,
|
2022-03-06 00:09:10 -05:00
|
|
|
"useUnknownInCatchVariables": true,
|
|
|
|
|
/* Handled by ESLint */
|
|
|
|
|
"noUnusedLocals": false,
|
2020-08-07 05:47:43 -04:00
|
|
|
"noUnusedParameters": false,
|
2022-03-06 00:09:10 -05:00
|
|
|
"importsNotUsedAsValues": "remove",
|
2020-08-07 05:47:43 -04:00
|
|
|
|
2022-03-06 00:09:10 -05:00
|
|
|
/* Module Resolution */
|
2022-06-15 13:15:11 -04:00
|
|
|
"moduleResolution": "NodeNext",
|
2022-03-06 00:09:10 -05:00
|
|
|
"resolveJsonModule": true,
|
2019-05-18 14:37:35 -04:00
|
|
|
"allowSyntheticDefaultImports": true,
|
|
|
|
|
"esModuleInterop": true,
|
2022-03-06 00:09:10 -05:00
|
|
|
"forceConsistentCasingInFileNames": true,
|
2021-05-14 09:36:55 -04:00
|
|
|
"isolatedModules": true,
|
2022-05-23 00:54:25 -04:00
|
|
|
"allowJs": true,
|
2022-03-06 00:09:10 -05:00
|
|
|
"skipLibCheck": true // @types/webpack and webpack/types.d.ts are not the same thing
|
2019-05-18 14:37:35 -04:00
|
|
|
},
|
2022-05-24 07:19:24 -04:00
|
|
|
"include": ["./**/*", "./**/.eslintrc.js"],
|
2022-05-23 00:54:25 -04:00
|
|
|
"exclude": [
|
|
|
|
|
"node_modules",
|
2022-05-23 03:40:53 -04:00
|
|
|
"coverage/**",
|
2022-05-23 00:54:25 -04:00
|
|
|
"**/lib/**/*",
|
|
|
|
|
"website/**",
|
|
|
|
|
"**/__mocks__/**/*",
|
2022-05-23 03:40:53 -04:00
|
|
|
"**/__fixtures__/**/*",
|
2022-05-23 00:54:25 -04:00
|
|
|
"examples/**",
|
|
|
|
|
"packages/create-docusaurus/templates/**"
|
|
|
|
|
]
|
2019-05-18 14:37:35 -04:00
|
|
|
}
|