From 60a2b483a505e0d10748751d32500bf0704d2137 Mon Sep 17 00:00:00 2001 From: link Date: Wed, 6 Nov 2024 16:32:41 -0800 Subject: [PATCH] update --- src/dashboard/.eslintrc.js | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/src/dashboard/.eslintrc.js b/src/dashboard/.eslintrc.js index c3a5b51b..71c1b510 100644 --- a/src/dashboard/.eslintrc.js +++ b/src/dashboard/.eslintrc.js @@ -2,8 +2,19 @@ SPDX-License-Identifier: Apache-2.0 */ module.exports = { - parser: 'babel-eslint', - extends: ['airbnb', 'prettier', 'plugin:compat/recommended'], + parser: '@babel/eslint-parser', + extends: [ + 'airbnb', + 'prettier', + 'plugin:compat/recommended', + ], + + parserOptions: { + requireConfigFile: false, + babelOptions: { + presets: ['@babel/preset-env', '@babel/preset-react'], + }, + }, env: { browser: true, node: true,