mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
- Revamping {useDefineForClassFields: true} to avoid issues with non-observable class fields in some cases (from previous commit):
```
@observer
export class CommandContainer extends React.Component<CommandContainerProps> {
// without some defined initial value "commandComponent" is non-observable for some reasons
// when tsconfig.ts has {useDefineForClassFields:false}
@observable.ref commandComponent: React.ReactNode = null;
constructor(props: CommandContainerProps) {
super(props);
makeObservable(this);
}
```
Signed-off-by: Roman <ixrock@gmail.com>
53 lines
994 B
JSON
53 lines
994 B
JSON
{
|
|
"compilerOptions": {
|
|
"baseUrl": ".",
|
|
"jsx": "react",
|
|
"target": "ES2017",
|
|
"module": "ESNext",
|
|
"lib": [
|
|
"ESNext",
|
|
"DOM",
|
|
"DOM.Iterable"
|
|
],
|
|
"moduleResolution": "Node",
|
|
"sourceMap": true,
|
|
"strict": false,
|
|
"noImplicitAny": true,
|
|
"noUnusedLocals": false,
|
|
"noImplicitReturns": false,
|
|
"experimentalDecorators": true,
|
|
"emitDecoratorMetadata": true,
|
|
"skipLibCheck": true,
|
|
"allowJs": false,
|
|
"esModuleInterop": true,
|
|
"allowSyntheticDefaultImports": true,
|
|
"traceResolution": false,
|
|
"resolveJsonModule": true,
|
|
"useDefineForClassFields": true,
|
|
"paths": {
|
|
"*": [
|
|
"node_modules/*",
|
|
"types/*"
|
|
]
|
|
}
|
|
},
|
|
"ts-node": {
|
|
"compilerOptions": {
|
|
"module": "CommonJS"
|
|
}
|
|
},
|
|
"include": [
|
|
"src/**/*",
|
|
"types/*.d.ts"
|
|
],
|
|
"exclude": [
|
|
"node_modules",
|
|
"out",
|
|
"dist",
|
|
"coverage",
|
|
"binaries",
|
|
"static",
|
|
"src/extensions/npm"
|
|
]
|
|
}
|