From f9bac1b001d13d73e9f106fe5e6fdb2382cf8841 Mon Sep 17 00:00:00 2001 From: Konrad Jamrozik Date: Sun, 14 Jul 2024 23:33:44 -0700 Subject: [PATCH] attempt fix of strictest tsconfig --- eng/tools/specs-model/tsconfig.json | 2 +- eng/tools/tsconfig_strictest.json | 28 ++++++++++++++++++++++++++++ 2 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 eng/tools/tsconfig_strictest.json diff --git a/eng/tools/specs-model/tsconfig.json b/eng/tools/specs-model/tsconfig.json index bbdcc65477c46..24ff1fb5e4679 100644 --- a/eng/tools/specs-model/tsconfig.json +++ b/eng/tools/specs-model/tsconfig.json @@ -2,7 +2,7 @@ "extends": [ "../tsconfig.json", // [strictest] - "@tsconfig/strictest/tsconfig.json" + "../tsconfig_strictest.json" ], "compilerOptions": { "outDir": "./dist", diff --git a/eng/tools/tsconfig_strictest.json b/eng/tools/tsconfig_strictest.json new file mode 100644 index 0000000000000..90de2e276bc85 --- /dev/null +++ b/eng/tools/tsconfig_strictest.json @@ -0,0 +1,28 @@ +// Copy-pasted from https://www.npmjs.com/package/@tsconfig/strictest +// Because including with "extends" didn't work in CI. Got following error: +// Error: tsconfig.json(5,5): error TS6053: File '@tsconfig/strictest/tsconfig.json' not found. +// See https://github.com/Azure/azure-rest-api-specs/actions/runs/9934716074/job/27439571615 +{ + "compilerOptions": { + "strict": true, + "allowUnusedLabels": false, + "allowUnreachableCode": false, + "exactOptionalPropertyTypes": true, + "noFallthroughCasesInSwitch": true, + "noImplicitOverride": true, + "noImplicitReturns": true, + "noPropertyAccessFromIndexSignature": true, + "noUncheckedIndexedAccess": true, + "noUnusedLocals": true, + "noUnusedParameters": true, + + "isolatedModules": true, + + "checkJs": true, + + "esModuleInterop": true, + "skipLibCheck": true + }, + "$schema": "https://json.schemastore.org/tsconfig", + "_version": "2.0.0" +}