Skip to content

Commit ac68954

Browse files
authored
chore: use new jsx transform (#1278)
1 parent b0388d8 commit ac68954

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

client/src/webview/DataViewer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Copyright © 2023, SAS Institute Inc., Cary, NC, USA. All Rights Reserved.
22
// SPDX-License-Identifier: Apache-2.0
3-
import { createElement, useMemo } from "react";
3+
import { useMemo } from "react";
44
import { createRoot } from "react-dom/client";
55

66
import { AgGridReact } from "ag-grid-react";

client/tsconfig.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
{
22
"compilerOptions": {
33
"esModuleInterop": true,
4-
"jsx": "react",
5-
"jsxFactory": "createElement",
4+
"jsx": "react-jsx",
65
"lib": ["ES2019", "DOM"],
76
"module": "commonjs",
87
"outDir": "out",

eslint.config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ export default [
2525
"plugin:@typescript-eslint/recommended",
2626
"plugin:react/recommended",
2727
"plugin:react-hooks/recommended",
28+
"plugin:react/jsx-runtime",
2829
),
2930
),
3031
{
@@ -58,7 +59,6 @@ export default [
5859

5960
settings: {
6061
react: {
61-
pragma: "createElement",
6262
version: "detect",
6363
},
6464
},

0 commit comments

Comments
 (0)