Skip to content

Commit 30bc9c1

Browse files
committed
try with temp tsconfig
1 parent eb9a4c6 commit 30bc9c1

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/docs-lint-and-validate.yaml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,31 @@ jobs:
3838
output_file: temp/extracted-code.ts
3939
block_number: 2 # Quickstart
4040

41+
- name: Create temporary tsconfig.json
42+
run: |
43+
cat > temp/tsconfig.json << EOF
44+
{
45+
"compilerOptions": {
46+
"target": "ES2020",
47+
"module": "commonjs",
48+
"strict": true,
49+
"esModuleInterop": true,
50+
"skipLibCheck": true,
51+
"forceConsistentCasingInFileNames": true,
52+
"noImplicitAny": true,
53+
"strictNullChecks": true,
54+
"noUnusedLocals": true,
55+
"noUnusedParameters": true,
56+
"noImplicitReturns": true,
57+
"noFallthroughCasesInSwitch": true
58+
},
59+
"include": ["*.ts"]
60+
}
61+
EOF
62+
63+
- name: Check TypeScript compilation
64+
run: npx tsc --noEmit --project temp/tsconfig.json
65+
4166
- name: Lint extracted examples
4267
run: npx eslint temp/*.ts --config .eslintrc
4368

0 commit comments

Comments
 (0)