Skip to content

Commit

Permalink
attempt fix of strictest tsconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
Konrad Jamrozik committed Jul 15, 2024
1 parent a5f02a1 commit f9bac1b
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
2 changes: 1 addition & 1 deletion eng/tools/specs-model/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"extends": [
"../tsconfig.json",
// [strictest]
"@tsconfig/strictest/tsconfig.json"
"../tsconfig_strictest.json"
],
"compilerOptions": {
"outDir": "./dist",
Expand Down
28 changes: 28 additions & 0 deletions eng/tools/tsconfig_strictest.json
Original file line number Diff line number Diff line change
@@ -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"
}

0 comments on commit f9bac1b

Please sign in to comment.