Skip to content

Commit 762288b

Browse files
committed
Add tsconfig.json file for scripts directory
This will fix linting errors when `lint-staged` is run and there are changed files in the `scripts` directory.
1 parent 1cce7ae commit 762288b

3 files changed

Lines changed: 10 additions & 4 deletions

File tree

extensions/ql-vscode/.eslintrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module.exports = {
33
parserOptions: {
44
ecmaVersion: 2018,
55
sourceType: "module",
6-
project: ["tsconfig.json", "./src/**/tsconfig.json", "./gulpfile.ts/tsconfig.json"],
6+
project: ["tsconfig.json", "./src/**/tsconfig.json", "./gulpfile.ts/tsconfig.json", "./scripts/tsconfig.json"],
77
},
88
plugins: ["@typescript-eslint"],
99
env: {

extensions/ql-vscode/scripts/fix-scenario-file-numbering.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import * as fs from 'fs-extra';
1414
import * as path from 'path';
1515

1616
if (process.argv.length !== 3) {
17-
console.error('Expected 1 argument - the scenario name')
17+
console.error('Expected 1 argument - the scenario name');
1818
}
1919

2020
const scenarioName = process.argv[2];
@@ -39,7 +39,7 @@ async function fixScenarioFiles() {
3939
});
4040

4141
let index = 0;
42-
for (let file of orderedFiles) {
42+
for (const file of orderedFiles) {
4343
const ext = path.extname(file);
4444
if (ext === '.json') {
4545
const fileName = path.basename(file, ext);
@@ -66,7 +66,7 @@ async function fixScenarioFiles() {
6666
await fs.writeJSON(newFilePath, json);
6767
}
6868
}
69-
69+
7070
index++;
7171
}
7272
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"$schema": "https://json.schemastore.org/tsconfig",
3+
"extends": "../tsconfig.json",
4+
"include": ["**/*.ts"],
5+
"exclude": []
6+
}

0 commit comments

Comments
 (0)