diff --git a/packages/definitelytyped-header-parser/index.ts b/packages/definitelytyped-header-parser/index.ts index f9402d1c..d8ffad63 100644 --- a/packages/definitelytyped-header-parser/index.ts +++ b/packages/definitelytyped-header-parser/index.ts @@ -23,8 +23,8 @@ export namespace TypeScriptVersion { } /** True if a package with the given typescript version should be published as prerelease. */ - export function isPrerelease(version: TypeScriptVersion): boolean { - return version === Latest; + export function isPrerelease(_version: TypeScriptVersion): boolean { + return false; } /** List of NPM tags that should be changed to point to the latest version. */ @@ -120,7 +120,7 @@ function headerParser(strict: boolean): pm.Parser
{ libraryName: label.name, libraryMajorVersion: label.major, libraryMinorVersion: label.minor, - projects, contributors, typeScriptVersion + projects, contributors, typeScriptVersion, })); } @@ -151,7 +151,7 @@ function contributorsParser(strict: boolean): pm.Parser { return pm.seqMap(contributors, pm.regexp(/ */), a => a); } return contributors; -}; +} // TODO: Should we do something with the URL? const definitionsParser = pm.regexp(/\r?\n\/\/ Definitions: [^\r\n]+/); diff --git a/packages/definitelytyped-header-parser/package.json b/packages/definitelytyped-header-parser/package.json index 7d807eb6..1a2aafcf 100644 --- a/packages/definitelytyped-header-parser/package.json +++ b/packages/definitelytyped-header-parser/package.json @@ -11,20 +11,20 @@ "build": "tsc", "watch": "tsc --watch", "lint": "tslint --format stylish index.ts test/*.ts", - "test": "mocha --require test/mocha-require.js 'test/*.ts'" + "test": "mocha --require test/mocha-require.js \"test/*.ts\"" }, "dependencies": { "parsimmon": "^1.2.0", - "@types/parsimmon": "^1.0.1" + "@types/parsimmon": "^1.0.4" }, "devDependencies": { - "@types/mocha": "^2.2.39", - "@types/node": "^7.0.5", - "mocha": "^3.2.0", + "@types/mocha": "^2.2.41", + "@types/node": "^7.0.18", + "mocha": "^3.4.1", "npm-run-all": "^4.0.1", - "ts-node": "^2.1.0", - "tslint": "^4.4.2", - "typescript": "^2.2.0" + "ts-node": "^3.0.4", + "tslint": "^5.2.0", + "typescript": "^2.3.2" }, "license": "MIT" } diff --git a/packages/definitelytyped-header-parser/test/test.ts b/packages/definitelytyped-header-parser/test/test.ts index f0513470..82c94965 100644 --- a/packages/definitelytyped-header-parser/test/test.ts +++ b/packages/definitelytyped-header-parser/test/test.ts @@ -19,8 +19,8 @@ describe("parse", () => { projects: ["https://github.com/foo/foo", "https://foo.com"], contributors: [ { name: "My Self", url: "https://github.com/me" }, - { name: "Some Other Guy", url: "https://github.com/otherguy" } - ] + { name: "Some Other Guy", url: "https://github.com/otherguy" }, + ], }); }); @@ -43,8 +43,8 @@ describe("parse", () => { projects: ["https://github.com/foo/foo", "https://foo.com"], contributors: [ { name: "My Self", url: "https://github.com/me" }, - { name: "Some Other Guy", url: "https://github.com/otherguy" } - ] + { name: "Some Other Guy", url: "https://github.com/otherguy" }, + ], }); }); }); diff --git a/packages/definitelytyped-header-parser/tslint.json b/packages/definitelytyped-header-parser/tslint.json index ee6fc1fe..038a4e63 100644 --- a/packages/definitelytyped-header-parser/tslint.json +++ b/packages/definitelytyped-header-parser/tslint.json @@ -1,13 +1,12 @@ { "extends": "tslint:latest", "rules": { - "arrow-parens": false, + "arrow-parens": [true, "ban-single-arg-parens"], "indent": [true, "tab"], - "interface-name": false, + "interface-name": [true, "never-prefix"], "no-namespace": false, "object-literal-sort-keys": false, "switch-default": false, - "trailing-comma": false, "variable-name": false } } \ No newline at end of file