mirror of
https://github.com/HackPlan/polaris-react.git
synced 2026-01-12 22:44:36 +08:00
- enable esModuleInterop (it's enabled in the base config) - enable strict mode (it's enabled in the base config) - Explitly opt-out of strictFunctionTypes and strictPropertyInitialization which were both enabled by strict mode as we don't yet support them yet (there are numerious violations but we can tidy them up later
18 lines
568 B
JSON
18 lines
568 B
JSON
{
|
|
"extends": "@shopify/typescript-configs/library",
|
|
"compilerOptions": {
|
|
"baseUrl": "./src",
|
|
"rootDir": "./",
|
|
"declarationDir": "types",
|
|
"declarationMap": false,
|
|
"jsx": "react-native",
|
|
// strictFunctionTypes & strictPropertyInitialization are implictly
|
|
// enabled by strict mode but we're not yet compliant, so disable for now
|
|
"strictFunctionTypes": false,
|
|
"strictPropertyInitialization": false,
|
|
"importHelpers": true,
|
|
"skipLibCheck": false
|
|
},
|
|
"include": ["./config/typescript/**/*", "./src/**/*", "./tests/**/*"]
|
|
}
|