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,