From cdaa0a54a454a1a65eebac5182acef68c0fedff5 Mon Sep 17 00:00:00 2001 From: Nelson Chan Date: Fri, 30 Jul 2021 12:27:54 +0800 Subject: [PATCH] Fix: use new version of babel-eslint-parser --- .eslintrc.js | 3 ++- package-lock.json | 41 +++++++++++++++++++---------------------- package.json | 2 +- 3 files changed, 22 insertions(+), 24 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index 426d53154..14dbe41fd 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -9,9 +9,10 @@ module.exports = { "eslint:recommended", "plugin:vue/vue3-recommended", ], - parser: "babel-eslint", + parser: "@babel/eslint-parser", parserOptions: { sourceType: "module", + requireConfigFile: false, }, rules: { // override/add rules settings here, such as: diff --git a/package-lock.json b/package-lock.json index 01e0e1385..c62dc8eed 100644 --- a/package-lock.json +++ b/package-lock.json @@ -96,6 +96,25 @@ } } }, + "@babel/eslint-parser": { + "version": "7.14.7", + "resolved": "https://registry.npmjs.org/@babel/eslint-parser/-/eslint-parser-7.14.7.tgz", + "integrity": "sha512-6WPwZqO5priAGIwV6msJcdc9TsEPzYeYdS/Xuoap+/ihkgN6dzHp2bcAAwyWZ5bLzk0vvjDmKvRwkqNaiJ8BiQ==", + "dev": true, + "requires": { + "eslint-scope": "^5.1.1", + "eslint-visitor-keys": "^2.1.0", + "semver": "^6.3.0" + }, + "dependencies": { + "semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "dev": true + } + } + }, "@babel/generator": { "version": "7.14.8", "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.14.8.tgz", @@ -1241,28 +1260,6 @@ "follow-redirects": "^1.10.0" } }, - "babel-eslint": { - "version": "10.1.0", - "resolved": "https://registry.npmjs.org/babel-eslint/-/babel-eslint-10.1.0.tgz", - "integrity": "sha512-ifWaTHQ0ce+448CYop8AdrQiBsGrnC+bMgfyKFdi6EsPLTAWG+QfyDeM6OH+FmWnKvEq5NnBMLvlBUPKQZoDSg==", - "dev": true, - "requires": { - "@babel/code-frame": "^7.0.0", - "@babel/parser": "^7.7.0", - "@babel/traverse": "^7.7.0", - "@babel/types": "^7.7.0", - "eslint-visitor-keys": "^1.0.0", - "resolve": "^1.12.0" - }, - "dependencies": { - "eslint-visitor-keys": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-1.3.0.tgz", - "integrity": "sha512-6J72N8UNa462wa/KFODt/PJ3IU60SDpC3QXC1Hjc1BXXpfL2C9R5+AU7jhe0F6GREqVMh4Juu+NY7xn+6dipUQ==", - "dev": true - } - } - }, "babel-plugin-add-module-exports": { "version": "0.2.1", "resolved": "https://registry.npmjs.org/babel-plugin-add-module-exports/-/babel-plugin-add-module-exports-0.2.1.tgz", diff --git a/package.json b/package.json index 000e5c94a..7b80ae39b 100644 --- a/package.json +++ b/package.json @@ -56,11 +56,11 @@ "vue-toastification": "^2.0.0-rc.1" }, "devDependencies": { + "@babel/eslint-parser": "^7.13.10", "@types/bootstrap": "^5.0.17", "@vitejs/plugin-legacy": "^1.5.0", "@vitejs/plugin-vue": "^1.3.0", "@vue/compiler-sfc": "^3.1.5", - "babel-eslint": "^10.1.0", "core-js": "^3.15.2", "eslint": "^7.31.0", "eslint-plugin-vue": "^7.14.0",