Skip to content

Commit 12e195c

Browse files
committed
no-throw-literal
1 parent bea1bcb commit 12e195c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.eslintrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@
103103
"no-shadow": "off",
104104
"no-sparse-arrays": "error",
105105
"no-template-curly-in-string": "off",
106-
"no-throw-literal": "off",
106+
"no-throw-literal": "error",
107107
"no-trailing-spaces": "off",
108108
"no-undef-init": "error",
109109
"no-unsafe-finally": "error",

scripts/importDefinitelyTypedTests/importDefinitelyTypedTests.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ function main() {
1818
const [, progName, tscRoot, definitelyTypedRoot] = process.argv;
1919
if (process.argv.length !== 4) {
2020
if (process.argv.length < 2) {
21-
throw "Expected at least 2 argv elements.";
21+
throw new Error("Expected at least 2 argv elements.");
2222
}
2323
console.log("Usage:");
2424
console.log(` node ${path.relative(__dirname, progName)} [TypeScript Repo Root] [DefinitelyTyped Repo Root]`);

0 commit comments

Comments
 (0)