Skip to content

Commit

Permalink
eslint: Take babel-eslint's move to @babel/eslint-parser
Browse files Browse the repository at this point in the history
Fixes: zulip#4254
  • Loading branch information
chrisbobbe committed Jun 9, 2022
1 parent a6bd8b1 commit 01d39a8
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
# $ git diff --no-index /tmp/{foo,bar}.json


parser: babel-eslint
parser: "@babel/eslint-parser"

extends:
- airbnb
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@
},
"devDependencies": {
"@babel/core": "^7.12.9",
"@babel/eslint-parser": "^7.18.2",
"@babel/plugin-proposal-numeric-separator": "^7.14.5",
"@babel/preset-env": "^7.11.0",
"@babel/runtime": "^7.12.5",
Expand All @@ -87,7 +88,6 @@
"@rollup/plugin-node-resolve": "^13.0.4",
"@types/react-native": "^0.67.7",
"@vusion/webfonts-generator": "^0.8.0",
"babel-eslint": "^10.0.3",
"core-js": "^3.1.4",
"deep-freeze": "^0.0.1",
"eslint": "^7.28.0",
Expand Down
2 changes: 1 addition & 1 deletion tools/formatting.eslintrc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# we can follow each Prettier run with a streamlined (and faster) ESLint run
# that uses only these rules.

parser: babel-eslint
parser: "@babel/eslint-parser"

plugins:
- flowtype
Expand Down
13 changes: 11 additions & 2 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,15 @@
json5 "^2.2.1"
semver "^6.3.0"

"@babel/eslint-parser@^7.18.2":
version "7.18.2"
resolved "https://registry.yarnpkg.com/@babel/eslint-parser/-/eslint-parser-7.18.2.tgz#e14dee36c010edfb0153cf900c2b0815e82e3245"
integrity sha512-oFQYkE8SuH14+uR51JVAmdqwKYXGRjEXx7s+WiagVjqQ+HPE+nnwyF2qlVG8evUsUHmPcA+6YXMEDbIhEyQc5A==
dependencies:
eslint-scope "^5.1.1"
eslint-visitor-keys "^2.1.0"
semver "^6.3.0"

"@babel/generator@^7.14.0", "@babel/generator@^7.17.10":
version "7.17.10"
resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.17.10.tgz#c281fa35b0c349bbe9d02916f4ae08fc85ed7189"
Expand Down Expand Up @@ -3125,7 +3134,7 @@ babel-core@^7.0.0-bridge.0:
resolved "https://registry.yarnpkg.com/babel-core/-/babel-core-7.0.0-bridge.0.tgz#95a492ddd90f9b4e9a4a1da14eb335b87b634ece"
integrity sha512-poPX9mZH/5CSanm50Q+1toVci6pv5KSRv/5TWCwtzQS5XEwn40BcCrgIeMFWP9CKKIniKXNxoIOnOq4VVlGXhg==

babel-eslint@^10.0.1, babel-eslint@^10.0.3:
babel-eslint@^10.0.1:
version "10.1.0"
resolved "https://registry.yarnpkg.com/babel-eslint/-/babel-eslint-10.1.0.tgz#6968e568a910b78fb3779cdd8b6ac2f479943232"
integrity sha512-ifWaTHQ0ce+448CYop8AdrQiBsGrnC+bMgfyKFdi6EsPLTAWG+QfyDeM6OH+FmWnKvEq5NnBMLvlBUPKQZoDSg==
Expand Down Expand Up @@ -4811,7 +4820,7 @@ eslint-visitor-keys@^1.0.0, eslint-visitor-keys@^1.1.0, eslint-visitor-keys@^1.3
resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-1.3.0.tgz#30ebd1ef7c2fdff01c3a4f151044af25fab0523e"
integrity sha512-6J72N8UNa462wa/KFODt/PJ3IU60SDpC3QXC1Hjc1BXXpfL2C9R5+AU7jhe0F6GREqVMh4Juu+NY7xn+6dipUQ==

eslint-visitor-keys@^2.0.0:
eslint-visitor-keys@^2.0.0, eslint-visitor-keys@^2.1.0:
version "2.1.0"
resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-2.1.0.tgz#f65328259305927392c938ed44eb0a5c9b2bd303"
integrity sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw==
Expand Down

0 comments on commit 01d39a8

Please sign in to comment.