From 48cd779ed284e0a02df5eb64c1caa1b7d0a132ae Mon Sep 17 00:00:00 2001 From: Adrian Moennich Date: Wed, 15 Jun 2022 12:06:44 +0200 Subject: [PATCH] Fix eslint babel config path --- .eslintrc.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.eslintrc.js b/.eslintrc.js index 91fd206..5e772a6 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -45,6 +45,7 @@ try { const reactPath = resolve.sync('react', {basedir: indicoBaseDir}); const react = require(reactPath); +const babelConfigFile = path.join(indicoBaseDir, 'babel.config.js'); module.exports = _.merge(defaultConfig, { settings: { @@ -60,4 +61,9 @@ module.exports = _.merge(defaultConfig, { }, }, }, + parserOptions: { + babelOptions: { + configFile: babelConfigFile + } + } });