Skip to content

Commit

Permalink
feat(*): change TypeScript version range to >=3.2.1 <3.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesHenry committed Apr 3, 2019
1 parent 95a948d commit a2506a1
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 15 deletions.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -74,6 +74,6 @@
"ts-jest": "^24.0.0",
"ts-node": "^8.0.1",
"tslint": "^5.11.0",
"typescript": ">=3.2.1 <3.4.0"
"typescript": ">=3.2.1 <3.5.0"
}
}
2 changes: 1 addition & 1 deletion packages/eslint-plugin/src/util/createRule.ts
Expand Up @@ -26,7 +26,7 @@ type CreateRuleMeta<TMessageIds extends string> = {
// This function will get much easier to call when this is merged https://github.com/Microsoft/TypeScript/pull/26349
// TODO - when the above rule lands; add type checking for the context.report `data` property
export function createRule<
TOptions extends Readonly<any[]>,
TOptions extends any[],
TMessageIds extends string,
TRuleListener extends RuleListener = RuleListener
>({
Expand Down
2 changes: 1 addition & 1 deletion packages/typescript-estree/src/parser.ts
Expand Up @@ -15,7 +15,7 @@ import { getFirstSemanticOrSyntacticError } from './semantic-errors';
* This needs to be kept in sync with the top-level README.md in the
* typescript-eslint monorepo
*/
const SUPPORTED_TYPESCRIPT_VERSIONS = '>=3.2.1 <3.4.0';
const SUPPORTED_TYPESCRIPT_VERSIONS = '>=3.2.1 <3.5.0';
const ACTIVE_TYPESCRIPT_VERSION = ts.version;
const isRunningSupportedTypeScriptVersion = semver.satisfies(
ACTIVE_TYPESCRIPT_VERSION,
Expand Down
Expand Up @@ -21,6 +21,7 @@ Object {
12,
12,
],
"transformFlags": 0,
"type": "TSEndOfFileToken",
},
"externalModuleIndicator": undefined,
Expand All @@ -33,7 +34,7 @@ Object {
},
"isDeclarationFile": false,
"languageVariant": 1,
"languageVersion": 6,
"languageVersion": 7,
"libReferenceDirectives": Array [],
"lineMap": Array [
null,
Expand Down Expand Up @@ -168,7 +169,7 @@ Object {
},
],
"text": "new foo<T>()",
"transformFlags": undefined,
"transformFlags": 0,
"type": "TSSourceFile",
"typeReferenceDirectives": Array [],
}
Expand Down Expand Up @@ -226,7 +227,7 @@ Object {
11,
35,
],
"transformFlags": undefined,
"transformFlags": 0,
"type": "TSJSDocNullableType",
"typeAnnotation": Object {
"loc": Object {
Expand Down Expand Up @@ -366,7 +367,7 @@ Object {
21,
35,
],
"transformFlags": undefined,
"transformFlags": 0,
"type": "TSJSDocNullableType",
"typeAnnotation": Object {
"loc": Object {
Expand Down Expand Up @@ -399,7 +400,7 @@ Object {
22,
35,
],
"transformFlags": undefined,
"transformFlags": 0,
"type": "TSJSDocNullableType",
"typeAnnotation": Object {
"loc": Object {
Expand Down Expand Up @@ -589,7 +590,7 @@ Object {
0,
18,
],
"transformFlags": undefined,
"transformFlags": 0,
"type": "TSClassDeclaration",
"typeParameters": null,
}
Expand Down Expand Up @@ -630,7 +631,7 @@ Object {
0,
12,
],
"transformFlags": undefined,
"transformFlags": 0,
"type": "TSNewExpression",
"typeParameters": Object {
"loc": Object {
Expand Down Expand Up @@ -726,7 +727,7 @@ Object {
0,
15,
],
"transformFlags": undefined,
"transformFlags": 0,
"type": "TSClassDeclaration",
"typeParameters": Object {
"loc": Object {
Expand Down
Expand Up @@ -94896,6 +94896,7 @@ Object {
7,
14,
],
"transformFlags": 0,
"type": "TSPrivateKeyword",
},
Object {
Expand All @@ -94913,6 +94914,7 @@ Object {
15,
21,
],
"transformFlags": 0,
"type": "TSPublicKeyword",
},
Object {
Expand All @@ -94930,6 +94932,7 @@ Object {
22,
31,
],
"transformFlags": 0,
"type": "TSProtectedKeyword",
},
Object {
Expand All @@ -94947,6 +94950,7 @@ Object {
32,
38,
],
"transformFlags": 0,
"type": "TSStaticKeyword",
},
Object {
Expand All @@ -94964,6 +94968,7 @@ Object {
39,
47,
],
"transformFlags": 0,
"type": "TSReadonlyKeyword",
},
Object {
Expand Down Expand Up @@ -94998,6 +95003,7 @@ Object {
57,
62,
],
"transformFlags": 0,
"type": "TSAsyncKeyword",
},
],
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Expand Up @@ -7052,10 +7052,10 @@ typedarray@^0.0.6:
resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777"
integrity sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c=

"typescript@>=3.2.1 <3.4.0":
version "3.3.3"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.3.3.tgz#f1657fc7daa27e1a8930758ace9ae8da31403221"
integrity sha512-Y21Xqe54TBVp+VDSNbuDYdGw0BpoR/Q6wo/+35M8PAU0vipahnyduJWirxxdxjsAkS7hue53x2zp8gz7F05u0A==
"typescript@>=3.2.1 <3.5.0":
version "3.4.1"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.4.1.tgz#b6691be11a881ffa9a05765a205cb7383f3b63c6"
integrity sha512-3NSMb2VzDQm8oBTLH6Nj55VVtUEpe/rgkIzMir0qVoLyjDZlnMBva0U6vDiV3IH+sl/Yu6oP5QwsAQtHPmDd2Q==

uglify-js@^3.1.4:
version "3.4.9"
Expand Down

0 comments on commit a2506a1

Please sign in to comment.