Skip to content

Commit b8ac4f0

Browse files
committed
Fix test errors
1 parent 301e0c4 commit b8ac4f0

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed

.eslintrc.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@
9494
"react-hooks/exhaustive-deps": "warn",
9595
"react/no-unescaped-entities": ["error", { "forbid": [">", "}"] }],
9696
"spaced-comment": "error",
97-
"use-isnan": "error"
97+
"use-isnan": "error",
98+
"react/react-in-jsx-scope": "off"
9899
}
99100
}

babel.config.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
11
module.exports = {
22
presets: [
33
['@babel/preset-env', { targets: { esmodules: true } }],
4-
'@babel/preset-react',
4+
[
5+
'@babel/preset-react',
6+
{
7+
runtime: 'automatic'
8+
}
9+
],
510
'@babel/preset-flow',
611
'@babel/preset-typescript'
712
]
8-
};
13+
};

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
"serve:a11y": "yarn workspace @patternfly/react-virtualized-extension serve:a11y"
2323
},
2424
"devDependencies": {
25-
"react": "^17.0.0 || ^18.0.0",
26-
"react-dom": "^17.0.0 || ^18.0.0",
25+
"react": "^17.0.0 || ^18.0.0 || ^19.0.0",
26+
"react-dom": "^17.0.0 || ^18.0.0 || ^19.0.0",
2727
"typescript": "^5.0.4",
2828
"@types/react": "^18.2.7",
2929
"@types/react-dom": "^18.2.4",

0 commit comments

Comments
 (0)