Skip to content

Commit

Permalink
fix: babelrc config for linter
Browse files Browse the repository at this point in the history
  • Loading branch information
tuliomir committed Feb 26, 2025
1 parent cabaa86 commit f345855
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"presets": ["@babel/preset-env", "@babel/preset-react"]
}
12 changes: 12 additions & 0 deletions config-overrides.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,17 @@ module.exports = function override(config) {
}),
];

// Add Babel configuration
config.module.rules.push({
test: /\.(js|jsx)$/,
exclude: /node_modules/,
use: {
loader: 'babel-loader',
options: {
presets: ['@babel/preset-env', '@babel/preset-react'],
},
},
});

return config;
};

0 comments on commit f345855

Please sign in to comment.