From 96fce81438b62f1ba2018bfe0b2a85681fd147fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hu=C3=A1ng=20J=C3=B9nli=C3=A0ng?= Date: Thu, 6 May 2021 12:23:21 -0400 Subject: [PATCH] chore: bump eslint-visitor-keys (#13272) --- eslint/babel-eslint-parser/package.json | 2 +- eslint/babel-eslint-parser/src/visitor-keys.js | 7 +++---- yarn.lock | 10 +++++----- 3 files changed, 9 insertions(+), 10 deletions(-) diff --git a/eslint/babel-eslint-parser/package.json b/eslint/babel-eslint-parser/package.json index 222d8e7f04..018c677ccc 100644 --- a/eslint/babel-eslint-parser/package.json +++ b/eslint/babel-eslint-parser/package.json @@ -31,7 +31,7 @@ }, "dependencies": { "eslint-scope": "^5.1.0", - "eslint-visitor-keys": "^1.3.0", + "eslint-visitor-keys": "^2.1.0", "semver": "condition:BABEL_8_BREAKING ? ^7.3.4 : ^6.3.0" }, "devDependencies": { diff --git a/eslint/babel-eslint-parser/src/visitor-keys.js b/eslint/babel-eslint-parser/src/visitor-keys.js index 29376a65ac..3440cfcc11 100644 --- a/eslint/babel-eslint-parser/src/visitor-keys.js +++ b/eslint/babel-eslint-parser/src/visitor-keys.js @@ -8,10 +8,9 @@ export const newTypes = { Literal: ESLINT_VISITOR_KEYS.Literal, MethodDefinition: ["decorators"].concat(ESLINT_VISITOR_KEYS.MethodDefinition), Property: ["decorators"].concat(ESLINT_VISITOR_KEYS.Property), - // todo: remove this when Acorn supports class properties - PropertyDefinition: t.VISITOR_KEYS.ClassProperty, - // todo: remove this when Acorn supports class properties - PrivateIdentifier: [], + PropertyDefinition: ["decorators"].concat( + ESLINT_VISITOR_KEYS.PropertyDefinition, + ), }; // AST Types that shares `"type"` property with Babel but have different shape diff --git a/yarn.lock b/yarn.lock index 9269f83636..7af75fc0af 100644 --- a/yarn.lock +++ b/yarn.lock @@ -248,7 +248,7 @@ __metadata: dedent: ^0.7.0 eslint: ^7.5.0 eslint-scope: ^5.1.0 - eslint-visitor-keys: ^1.3.0 + eslint-visitor-keys: ^2.1.0 semver: "condition:BABEL_8_BREAKING ? ^7.3.4 : ^6.3.0" peerDependencies: "@babel/core": ">=7.11.0" @@ -7700,10 +7700,10 @@ __metadata: languageName: node linkType: hard -"eslint-visitor-keys@npm:^2.0.0": - version: 2.0.0 - resolution: "eslint-visitor-keys@npm:2.0.0" - checksum: 429dabdcab3c1cf5e65d44843afc513398d4ee32a37f93edc93bb5ba59a12b78fa67d87ff23c752c170b5e4f9085050f45b3c036cdfb23d40a724f2614048140 +"eslint-visitor-keys@npm:^2.0.0, eslint-visitor-keys@npm:^2.1.0": + version: 2.1.0 + resolution: "eslint-visitor-keys@npm:2.1.0" + checksum: 75eaae9006f5bcb9d1e09641719b840b83c4758f5f25bc06a0e94918d78658d0f19691bdc2e3b100604d0fe2d1eb94a2aab287ba24ad2f02f87cacdccb86c2e4 languageName: node linkType: hard