Skip to content

Commit c5483b3

Browse files
committed
chore(eslint): Fix JSX parsing for website
1 parent f682ddb commit c5483b3

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

babel.config.cjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ const { IS_TEST_ENV } = require(`@undercut/config`);
55
module.exports = {
66
babelrcRoots: [
77
`packages/*/`,
8+
`website/`,
89
],
910
presets: [
1011
[

website/.babelrc.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
"use strict";
2+
3+
module.exports = {
4+
plugins: [
5+
// This is used only for ESLint
6+
"@babel/plugin-syntax-jsx",
7+
],
8+
};

website/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
"react-dom": "^16.14.0"
2424
},
2525
"devDependencies": {
26+
"@babel/plugin-syntax-jsx": "^7.12.1",
2627
"@docusaurus/core": "^2.0.0-alpha.66",
2728
"@docusaurus/preset-classic": "^2.0.0-alpha.66",
2829
"eslint": "^7.11.0",

0 commit comments

Comments
 (0)