X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Ftsconfig.json;h=1668cfced03d1c35a4a4944638bde0849cafea5a;hb=d2f8170d403422ce86be2257f873c5a2c84fe94d;hp=60c343867496496f0b30648622839a5b941f7c11;hpb=3ea9a1c311c3e3c55fb95560d4dd99a77c52df4a;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/tsconfig.json b/client/tsconfig.json index 60c343867..1668cfced 100644 --- a/client/tsconfig.json +++ b/client/tsconfig.json @@ -1,32 +1,102 @@ { "compileOnSave": false, "compilerOptions": { + "downlevelIteration": true, "outDir": "./dist/out-tsc", "sourceMap": true, "declaration": false, "moduleResolution": "node", - "emitDecoratorMetadata": true, + "module": "es2020", "experimentalDecorators": true, - "target": "es5", + "noImplicitAny": true, + "noImplicitThis": true, + "suppressImplicitAnyIndexErrors": true, + "alwaysStrict": true, + "importHelpers": true, + "allowSyntheticDefaultImports": true, + "strictBindCallApply": true, + "target": "ES2022", "typeRoots": [ "node_modules/@types" ], "lib": [ + "ES2021.Intl", + "es2018", "es2017", "es2016", "es2015", "dom" ], - "baseUrl": "src", + "baseUrl": "./", "paths": { - "@app/*": [ "app/*" ], - "video.js": [ "../node_modules/video.js/dist/alt/video.core.js" ], - "fs": [ "./shims/noop" ], - "http": [ "./shims/http" ], - "https": [ "./shims/https" ], - "path": [ "./shims/path" ], - "stream": [ "./shims/noop" ], - "crypto": [ "./shims/noop" ] - } + "hls.js": [ + "node_modules/hls.js/dist/hls.light" + ], + "video.js": [ + "node_modules/video.js/core" + ], + "@app/*": [ + "src/app/*" + ], + "@shared/models/*": [ + "../shared/models/*" + ], + "@shared/models": [ + "../shared/models" + ], + "@shared/core-utils": [ + "../shared/core-utils" + ], + "@shared/core-utils/*": [ + "../shared/core-utils/*" + ], + "@shared/typescript-utils": [ + "../shared/typescript-utils" + ], + "@shared/typescript-utils/*": [ + "../shared/typescript-utils/*" + ], + "@root-helpers/*": [ + "src/root-helpers/*" + ], + "fs": [ + "src/shims/noop.ts" + ], + "http": [ + "src/shims/http.ts" + ], + "https": [ + "src/shims/https.ts" + ], + "path": [ + "src/shims/path.ts" + ], + "stream": [ + "src/shims/stream.ts" + ], + "crypto": [ + "src/shims/noop.ts" + ] + }, + "useDefineForClassFields": false + }, + "files": [ + "src/polyfills.ts" + ], + "include": [ + "src/main*.ts", + "src/**/*.d.ts", + "src/shims/*.ts" + ], + "exclude": [ + "../node_modules", + "../server", + "node_modules" + ], + "angularCompilerOptions": { + "strictInjectionParameters": true, + "fullTemplateTypeCheck": true, + "strictTemplates": true, + "enableI18nLegacyMessageIdFormat": false } }