From 686a1a8a18e61e85b39d0311bc0cabc8fd73c065 Mon Sep 17 00:00:00 2001 From: Zach Bloomquist Date: Thu, 1 Apr 2021 11:31:50 -0400 Subject: [PATCH] =?UTF-8?q?chore(deps):=20babel-eslint=20=E2=9E=A1=20@babe?= =?UTF-8?q?l/eslint-parser?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit To fix problems with linting. See https://github.com/babel/babel/issues/10904\#issuecomment-767275502 and https://app.circleci.com/pipelines/github/cypress-io/cypress/18714/workflows/68faf81a-d57a-4944-acc8-97883dc334f8/jobs/677644 --- npm/eslint-plugin-dev/README.md | 6 +- npm/eslint-plugin-dev/lib/index.js | 4 +- npm/eslint-plugin-dev/package.json | 4 +- npm/vue/examples/cli/package.json | 6 +- .../package.json | 4 +- package.json | 4 +- yarn.lock | 65 ++++++++++++++++--- 7 files changed, 70 insertions(+), 23 deletions(-) diff --git a/npm/eslint-plugin-dev/README.md b/npm/eslint-plugin-dev/README.md index 77062d37427e..ffa2019836a9 100644 --- a/npm/eslint-plugin-dev/README.md +++ b/npm/eslint-plugin-dev/README.md @@ -30,11 +30,11 @@ eslint-plugin-mocha # if you have coffeescript files @fellow/eslint-plugin-coffee -babel-eslint +@babel/eslint-parser # if you have react/jsx files eslint-plugin-react -babel-eslint +@babel/eslint-parser ``` 2) add the following to your root level `.eslintrc.json`: @@ -112,7 +112,7 @@ React and JSX-specific configuration and rules. **requires you to install the following `devDependencies`**: ```sh -babel-eslint +@babel/eslint-parser eslint-plugin-react ``` diff --git a/npm/eslint-plugin-dev/lib/index.js b/npm/eslint-plugin-dev/lib/index.js index 18a5bbb40ea0..e18db48a9753 100644 --- a/npm/eslint-plugin-dev/lib/index.js +++ b/npm/eslint-plugin-dev/lib/index.js @@ -239,7 +239,7 @@ module.exports = { files: '*.coffee', parser: '@fellow/eslint-plugin-coffee', parserOptions: { - parser: 'babel-eslint', + parser: '@babel/eslint-parser', sourceType: 'module', ecmaVersion: 2018, }, @@ -322,7 +322,7 @@ module.exports = { env: { browser: true, }, - parser: 'babel-eslint', + parser: '@babel/eslint-parser', parserOptions: { ecmaVersion: 2018, sourceType: 'module', diff --git a/npm/eslint-plugin-dev/package.json b/npm/eslint-plugin-dev/package.json index 7fe732857eed..2aa14c1568e7 100644 --- a/npm/eslint-plugin-dev/package.json +++ b/npm/eslint-plugin-dev/package.json @@ -27,9 +27,9 @@ "sinon-chai": "^3.3.0" }, "peerDependencies": { + "@babel/eslint-parser": "^7.2.3", "@typescript-eslint/eslint-plugin": ">= 1.11.0", "@typescript-eslint/parser": ">= 1.11.0", - "babel-eslint": "^7.2.3", "eslint": ">= 3.2.1", "eslint-plugin-json-format": ">= 2.0.0", "eslint-plugin-mocha": "^4.11.0", @@ -54,4 +54,4 @@ "eslint", "eslintplugin" ] -} \ No newline at end of file +} diff --git a/npm/vue/examples/cli/package.json b/npm/vue/examples/cli/package.json index d8194e3f4bdd..c19724a319a6 100644 --- a/npm/vue/examples/cli/package.json +++ b/npm/vue/examples/cli/package.json @@ -17,7 +17,7 @@ "node": true }, "parserOptions": { - "parser": "babel-eslint" + "parser": "@babel/eslint-parser" }, "extends": [ "plugin:vue/essential", @@ -31,12 +31,12 @@ "vue": "^2.6.11" }, "devDependencies": { + "@babel/eslint-parser": "^7.13.14", "@vue/cli-plugin-babel": "~4.4.0", "@vue/cli-plugin-eslint": "~4.4.0", "@vue/cli-service": "~4.4.0", - "babel-eslint": "^10.1.0", "eslint": "^7.22.0", "eslint-plugin-vue": "^6.2.2", "vue-template-compiler": "^2.6.11" } -} \ No newline at end of file +} diff --git a/npm/webpack-batteries-included-preprocessor/package.json b/npm/webpack-batteries-included-preprocessor/package.json index 81863c0affb0..81ba5cfde258 100644 --- a/npm/webpack-batteries-included-preprocessor/package.json +++ b/npm/webpack-batteries-included-preprocessor/package.json @@ -24,13 +24,13 @@ "webpack": "^4.44.1" }, "devDependencies": { + "@babel/eslint-parser": "^7.13.14", "@cypress/eslint-plugin-dev": "0.0.0-development", "@cypress/webpack-preprocessor": "0.0.0-development", "@types/mocha": "^8.0.2", "@types/webpack": "^4.41.21", "@typescript-eslint/eslint-plugin": "^4.18.0", "@typescript-eslint/parser": "^4.18.0", - "babel-eslint": "^10.1.0", "chai": "^4.2.0", "eslint": "^7.22.0", "eslint-plugin-json-format": "^2.0.1", @@ -66,4 +66,4 @@ "publishConfig": { "access": "public" } -} \ No newline at end of file +} diff --git a/package.json b/package.json index 402cb91f2cdc..b2fc211b4141 100644 --- a/package.json +++ b/package.json @@ -71,6 +71,7 @@ } }, "devDependencies": { + "@babel/eslint-parser": "7.13.14", "@cypress/bumpercar": "2.0.12", "@cypress/commit-message-install": "3.1.3", "@cypress/env-or-json-file": "2.0.0", @@ -107,7 +108,6 @@ "arg": "4.1.2", "ascii-table": "0.0.9", "aws-sdk": "2.447.0", - "babel-eslint": "10.1.0", "bluebird": "3.5.3", "bluebird-retry": "0.11.0", "chai": "4.2.0", @@ -255,4 +255,4 @@ "**/pretty-format": "26.4.0", "**/socket.io-parser": "4.0.2" } -} \ No newline at end of file +} diff --git a/yarn.lock b/yarn.lock index 7809656c2c3e..62edf5b2787d 100644 --- a/yarn.lock +++ b/yarn.lock @@ -229,7 +229,16 @@ semver "^6.3.0" source-map "^0.5.0" -"@babel/generator@^7.13.0", "@babel/generator@^7.4.0", "@babel/generator@^7.4.4", "@babel/generator@^7.6.0", "@babel/generator@^7.7.7", "@babel/generator@^7.9.0": +"@babel/eslint-parser@7.13.14", "@babel/eslint-parser@^7.13.14": + version "7.13.14" + resolved "https://registry.npmjs.org/@babel/eslint-parser/-/eslint-parser-7.13.14.tgz#f80fd23bdd839537221914cb5d17720a5ea6ba3a" + integrity sha512-I0HweR36D73Ibn/FfrRDMKlMqJHFwidIUgYdMpH+aXYuQC+waq59YaJ6t9e9N36axJ82v1jR041wwqDrDXEwRA== + dependencies: + eslint-scope "^5.1.0" + eslint-visitor-keys "^1.3.0" + semver "^6.3.0" + +"@babel/generator@^7.13.0", "@babel/generator@^7.13.9", "@babel/generator@^7.4.0", "@babel/generator@^7.4.4", "@babel/generator@^7.6.0", "@babel/generator@^7.7.7", "@babel/generator@^7.9.0": version "7.13.9" resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.13.9.tgz#3a7aa96f9efb8e2be42d38d80e2ceb4c64d8de39" integrity sha512-mHOOmY0Axl/JCTkxTU6Lf5sWOg/v8nUa+Xkt4zMTftX0wqmb6Sh7J8gvcehBw7q0AhrhAR+FDacKjCZ2X8K+Sw== @@ -345,6 +354,13 @@ dependencies: "@babel/types" "^7.13.0" +"@babel/helper-member-expression-to-functions@^7.13.12": + version "7.13.12" + resolved "https://registry.npmjs.org/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.13.12.tgz#dfe368f26d426a07299d8d6513821768216e6d72" + integrity sha512-48ql1CLL59aKbU94Y88Xgb2VFy7a95ykGRbJJaaVv+LX5U8wFpLfiGXJJGUozsmA1oEh/o5Bp60Voq7ACyA/Sw== + dependencies: + "@babel/types" "^7.13.12" + "@babel/helper-module-imports@^7.0.0", "@babel/helper-module-imports@^7.10.4", "@babel/helper-module-imports@^7.12.13", "@babel/helper-module-imports@^7.8.3": version "7.12.13" resolved "https://registry.yarnpkg.com/@babel/helper-module-imports/-/helper-module-imports-7.12.13.tgz#ec67e4404f41750463e455cc3203f6a32e93fcb0" @@ -352,6 +368,13 @@ dependencies: "@babel/types" "^7.12.13" +"@babel/helper-module-imports@^7.12.1": + version "7.13.12" + resolved "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.13.12.tgz#c6a369a6f3621cb25da014078684da9196b61977" + integrity sha512-4cVvR2/1B693IuOvSI20xqqa/+bl7lqAMR59R4iu39R9aOX8/JoYY1sFaNvUMyMBGnHdwvJgUrzNLoUZxXypxA== + dependencies: + "@babel/types" "^7.13.12" + "@babel/helper-module-transforms@^7.10.4", "@babel/helper-module-transforms@^7.12.1", "@babel/helper-module-transforms@^7.9.0": version "7.12.1" resolved "https://registry.yarnpkg.com/@babel/helper-module-transforms/-/helper-module-transforms-7.12.1.tgz#7954fec71f5b32c48e4b303b437c34453fd7247c" @@ -394,7 +417,7 @@ resolved "https://registry.yarnpkg.com/@babel/helper-plugin-utils/-/helper-plugin-utils-7.13.0.tgz#806526ce125aed03373bc416a828321e3a6a33af" integrity sha512-ZPafIPSwzUlAoWT8DKs1W2VyF2gOWthGd5NGFMsBcMMol+ZhK+EQY/e6V96poa6PA/Bh+C9plWN0hXO1uB8AfQ== -"@babel/helper-remap-async-to-generator@^7.13.0": +"@babel/helper-remap-async-to-generator@^7.12.1", "@babel/helper-remap-async-to-generator@^7.13.0": version "7.13.0" resolved "https://registry.yarnpkg.com/@babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.13.0.tgz#376a760d9f7b4b2077a9dd05aa9c3927cadb2209" integrity sha512-pUQpFBE9JvC9lrQbpX0TmeNIy5s7GnZjna2lhhcHC7DzgBs6fWn722Y5cfwgrtrqc7NAJwMvOa0mKhq6XaE4jg== @@ -403,6 +426,16 @@ "@babel/helper-wrap-function" "^7.13.0" "@babel/types" "^7.13.0" +"@babel/helper-replace-supers@^7.12.1": + version "7.13.12" + resolved "https://registry.npmjs.org/@babel/helper-replace-supers/-/helper-replace-supers-7.13.12.tgz#6442f4c1ad912502481a564a7386de0c77ff3804" + integrity sha512-Gz1eiX+4yDO8mT+heB94aLVNCL+rbuT2xy4YfyNqu8F+OI6vMvJK891qGBTqL9Uc8wxEvRW92Id6G7sDen3fFw== + dependencies: + "@babel/helper-member-expression-to-functions" "^7.13.12" + "@babel/helper-optimise-call-expression" "^7.12.13" + "@babel/traverse" "^7.13.0" + "@babel/types" "^7.13.12" + "@babel/helper-replace-supers@^7.12.13", "@babel/helper-replace-supers@^7.13.0": version "7.13.0" resolved "https://registry.yarnpkg.com/@babel/helper-replace-supers/-/helper-replace-supers-7.13.0.tgz#6034b7b51943094cb41627848cb219cb02be1d24" @@ -434,7 +467,7 @@ dependencies: "@babel/types" "^7.12.1" -"@babel/helper-split-export-declaration@^7.12.13": +"@babel/helper-split-export-declaration@^7.11.0", "@babel/helper-split-export-declaration@^7.12.13": version "7.12.13" resolved "https://registry.yarnpkg.com/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.12.13.tgz#e9430be00baf3e88b0e13e6f9d4eaf2136372b05" integrity sha512-tCJDltF83htUtXx5NLcaDqRmknv652ZWCHyoTETf1CXYJdPC7nohZohjUgieXhv0hTJdRf2FjDueFehdNucpzg== @@ -494,7 +527,7 @@ resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.13.11.tgz#f93ebfc99d21c1772afbbaa153f47e7ce2f50b88" integrity sha512-PhuoqeHoO9fc4ffMEVk4qb/w/s2iOSWohvbHxLtxui0eBg3Lg5gN1U8wp1V1u61hOWkPQJJyJzGH6Y+grwkq8Q== -"@babel/parser@^7.13.9": +"@babel/parser@^7.13.13", "@babel/parser@^7.13.9": version "7.13.13" resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.13.13.tgz#42f03862f4aed50461e543270916b47dd501f0df" integrity sha512-OhsyMrqygfk5v8HmWwOzlYjJrtLaFhF34MrfG/Z73DgYCI6ojNUTUp2TYbtnjo8PegeJp12eamsNettCQjKjVw== @@ -1836,7 +1869,7 @@ dependencies: regenerator-runtime "^0.13.4" -"@babel/template@^7.0.0", "@babel/template@^7.12.13", "@babel/template@^7.4.0", "@babel/template@^7.4.4", "@babel/template@^7.5.4", "@babel/template@^7.6.0", "@babel/template@^7.7.4", "@babel/template@^7.8.6": +"@babel/template@^7.0.0", "@babel/template@^7.10.4", "@babel/template@^7.12.13", "@babel/template@^7.4.0", "@babel/template@^7.4.4", "@babel/template@^7.5.4", "@babel/template@^7.6.0", "@babel/template@^7.7.4", "@babel/template@^7.8.6": version "7.12.13" resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.12.13.tgz#530265be8a2589dbb37523844c5bcb55947fb327" integrity sha512-/7xxiGA57xMo/P2GVvdEumr8ONhFOhfgq2ihK3h1e6THqzTAkHbkXgB0xI9yeTfIUoH3+oAeHhqm/I43OTbbjA== @@ -1860,6 +1893,20 @@ globals "^11.1.0" lodash "^4.17.19" +"@babel/traverse@^7.12.1": + version "7.13.13" + resolved "https://registry.npmjs.org/@babel/traverse/-/traverse-7.13.13.tgz#39aa9c21aab69f74d948a486dd28a2dbdbf5114d" + integrity sha512-CblEcwmXKR6eP43oQGG++0QMTtCjAsa3frUuzHoiIJWpaIIi8dwMyEFUJoXRLxagGqCK+jALRwIO+o3R9p/uUg== + dependencies: + "@babel/code-frame" "^7.12.13" + "@babel/generator" "^7.13.9" + "@babel/helper-function-name" "^7.12.13" + "@babel/helper-split-export-declaration" "^7.12.13" + "@babel/parser" "^7.13.13" + "@babel/types" "^7.13.13" + debug "^4.1.0" + globals "^11.1.0" + "@babel/types@7.11.5": version "7.11.5" resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.11.5.tgz#d9de577d01252d77c6800cee039ee64faf75662d" @@ -1887,7 +1934,7 @@ lodash "^4.17.19" to-fast-properties "^2.0.0" -"@babel/types@^7.12.10", "@babel/types@^7.13.0": +"@babel/types@^7.13.0", "@babel/types@^7.13.12", "@babel/types@^7.13.13": version "7.13.14" resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.13.14.tgz#c35a4abb15c7cd45a2746d78ab328e362cbace0d" integrity sha512-A2aa3QTkWoyqsZZFl56MLUsfmh7O0gN41IPvXAE/++8ojpbz12SszD7JEGYVdn4f9Kt4amIei07swF1h4AqmmQ== @@ -8578,7 +8625,7 @@ babel-eslint@10.0.3: eslint-visitor-keys "^1.0.0" resolve "^1.12.0" -babel-eslint@10.1.0, babel-eslint@^10.1.0: +babel-eslint@10.1.0: 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== @@ -15415,9 +15462,9 @@ eslint-scope@^4.0.0, eslint-scope@^4.0.3: esrecurse "^4.1.0" estraverse "^4.1.1" -eslint-scope@^5.0.0, eslint-scope@^5.1.1: +eslint-scope@^5.0.0, eslint-scope@^5.1.0, eslint-scope@^5.1.1: version "5.1.1" - resolved "https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-5.1.1.tgz#e786e59a66cb92b3f6c1fb0d508aab174848f48c" + resolved "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz#e786e59a66cb92b3f6c1fb0d508aab174848f48c" integrity sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw== dependencies: esrecurse "^4.3.0"