mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
Fix fix-tslint script now that types are in types directory (#15374)
This commit is contained in:
parent
78f4536c66
commit
f2eeefbf32
@ -2,16 +2,11 @@
|
||||
|
||||
/// <reference types="node" />
|
||||
|
||||
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") {
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user