diff --git a/scripts/fix-tslint.ts b/scripts/fix-tslint.ts index 940257e945..a54f4c7386 100644 --- a/scripts/fix-tslint.ts +++ b/scripts/fix-tslint.ts @@ -2,16 +2,11 @@ /// -import assert = require("assert"); -import * as fs from 'fs'; -import * as path from 'path'; +import * as fs from "fs"; +import * as path from "path"; import JSON = require("comment-json"); -function repeat(s: string, count: number) { - return Array(count + 1).join(s); -} - -const home = path.join(__dirname, '..'); +const home = path.join(__dirname, "..", "types"); for (const dirName of fs.readdirSync(home)) { if (dirName.startsWith(".") || dirName === "node_modules" || dirName === "scripts") { diff --git a/scripts/tsconfig.json b/scripts/tsconfig.json index f0f0258c77..899f96af64 100644 --- a/scripts/tsconfig.json +++ b/scripts/tsconfig.json @@ -4,9 +4,13 @@ "target": "es6", "noImplicitAny": true, "strictNullChecks": true, - "baseUrl": "../", + "noImplicitReturns": true, + "noImplicitThis": true, + "noUnusedLocals": true, + "noUnusedParameters": true, + "baseUrl": "../types", "typeRoots": [ - "../" + "../types" ], "types": [], "forceConsistentCasingInFileNames": true