1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00
lens/tsconfig.json
Roman 6addce21fb - Merging interfaces & classses to avoid overwriting fields from parent's super(data)-call with Object.assign(this, data). Otherwise use "declare" keyword at class field definition.
- 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>
2021-05-14 16:04:30 +03:00

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"
]
}