@typescript-eslint/semi

This commit is contained in:
Alexander T
2019-06-14 09:46:02 +03:00
parent 55b8a38d50
commit f6ccfb39cc
8 changed files with 19 additions and 19 deletions

View File

@@ -11,16 +11,16 @@ declare var process: {
argv: string[];
env: Map<string>;
exit(exitCode?: number): void;
}
};
main();
function main() {
const [, progName, tscRoot, definitelyTypedRoot] = process.argv;
if (process.argv.length !== 4) {
if (process.argv.length < 2) {
throw "Expected at least 2 argv elements."
throw "Expected at least 2 argv elements.";
}
console.log("Usage:")
console.log("Usage:");
console.log(` node ${path.relative(__dirname, progName)} [TypeScript Repo Root] [DefinitelyTyped Repo Root]`);
return;
}
@@ -52,7 +52,7 @@ function importDefinitelyTypedTest(tscPath: string, rwcTestPath: string, testCas
cmd += " @" + responseFile;
}
let testDirectoryName = testCaseName + "_" + Math.floor((Math.random() * 10000) + 1);
let testDirectoryName = testCaseName + "_" + Math.floor((Math.random() * 10000) + 1);
let testDirectoryPath = path.join(process.env["temp"], testDirectoryName);
if (fs.existsSync(testDirectoryPath)) {
throw new Error("Could not create test directory");
@@ -156,6 +156,6 @@ function importDefinitelyTypedTests(tscPath: string, rwcTestPath: string, defini
}
}
});
})
});
});
}
}