diff --git a/plugins/woocommerce/.eslintrc.js b/plugins/woocommerce/.eslintrc.js index 03f9124652e..ec10e6f3e08 100644 --- a/plugins/woocommerce/.eslintrc.js +++ b/plugins/woocommerce/.eslintrc.js @@ -18,7 +18,7 @@ module.exports = { 'max-len': [ 2, { code: 140 } ], 'no-console': 1, }, - parser: 'babel-eslint', + parser: '@babel/eslint-parser', parserOptions: { ecmaVersion: 8, ecmaFeatures: { diff --git a/plugins/woocommerce/legacy/.eslintrc.js b/plugins/woocommerce/legacy/.eslintrc.js index 7c90a4dbbb8..772c5252e15 100644 --- a/plugins/woocommerce/legacy/.eslintrc.js +++ b/plugins/woocommerce/legacy/.eslintrc.js @@ -19,7 +19,7 @@ module.exports = { 'max-len': [ 2, { 'code': 140 } ], 'no-console': 1 }, - parser: 'babel-eslint', + parser: '@babel/eslint-parser', parserOptions: { ecmaVersion: 8, ecmaFeatures: { diff --git a/plugins/woocommerce/package.json b/plugins/woocommerce/package.json index 60b302e6cc6..61de271ec21 100644 --- a/plugins/woocommerce/package.json +++ b/plugins/woocommerce/package.json @@ -33,6 +33,7 @@ "devDependencies": { "@babel/cli": "7.12.8", "@babel/core": "7.12.9", + "@babel/eslint-parser": "^7.16.5", "@babel/polyfill": "7.12.1", "@babel/preset-env": "7.12.7", "@babel/register": "7.12.1", @@ -49,7 +50,6 @@ "@wordpress/babel-preset-default": "3.0.2", "@wordpress/eslint-plugin": "7.3.0", "autoprefixer": "9.8.6", - "babel-eslint": "10.1.0", "chai": "4.2.0", "chai-as-promised": "7.1.1", "config": "3.3.3", @@ -64,7 +64,6 @@ "jest": "^25.1.0", "lint-staged": "9.5.0", "mocha": "7.2.0", - "node-sass": "6.0.1", "prettier": "npm:wp-prettier@2.0.5", "stylelint": "^13.8.0", "stylelint-config-wordpress": "17.0.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 32ebcc63c6c..492be8a558d 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -215,6 +215,7 @@ importers: jest: ^25.1.0 lint-staged: 9.5.0 mocha: 7.2.0 + node-sass: 6.0.1 prettier: npm:wp-prettier@2.0.5 stylelint: ^13.8.0 stylelint-config-wordpress: 17.0.0 @@ -256,6 +257,7 @@ importers: jest: 25.5.4 lint-staged: 9.5.0 mocha: 7.2.0 + node-sass: 6.0.1 prettier: /wp-prettier/2.0.5 stylelint: 13.13.1 stylelint-config-wordpress: 17.0.0_stylelint@13.13.1 @@ -8637,7 +8639,7 @@ packages: create-hash: 1.2.0 inherits: 2.0.4 ripemd160: 2.0.2 - safe-buffer: 5.1.2 + safe-buffer: 5.2.1 sha.js: 2.4.11 /create-require/1.1.1: