diff --git a/src/dashboard/.eslintrc.js b/src/dashboard/.eslintrc.js index 409baefa..c3a5b51b 100644 --- a/src/dashboard/.eslintrc.js +++ b/src/dashboard/.eslintrc.js @@ -2,7 +2,7 @@ SPDX-License-Identifier: Apache-2.0 */ module.exports = { - parser: '@babel/eslint-parser', + parser: 'babel-eslint', extends: ['airbnb', 'prettier', 'plugin:compat/recommended'], env: { browser: true, diff --git a/src/dashboard/package.json b/src/dashboard/package.json index 5ac43dd4..15339eb1 100644 --- a/src/dashboard/package.json +++ b/src/dashboard/package.json @@ -97,7 +97,7 @@ "@umijs/preset-react": "^1.2.2", "antd-pro-merge-less": "^1.0.0", "antd-theme-webpack-plugin": "^1.2.0", - "@babel/eslint-parser": "^7.22.0", + "babel-eslint": "^10.0.1", "chalk": "^2.4.2", "check-prettier": "^1.0.1", "cross-env": "^5.2.0",