* Upgrade to TypeScript 7 for massive tsc speed gains Those on WebStorm will want to upgrade to EAP to reap the benefits of the new TSGo compiler Some things (module-api & shared-components) which utilise unplugin-dts (and api-extractor) need to hold a copy of ts6 for its conventional lib format and API. TS7 ships with no API until TS7.1. Other things which use eslint also need ts6 for typescript-eslint. Some type changes were necessary as TS7 caught some issues. * Add knip exception * Fix bad merge
40 lines
1.3 KiB
JSON
40 lines
1.3 KiB
JSON
{
|
|
"compilerOptions": {
|
|
"allowImportingTsExtensions": true,
|
|
"experimentalDecorators": false,
|
|
"emitDecoratorMetadata": false,
|
|
"resolveJsonModule": true,
|
|
"esModuleInterop": true,
|
|
"useDefineForClassFields": true,
|
|
"module": "preserve",
|
|
"moduleResolution": "bundler",
|
|
"target": "es2022",
|
|
"noUnusedLocals": true,
|
|
"sourceMap": false,
|
|
"noEmit": true,
|
|
"declaration": true,
|
|
"jsx": "react",
|
|
"lib": ["es2022", "es2024.promise", "dom", "dom.iterable", "ESNext.Collection"],
|
|
"strict": true,
|
|
"types": ["node", "modernizr"],
|
|
"paths": {
|
|
"jest-matrix-react": ["./test/test-utils/jest-matrix-react"],
|
|
"test-utils-rtl": ["./test/test-utils/jest-matrix-react"],
|
|
"test-utils": ["./test/test-utils"],
|
|
"test-utils/*": ["./test/test-utils/*"],
|
|
"jest-mock-vitest-adapter": ["./test/setup/adapter.ts"]
|
|
},
|
|
"skipLibCheck": true
|
|
},
|
|
"include": [
|
|
"./node_modules/matrix-js-sdk/src/@types/*.d.ts",
|
|
"./src/**/*.ts",
|
|
"./src/**/*.tsx",
|
|
"./test/**/*.ts",
|
|
"./test/**/*.tsx",
|
|
"./scripts/*.ts",
|
|
"./@types/*.d.ts",
|
|
"./webpack.config.ts"
|
|
]
|
|
}
|