Files
konva/tsconfig.json

32 lines
1.1 KiB
JSON

{
"compilerOptions": {
"outDir": "lib",
"target": "ES2018",
"lib": ["ES2019", "dom"],
"module": "nodenext",
"noUncheckedSideEffectImports": true,
"rewriteRelativeImportExtensions": true,
"isolatedModules": true,
"erasableSyntaxOnly": true,
"verbatimModuleSyntax": true,
// "sourceMap": true,
"noEmitOnError": true,
"declaration": true,
"removeComments": false,
"strict": true,
"noImplicitAny": false,
"noImplicitThis": false,
"useUnknownInCatchVariables": false,
"skipLibCheck": true,
// probably we would never enable this one
// because it's too strict, konva generates many functions on the runtime
"strictPropertyInitialization": false,
// our initializer `field: GetSet<string, this>` will cause `field` to
// be set to undefined if target>=ES2022, this also affects tools like `tsx` running locally
// https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-7.html#the-usedefineforclassfields-flag-and-the-declare-property-modifier
"useDefineForClassFields": false
},
"include": ["src"]
}