mirror of
https://github.com/go-gitea/gitea
synced 2024-12-28 09:14:37 +01:00
c0e80dbe26
1. Enable [strictFunctionTypes](https://www.typescriptlang.org/tsconfig/#strictFunctionTypes) 2. Introduce `DOMEvent` helper type which sets `e.target`. Surely not totally correct with that `Partial` but seems to work. 3. Various type-related refactors, change objects in `eventsource.sharedworker.ts` to `Map`.
36 lines
906 B
JSON
36 lines
906 B
JSON
{
|
|
"include": [
|
|
"*",
|
|
"tests/e2e/**/*",
|
|
"tools/**/*",
|
|
"web_src/js/**/*",
|
|
],
|
|
"compilerOptions": {
|
|
"target": "es2020",
|
|
"module": "esnext",
|
|
"moduleResolution": "bundler",
|
|
"lib": ["dom", "dom.iterable", "dom.asynciterable", "esnext"],
|
|
"allowImportingTsExtensions": true,
|
|
"allowJs": true,
|
|
"allowSyntheticDefaultImports": true,
|
|
"alwaysStrict": true,
|
|
"esModuleInterop": true,
|
|
"isolatedModules": true,
|
|
"noEmit": true,
|
|
"resolveJsonModule": true,
|
|
"skipLibCheck": true,
|
|
"verbatimModuleSyntax": true,
|
|
"stripInternal": true,
|
|
"strict": false,
|
|
"strictFunctionTypes": true,
|
|
"noUnusedLocals": true,
|
|
"noUnusedParameters": true,
|
|
"noPropertyAccessFromIndexSignature": false,
|
|
"exactOptionalPropertyTypes": false,
|
|
"sourceMap": true,
|
|
"types": [
|
|
"vitest/globals",
|
|
"./web_src/js/globals.d.ts",
|
|
],
|
|
}
|
|
}
|