From 30fafb09422b3aca881f4785d89b0536092d4952 Mon Sep 17 00:00:00 2001 From: Yusuke Tanaka Date: Tue, 21 Jul 2020 02:21:19 +0900 Subject: [PATCH 1/5] fix(eslint-plugin): [adjacent-overload-signatures] fix false positive on call signatures and a method named `call` (#2313) --- .../src/rules/adjacent-overload-signatures.ts | 68 +++++++++++++------ .../adjacent-overload-signatures.test.ts | 12 ++++ 2 files changed, 59 insertions(+), 21 deletions(-) diff --git a/packages/eslint-plugin/src/rules/adjacent-overload-signatures.ts b/packages/eslint-plugin/src/rules/adjacent-overload-signatures.ts index 7b46240c5819..c7cd7be84b4d 100644 --- a/packages/eslint-plugin/src/rules/adjacent-overload-signatures.ts +++ b/packages/eslint-plugin/src/rules/adjacent-overload-signatures.ts @@ -30,16 +30,24 @@ export default util.createRule({ create(context) { const sourceCode = context.getSourceCode(); + interface Method { + name: string; + static: boolean; + callSignature: boolean; + } + /** - * Gets the name of the member being processed. + * Gets the name and attribute of the member being processed. * @param member the member being processed. - * @returns the name of the member or null if it's a member not relevant to the rule. + * @returns the name and attribute of the member or null if it's a member not relevant to the rule. */ - function getMemberName(member: TSESTree.Node): string | null { + function getMemberMethod(member: TSESTree.Node): Method | null { if (!member) { return null; } + const isStatic = 'static' in member && !!member.static; + switch (member.type) { case AST_NODE_TYPES.ExportDefaultDeclaration: case AST_NODE_TYPES.ExportNamedDeclaration: { @@ -49,33 +57,55 @@ export default util.createRule({ return null; } - return getMemberName(member.declaration); + return getMemberMethod(member.declaration); } case AST_NODE_TYPES.TSDeclareFunction: - case AST_NODE_TYPES.FunctionDeclaration: - return member.id?.name ?? null; + case AST_NODE_TYPES.FunctionDeclaration: { + const name = member.id?.name ?? null; + if (name === null) { + return null; + } + return { + name, + static: isStatic, + callSignature: false, + }; + } case AST_NODE_TYPES.TSMethodSignature: - return util.getNameFromMember(member, sourceCode); + return { + name: util.getNameFromMember(member, sourceCode), + static: isStatic, + callSignature: false, + }; case AST_NODE_TYPES.TSCallSignatureDeclaration: - return 'call'; + return { + name: 'call', + static: isStatic, + callSignature: true, + }; case AST_NODE_TYPES.TSConstructSignatureDeclaration: - return 'new'; + return { + name: 'new', + static: isStatic, + callSignature: false, + }; case AST_NODE_TYPES.MethodDefinition: - return util.getNameFromMember(member, sourceCode); + return { + name: util.getNameFromMember(member, sourceCode), + static: isStatic, + callSignature: false, + }; } return null; } - interface Method { - name: string; - static: boolean; - } function isSameMethod(method1: Method, method2: Method | null): boolean { return ( !!method2 && method1.name === method2.name && - method1.static === method2.static + method1.static === method2.static && + method1.callSignature === method2.callSignature ); } @@ -104,15 +134,11 @@ export default util.createRule({ const seenMethods: Method[] = []; members.forEach(member => { - const name = getMemberName(member); - if (name === null) { + const method = getMemberMethod(member); + if (method === null) { lastMethod = null; return; } - const method = { - name, - static: 'static' in member && !!member.static, - }; const index = seenMethods.findIndex(seenMethod => isSameMethod(method, seenMethod), diff --git a/packages/eslint-plugin/tests/rules/adjacent-overload-signatures.test.ts b/packages/eslint-plugin/tests/rules/adjacent-overload-signatures.test.ts index 55fea63fb119..0f034a787f78 100644 --- a/packages/eslint-plugin/tests/rules/adjacent-overload-signatures.test.ts +++ b/packages/eslint-plugin/tests/rules/adjacent-overload-signatures.test.ts @@ -131,6 +131,17 @@ interface Foo { } `, ` +interface Foo { + (s: string): void; + (n: number): void; + (sn: string | number): void; + foo(n: number): void; + bar(): void; + baz(): void; + call(): void; +} + `, + ` interface Foo { foo(s: string): void; foo(n: number): void; @@ -534,6 +545,7 @@ interface Foo { (sn: string | number): void; bar(): void; baz(): void; + call(): void; } `, errors: [ From d7fefba3741a526ff2b58dd713995c3ee5603962 Mon Sep 17 00:00:00 2001 From: Brad Zacher Date: Tue, 21 Jul 2020 11:20:28 -0700 Subject: [PATCH 2/5] fix(typescript-estree): correct AST regression introduced by TS4.0 upgrade (#2316) --- packages/typescript-estree/src/convert.ts | 18 ++++++++++-- packages/typescript-estree/src/node-utils.ts | 11 ++------ .../typescript-estree/src/version-check.ts | 28 +++++++++++++++++++ 3 files changed, 45 insertions(+), 12 deletions(-) create mode 100644 packages/typescript-estree/src/version-check.ts diff --git a/packages/typescript-estree/src/convert.ts b/packages/typescript-estree/src/convert.ts index 470a9108aefb..7a137c3335fb 100644 --- a/packages/typescript-estree/src/convert.ts +++ b/packages/typescript-estree/src/convert.ts @@ -29,6 +29,7 @@ import { TSNode, TSESTreeToTSNode, } from './ts-estree'; +import { typescriptVersionIsAtLeast } from './version-check'; const SyntaxKind = ts.SyntaxKind; @@ -1998,12 +1999,20 @@ export class Converter { raw: 'false', }); - case SyntaxKind.NullKeyword: + case SyntaxKind.NullKeyword: { + if (!typescriptVersionIsAtLeast['4.0'] && this.inTypeMode) { + // 4.0 started nesting null types inside a LiteralType node, but we still need to support pre-4.0 + return this.createNode(node, { + type: AST_NODE_TYPES.TSNullKeyword, + }); + } + return this.createNode(node, { type: AST_NODE_TYPES.Literal, value: null, raw: 'null', }); + } case SyntaxKind.EmptyStatement: return this.createNode(node, { @@ -2672,8 +2681,11 @@ export class Converter { }); } case SyntaxKind.LiteralType: { - if (node.literal.kind === SyntaxKind.NullKeyword) { - // 4.0.0 started nesting null types inside a LiteralType node + if ( + typescriptVersionIsAtLeast['4.0'] && + node.literal.kind === SyntaxKind.NullKeyword + ) { + // 4.0 started nesting null types inside a LiteralType node // but our AST is designed around the old way of null being a keyword return this.createNode( node.literal as ts.NullLiteral, diff --git a/packages/typescript-estree/src/node-utils.ts b/packages/typescript-estree/src/node-utils.ts index b97f78b8dbdd..82b98b293015 100644 --- a/packages/typescript-estree/src/node-utils.ts +++ b/packages/typescript-estree/src/node-utils.ts @@ -1,7 +1,7 @@ import unescape from 'lodash/unescape'; -import * as semver from 'semver'; import * as ts from 'typescript'; import { AST_NODE_TYPES, AST_TOKEN_TYPES, TSESTree } from './ts-estree'; +import { typescriptVersionIsAtLeast } from './version-check'; const SyntaxKind = ts.SyntaxKind; @@ -452,13 +452,6 @@ export function isOptionalChain( ); } -/** - * Returns true if the current TS version is TS 3.9 - */ -function isTSv3dot9(): boolean { - return !semver.satisfies(ts.version, '< 3.9.0 || < 3.9.1-rc || < 3.9.0-beta'); -} - /** * Returns true of the child of property access expression is an optional chain */ @@ -477,7 +470,7 @@ export function isChildOptionalChain( return true; } - if (!isTSv3dot9()) { + if (!typescriptVersionIsAtLeast['3.9']) { return false; } diff --git a/packages/typescript-estree/src/version-check.ts b/packages/typescript-estree/src/version-check.ts new file mode 100644 index 000000000000..d26f96bc31a8 --- /dev/null +++ b/packages/typescript-estree/src/version-check.ts @@ -0,0 +1,28 @@ +import * as semver from 'semver'; +import * as ts from 'typescript'; + +function semverCheck(version: string): boolean { + return semver.satisfies( + ts.version, + `>= ${version}.0 || >= ${version}.1-rc || >= ${version}.0-beta`, + { + includePrerelease: true, + }, + ); +} + +const versions = [ + // + '3.7', + '3.8', + '3.9', + '4.0', +] as const; +type Versions = typeof versions extends ArrayLike ? U : never; + +const typescriptVersionIsAtLeast = {} as Record; +for (const version of versions) { + typescriptVersionIsAtLeast[version] = semverCheck(version); +} + +export { typescriptVersionIsAtLeast }; From fd90e31019afb81aee8f83d9632096236069520b Mon Sep 17 00:00:00 2001 From: Eduardo Moroni Date: Wed, 22 Jul 2020 18:48:52 +0200 Subject: [PATCH 3/5] docs(eslint-plugin): [explicit-module-boundary-types] fix broken link (#2317) Co-authored-by: Brad Zacher --- .../eslint-plugin/docs/rules/explicit-module-boundary-types.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/eslint-plugin/docs/rules/explicit-module-boundary-types.md b/packages/eslint-plugin/docs/rules/explicit-module-boundary-types.md index 1054fbcdeefe..f33a8d5b79d0 100644 --- a/packages/eslint-plugin/docs/rules/explicit-module-boundary-types.md +++ b/packages/eslint-plugin/docs/rules/explicit-module-boundary-types.md @@ -267,7 +267,7 @@ export const foo: FooType = bar => {}; ## When Not To Use It -If you wish to make sure all functions have explicit return types, as opposed to only the module boundaries, you can use [explicit-function-return-type](https://github.com/eslint/eslint/blob/master/docs/rules/explicit-function-return-type.md) +If you wish to make sure all functions have explicit return types, as opposed to only the module boundaries, you can use [explicit-function-return-type](./explicit-function-return-type.md) ## Further Reading From 616a841032bec310d9f31f1c987888273df27008 Mon Sep 17 00:00:00 2001 From: cherryblossom000 <31467609+cherryblossom000@users.noreply.github.com> Date: Tue, 28 Jul 2020 00:22:18 +1000 Subject: [PATCH 4/5] fix(eslint-plugin): [no-extra-parens] stop reporting on calling generic functions with one argument and type parameters containing parentheses (#2319) --- .../src/rules/no-extra-parens.ts | 19 +++++++++++++++ .../tests/rules/no-extra-parens.test.ts | 23 +++++++++++++++++++ 2 files changed, 42 insertions(+) diff --git a/packages/eslint-plugin/src/rules/no-extra-parens.ts b/packages/eslint-plugin/src/rules/no-extra-parens.ts index e3ab2395279b..42fd53d33100 100644 --- a/packages/eslint-plugin/src/rules/no-extra-parens.ts +++ b/packages/eslint-plugin/src/rules/no-extra-parens.ts @@ -78,6 +78,25 @@ export default util.createRule({ }); } + if ( + node.arguments.length === 1 && + node.typeParameters?.params.some( + param => + param.type === AST_NODE_TYPES.TSParenthesizedType || + param.type === AST_NODE_TYPES.TSImportType, + ) + ) { + return rule({ + ...node, + arguments: [ + { + ...node.arguments[0], + type: AST_NODE_TYPES.SequenceExpression as any, + }, + ], + }); + } + return rule(node); } function unaryUpdateExpression( diff --git a/packages/eslint-plugin/tests/rules/no-extra-parens.test.ts b/packages/eslint-plugin/tests/rules/no-extra-parens.test.ts index 45cdf1f99c1c..d0868e8293de 100644 --- a/packages/eslint-plugin/tests/rules/no-extra-parens.test.ts +++ b/packages/eslint-plugin/tests/rules/no-extra-parens.test.ts @@ -26,6 +26,9 @@ for (a of (b, c)); for (a of b); for (a in b, c); for (a in b); +a(1); +new a(1); +a<(A)>(1); `, }), ...batchedSingleLineTests({ @@ -233,6 +236,8 @@ for (a in (b, c)); for (a in (b)); for (a of (b)); typeof (a); +a((1)); +new a((1)); `, output: ` a = b * c; @@ -241,6 +246,9 @@ for (a in b, c); for (a in b); for (a of b); typeof a; +a(1); +new a(1); +a<(A)>((1)); `, errors: [ { @@ -273,6 +281,21 @@ typeof a; line: 7, column: 8, }, + { + messageId: 'unexpected', + line: 8, + column: 15, + }, + { + messageId: 'unexpected', + line: 9, + column: 19, + }, + { + messageId: 'unexpected', + line: 10, + column: 8, + }, ], }), ...batchedSingleLineTests({ From 817067b72b53c8f417f3c1c85e970ea82f0f6953 Mon Sep 17 00:00:00 2001 From: James Henry Date: Mon, 27 Jul 2020 17:02:41 +0000 Subject: [PATCH 5/5] chore: publish v3.7.1 --- CHANGELOG.md | 13 +++++++++++++ lerna.json | 2 +- packages/eslint-plugin-internal/CHANGELOG.md | 8 ++++++++ packages/eslint-plugin-internal/package.json | 4 ++-- packages/eslint-plugin-tslint/CHANGELOG.md | 8 ++++++++ packages/eslint-plugin-tslint/package.json | 6 +++--- packages/eslint-plugin/CHANGELOG.md | 12 ++++++++++++ packages/eslint-plugin/package.json | 4 ++-- packages/experimental-utils/CHANGELOG.md | 8 ++++++++ packages/experimental-utils/package.json | 6 +++--- packages/parser/CHANGELOG.md | 8 ++++++++ packages/parser/package.json | 10 +++++----- packages/scope-manager/CHANGELOG.md | 8 ++++++++ packages/scope-manager/package.json | 8 ++++---- packages/shared-fixtures/CHANGELOG.md | 8 ++++++++ packages/shared-fixtures/package.json | 2 +- packages/types/CHANGELOG.md | 8 ++++++++ packages/types/package.json | 2 +- packages/typescript-estree/CHANGELOG.md | 11 +++++++++++ packages/typescript-estree/package.json | 8 ++++---- packages/visitor-keys/CHANGELOG.md | 8 ++++++++ packages/visitor-keys/package.json | 4 ++-- 22 files changed, 128 insertions(+), 28 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2aee15078471..5331e6ec351f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,19 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [3.7.1](https://github.com/typescript-eslint/typescript-eslint/compare/v3.7.0...v3.7.1) (2020-07-27) + + +### Bug Fixes + +* **eslint-plugin:** [adjacent-overload-signatures] fix false positive on call signatures and a method named `call` ([#2313](https://github.com/typescript-eslint/typescript-eslint/issues/2313)) ([30fafb0](https://github.com/typescript-eslint/typescript-eslint/commit/30fafb09422b3aca881f4785d89b0536092d4952)) +* **eslint-plugin:** [no-extra-parens] stop reporting on calling generic functions with one argument and type parameters containing parentheses ([#2319](https://github.com/typescript-eslint/typescript-eslint/issues/2319)) ([616a841](https://github.com/typescript-eslint/typescript-eslint/commit/616a841032bec310d9f31f1c987888273df27008)) +* **typescript-estree:** correct AST regression introduced by TS4.0 upgrade ([#2316](https://github.com/typescript-eslint/typescript-eslint/issues/2316)) ([d7fefba](https://github.com/typescript-eslint/typescript-eslint/commit/d7fefba3741a526ff2b58dd713995c3ee5603962)) + + + + + # [3.7.0](https://github.com/typescript-eslint/typescript-eslint/compare/v3.6.1...v3.7.0) (2020-07-20) diff --git a/lerna.json b/lerna.json index 7ec0abd94d97..a6944297f68c 100644 --- a/lerna.json +++ b/lerna.json @@ -1,5 +1,5 @@ { - "version": "3.7.0", + "version": "3.7.1", "npmClient": "yarn", "useWorkspaces": true, "stream": true diff --git a/packages/eslint-plugin-internal/CHANGELOG.md b/packages/eslint-plugin-internal/CHANGELOG.md index ddc98eb9e863..b44d352247c1 100644 --- a/packages/eslint-plugin-internal/CHANGELOG.md +++ b/packages/eslint-plugin-internal/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [3.7.1](https://github.com/typescript-eslint/typescript-eslint/compare/v3.7.0...v3.7.1) (2020-07-27) + +**Note:** Version bump only for package @typescript-eslint/eslint-plugin-internal + + + + + # [3.7.0](https://github.com/typescript-eslint/typescript-eslint/compare/v3.6.1...v3.7.0) (2020-07-20) **Note:** Version bump only for package @typescript-eslint/eslint-plugin-internal diff --git a/packages/eslint-plugin-internal/package.json b/packages/eslint-plugin-internal/package.json index ede7aaa7e95d..54c3dd058c1c 100644 --- a/packages/eslint-plugin-internal/package.json +++ b/packages/eslint-plugin-internal/package.json @@ -1,6 +1,6 @@ { "name": "@typescript-eslint/eslint-plugin-internal", - "version": "3.7.0", + "version": "3.7.1", "private": true, "main": "dist/index.js", "scripts": { @@ -13,7 +13,7 @@ "typecheck": "tsc -p tsconfig.json --noEmit" }, "dependencies": { - "@typescript-eslint/experimental-utils": "3.7.0", + "@typescript-eslint/experimental-utils": "3.7.1", "prettier": "*" } } diff --git a/packages/eslint-plugin-tslint/CHANGELOG.md b/packages/eslint-plugin-tslint/CHANGELOG.md index 128337e1226e..a21a201ece6e 100644 --- a/packages/eslint-plugin-tslint/CHANGELOG.md +++ b/packages/eslint-plugin-tslint/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [3.7.1](https://github.com/typescript-eslint/typescript-eslint/compare/v3.7.0...v3.7.1) (2020-07-27) + +**Note:** Version bump only for package @typescript-eslint/eslint-plugin-tslint + + + + + # [3.7.0](https://github.com/typescript-eslint/typescript-eslint/compare/v3.6.1...v3.7.0) (2020-07-20) **Note:** Version bump only for package @typescript-eslint/eslint-plugin-tslint diff --git a/packages/eslint-plugin-tslint/package.json b/packages/eslint-plugin-tslint/package.json index 46e64ee6d20e..7d5511168cb5 100644 --- a/packages/eslint-plugin-tslint/package.json +++ b/packages/eslint-plugin-tslint/package.json @@ -1,6 +1,6 @@ { "name": "@typescript-eslint/eslint-plugin-tslint", - "version": "3.7.0", + "version": "3.7.1", "main": "dist/index.js", "typings": "src/index.ts", "description": "TSLint wrapper plugin for ESLint", @@ -32,7 +32,7 @@ "typecheck": "tsc -p tsconfig.json --noEmit" }, "dependencies": { - "@typescript-eslint/experimental-utils": "3.7.0", + "@typescript-eslint/experimental-utils": "3.7.1", "lodash": "^4.17.15" }, "peerDependencies": { @@ -42,6 +42,6 @@ }, "devDependencies": { "@types/lodash": "^4.14.149", - "@typescript-eslint/parser": "3.7.0" + "@typescript-eslint/parser": "3.7.1" } } diff --git a/packages/eslint-plugin/CHANGELOG.md b/packages/eslint-plugin/CHANGELOG.md index dec7ab39091e..169603b8f922 100644 --- a/packages/eslint-plugin/CHANGELOG.md +++ b/packages/eslint-plugin/CHANGELOG.md @@ -3,6 +3,18 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [3.7.1](https://github.com/typescript-eslint/typescript-eslint/compare/v3.7.0...v3.7.1) (2020-07-27) + + +### Bug Fixes + +* **eslint-plugin:** [adjacent-overload-signatures] fix false positive on call signatures and a method named `call` ([#2313](https://github.com/typescript-eslint/typescript-eslint/issues/2313)) ([30fafb0](https://github.com/typescript-eslint/typescript-eslint/commit/30fafb09422b3aca881f4785d89b0536092d4952)) +* **eslint-plugin:** [no-extra-parens] stop reporting on calling generic functions with one argument and type parameters containing parentheses ([#2319](https://github.com/typescript-eslint/typescript-eslint/issues/2319)) ([616a841](https://github.com/typescript-eslint/typescript-eslint/commit/616a841032bec310d9f31f1c987888273df27008)) + + + + + # [3.7.0](https://github.com/typescript-eslint/typescript-eslint/compare/v3.6.1...v3.7.0) (2020-07-20) diff --git a/packages/eslint-plugin/package.json b/packages/eslint-plugin/package.json index 440d980b7391..57692bd5a501 100644 --- a/packages/eslint-plugin/package.json +++ b/packages/eslint-plugin/package.json @@ -1,6 +1,6 @@ { "name": "@typescript-eslint/eslint-plugin", - "version": "3.7.0", + "version": "3.7.1", "description": "TypeScript plugin for ESLint", "keywords": [ "eslint", @@ -42,7 +42,7 @@ "typecheck": "tsc -p tsconfig.json --noEmit" }, "dependencies": { - "@typescript-eslint/experimental-utils": "3.7.0", + "@typescript-eslint/experimental-utils": "3.7.1", "debug": "^4.1.1", "functional-red-black-tree": "^1.0.1", "regexpp": "^3.0.0", diff --git a/packages/experimental-utils/CHANGELOG.md b/packages/experimental-utils/CHANGELOG.md index c25dfd5eb2e6..4082bc93cdae 100644 --- a/packages/experimental-utils/CHANGELOG.md +++ b/packages/experimental-utils/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [3.7.1](https://github.com/typescript-eslint/typescript-eslint/compare/v3.7.0...v3.7.1) (2020-07-27) + +**Note:** Version bump only for package @typescript-eslint/experimental-utils + + + + + # [3.7.0](https://github.com/typescript-eslint/typescript-eslint/compare/v3.6.1...v3.7.0) (2020-07-20) **Note:** Version bump only for package @typescript-eslint/experimental-utils diff --git a/packages/experimental-utils/package.json b/packages/experimental-utils/package.json index 1f1cc0dbf1d3..2d4c28de14c3 100644 --- a/packages/experimental-utils/package.json +++ b/packages/experimental-utils/package.json @@ -1,6 +1,6 @@ { "name": "@typescript-eslint/experimental-utils", - "version": "3.7.0", + "version": "3.7.1", "description": "(Experimental) Utilities for working with TypeScript + ESLint together", "keywords": [ "eslint", @@ -40,8 +40,8 @@ }, "dependencies": { "@types/json-schema": "^7.0.3", - "@typescript-eslint/types": "3.7.0", - "@typescript-eslint/typescript-estree": "3.7.0", + "@typescript-eslint/types": "3.7.1", + "@typescript-eslint/typescript-estree": "3.7.1", "eslint-scope": "^5.0.0", "eslint-utils": "^2.0.0" }, diff --git a/packages/parser/CHANGELOG.md b/packages/parser/CHANGELOG.md index 90e2e05e09d1..9327c553f0df 100644 --- a/packages/parser/CHANGELOG.md +++ b/packages/parser/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [3.7.1](https://github.com/typescript-eslint/typescript-eslint/compare/v3.7.0...v3.7.1) (2020-07-27) + +**Note:** Version bump only for package @typescript-eslint/parser + + + + + # [3.7.0](https://github.com/typescript-eslint/typescript-eslint/compare/v3.6.1...v3.7.0) (2020-07-20) diff --git a/packages/parser/package.json b/packages/parser/package.json index 1ea8ab88a592..8a512ea5f462 100644 --- a/packages/parser/package.json +++ b/packages/parser/package.json @@ -1,6 +1,6 @@ { "name": "@typescript-eslint/parser", - "version": "3.7.0", + "version": "3.7.1", "description": "An ESLint custom parser which leverages TypeScript ESTree", "main": "dist/index.js", "types": "dist/index.d.ts", @@ -44,14 +44,14 @@ }, "dependencies": { "@types/eslint-visitor-keys": "^1.0.0", - "@typescript-eslint/experimental-utils": "3.7.0", - "@typescript-eslint/types": "3.7.0", - "@typescript-eslint/typescript-estree": "3.7.0", + "@typescript-eslint/experimental-utils": "3.7.1", + "@typescript-eslint/types": "3.7.1", + "@typescript-eslint/typescript-estree": "3.7.1", "eslint-visitor-keys": "^1.1.0" }, "devDependencies": { "@types/glob": "^7.1.1", - "@typescript-eslint/shared-fixtures": "3.7.0", + "@typescript-eslint/shared-fixtures": "3.7.1", "glob": "*" }, "peerDependenciesMeta": { diff --git a/packages/scope-manager/CHANGELOG.md b/packages/scope-manager/CHANGELOG.md index 171f8422b433..f3f4718e3993 100644 --- a/packages/scope-manager/CHANGELOG.md +++ b/packages/scope-manager/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [3.7.1](https://github.com/typescript-eslint/typescript-eslint/compare/v3.7.0...v3.7.1) (2020-07-27) + +**Note:** Version bump only for package @typescript-eslint/scope-manager + + + + + # [3.7.0](https://github.com/typescript-eslint/typescript-eslint/compare/v3.6.1...v3.7.0) (2020-07-20) **Note:** Version bump only for package @typescript-eslint/scope-manager diff --git a/packages/scope-manager/package.json b/packages/scope-manager/package.json index f0758795ecd0..74904dc6417b 100644 --- a/packages/scope-manager/package.json +++ b/packages/scope-manager/package.json @@ -1,6 +1,6 @@ { "name": "@typescript-eslint/scope-manager", - "version": "3.7.0", + "version": "3.7.1", "description": "TypeScript scope analyser for ESLint", "keywords": [ "eslint", @@ -39,11 +39,11 @@ "typecheck": "tsc -p tsconfig.json --noEmit" }, "dependencies": { - "@typescript-eslint/types": "3.7.0", - "@typescript-eslint/visitor-keys": "3.7.0" + "@typescript-eslint/types": "3.7.1", + "@typescript-eslint/visitor-keys": "3.7.1" }, "devDependencies": { - "@typescript-eslint/typescript-estree": "3.7.0", + "@typescript-eslint/typescript-estree": "3.7.1", "glob": "*", "jest-specific-snapshot": "*", "make-dir": "*", diff --git a/packages/shared-fixtures/CHANGELOG.md b/packages/shared-fixtures/CHANGELOG.md index 42273b770bb1..92e60717f21c 100644 --- a/packages/shared-fixtures/CHANGELOG.md +++ b/packages/shared-fixtures/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [3.7.1](https://github.com/typescript-eslint/typescript-eslint/compare/v3.7.0...v3.7.1) (2020-07-27) + +**Note:** Version bump only for package @typescript-eslint/shared-fixtures + + + + + # [3.7.0](https://github.com/typescript-eslint/typescript-eslint/compare/v3.6.1...v3.7.0) (2020-07-20) diff --git a/packages/shared-fixtures/package.json b/packages/shared-fixtures/package.json index 3398ceea2ba8..41614bd2dd65 100644 --- a/packages/shared-fixtures/package.json +++ b/packages/shared-fixtures/package.json @@ -1,6 +1,6 @@ { "name": "@typescript-eslint/shared-fixtures", - "version": "3.7.0", + "version": "3.7.1", "private": true, "scripts": { "build": "tsc -b tsconfig.build.json", diff --git a/packages/types/CHANGELOG.md b/packages/types/CHANGELOG.md index d57d01feeb1f..3c6c933b94fb 100644 --- a/packages/types/CHANGELOG.md +++ b/packages/types/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [3.7.1](https://github.com/typescript-eslint/typescript-eslint/compare/v3.7.0...v3.7.1) (2020-07-27) + +**Note:** Version bump only for package @typescript-eslint/types + + + + + # [3.7.0](https://github.com/typescript-eslint/typescript-eslint/compare/v3.6.1...v3.7.0) (2020-07-20) diff --git a/packages/types/package.json b/packages/types/package.json index 0ebab8057efb..14983d822a66 100644 --- a/packages/types/package.json +++ b/packages/types/package.json @@ -1,6 +1,6 @@ { "name": "@typescript-eslint/types", - "version": "3.7.0", + "version": "3.7.1", "description": "Types for the TypeScript-ESTree AST spec", "keywords": [ "eslint", diff --git a/packages/typescript-estree/CHANGELOG.md b/packages/typescript-estree/CHANGELOG.md index 422aa103d7bd..41d278344f20 100644 --- a/packages/typescript-estree/CHANGELOG.md +++ b/packages/typescript-estree/CHANGELOG.md @@ -3,6 +3,17 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [3.7.1](https://github.com/typescript-eslint/typescript-eslint/compare/v3.7.0...v3.7.1) (2020-07-27) + + +### Bug Fixes + +* **typescript-estree:** correct AST regression introduced by TS4.0 upgrade ([#2316](https://github.com/typescript-eslint/typescript-eslint/issues/2316)) ([d7fefba](https://github.com/typescript-eslint/typescript-eslint/commit/d7fefba3741a526ff2b58dd713995c3ee5603962)) + + + + + # [3.7.0](https://github.com/typescript-eslint/typescript-eslint/compare/v3.6.1...v3.7.0) (2020-07-20) diff --git a/packages/typescript-estree/package.json b/packages/typescript-estree/package.json index 136566b35950..4703e2cbe354 100644 --- a/packages/typescript-estree/package.json +++ b/packages/typescript-estree/package.json @@ -1,6 +1,6 @@ { "name": "@typescript-eslint/typescript-estree", - "version": "3.7.0", + "version": "3.7.1", "description": "A parser that converts TypeScript source code into an ESTree compatible form", "main": "dist/index.js", "types": "dist/index.d.ts", @@ -40,8 +40,8 @@ "typecheck": "tsc -p tsconfig.json --noEmit" }, "dependencies": { - "@typescript-eslint/types": "3.7.0", - "@typescript-eslint/visitor-keys": "3.7.0", + "@typescript-eslint/types": "3.7.1", + "@typescript-eslint/visitor-keys": "3.7.1", "debug": "^4.1.1", "glob": "^7.1.6", "is-glob": "^4.0.1", @@ -59,7 +59,7 @@ "@types/lodash": "^4.14.149", "@types/semver": "^7.1.0", "@types/tmp": "^0.2.0", - "@typescript-eslint/shared-fixtures": "3.7.0", + "@typescript-eslint/shared-fixtures": "3.7.1", "glob": "*", "jest-specific-snapshot": "*", "make-dir": "*", diff --git a/packages/visitor-keys/CHANGELOG.md b/packages/visitor-keys/CHANGELOG.md index 867a2ca54c45..6dce638d7f97 100644 --- a/packages/visitor-keys/CHANGELOG.md +++ b/packages/visitor-keys/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [3.7.1](https://github.com/typescript-eslint/typescript-eslint/compare/v3.7.0...v3.7.1) (2020-07-27) + +**Note:** Version bump only for package @typescript-eslint/visitor-keys + + + + + # [3.7.0](https://github.com/typescript-eslint/typescript-eslint/compare/v3.6.1...v3.7.0) (2020-07-20) **Note:** Version bump only for package @typescript-eslint/visitor-keys diff --git a/packages/visitor-keys/package.json b/packages/visitor-keys/package.json index 3dfb2bf7438c..f716bdae70cb 100644 --- a/packages/visitor-keys/package.json +++ b/packages/visitor-keys/package.json @@ -1,6 +1,6 @@ { "name": "@typescript-eslint/visitor-keys", - "version": "3.7.0", + "version": "3.7.1", "description": "Visitor keys used to help traverse the TypeScript-ESTree AST", "keywords": [ "eslint", @@ -39,7 +39,7 @@ "eslint-visitor-keys": "^1.1.0" }, "devDependencies": { - "@typescript-eslint/types": "3.7.0" + "@typescript-eslint/types": "3.7.1" }, "funding": { "type": "opencollective",