Skip to content

Commit 3d47812

Browse files
committed
Add tsconfig.json for pr-checks
1 parent 56ebdff commit 3d47812

File tree

2 files changed

+34
-1
lines changed

2 files changed

+34
-1
lines changed

pr-checks/sync.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ function getSetupSteps(checkSpecification: Specification): {
340340
steps: any[];
341341
} {
342342
let inputs: WorkflowInputs = {};
343-
const steps = [];
343+
const steps: any[] = [];
344344

345345
for (const language of Object.values(KnownLanguage).sort()) {
346346
const setupSpec = languageSetups[language];

pr-checks/tsconfig.json

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"compilerOptions": {
3+
/* Basic Options */
4+
"lib": ["ES2022"],
5+
"target": "ES2022",
6+
"module": "commonjs",
7+
"rootDir": "..",
8+
"sourceMap": false,
9+
"noEmit": true,
10+
11+
/* Strict Type-Checking Options */
12+
"strict": true, /* Enable all strict type-checking options. */
13+
"noImplicitAny": false, /* Raise error on expressions and declarations with an implied 'any' type. */
14+
"strictNullChecks": true, /* Enable strict null checks. */
15+
"strictFunctionTypes": true, /* Enable strict checking of function types. */
16+
"strictBindCallApply": true, /* Enable strict 'bind', 'call', and 'apply' methods on functions. */
17+
"strictPropertyInitialization": true, /* Enable strict checking of property initialization in classes. */
18+
"noImplicitThis": true, /* Raise error on 'this' expressions with an implied 'any' type. */
19+
"alwaysStrict": true, /* Parse in strict mode and emit "use strict" for each source file. */
20+
21+
/* Additional Checks */
22+
"noUnusedLocals": false, /* Report errors on unused locals. */
23+
"noUnusedParameters": false, /* Report errors on unused parameters. */
24+
"noImplicitReturns": true, /* Report error when not all code paths in function return a value. */
25+
"noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */
26+
27+
/* Module Resolution Options */
28+
"esModuleInterop": true, /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */
29+
"resolveJsonModule": true,
30+
},
31+
"include": ["./*.ts", "../src/**/*.ts"],
32+
"exclude": ["node_modules"]
33+
}

0 commit comments

Comments
 (0)