diff --git a/package.json b/package.json index 04354230821..8dc4eff15a0 100644 --- a/package.json +++ b/package.json @@ -68,7 +68,7 @@ "rimraf": "^2.5.4", "tslint": "latest", "tslint-test-config-non-relative": "file:test/external/tslint-test-config-non-relative", - "typescript": "2.1.4" + "typescript": "2.2.1" }, "license": "Apache-2.0", "engines": { diff --git a/test/rules/no-floating-promises/promises/test.ts.lint b/test/rules/no-floating-promises/promises/test.ts.lint index baeb2b5c3dd..115fc066f27 100644 --- a/test/rules/no-floating-promises/promises/test.ts.lint +++ b/test/rules/no-floating-promises/promises/test.ts.lint @@ -1,16 +1,16 @@ -class Promise { - then(): Promise; +class Promise { + then(): Promise; } function returnsPromiseFunction() { - return new Promise(); + return new Promise(); } -const returnsPromiseVariable = () => new Promise(); +const returnsPromiseVariable = () => new Promise(); class ReturnsPromiseClass { returnsPromiseMemberFunction() { - return new Promise(); + return new Promise(); } returnsPromiseMemberVariable = () => new Promise();