Skip to content

Commit

Permalink
chore: use new jsx transform (#1278)
Browse files Browse the repository at this point in the history
  • Loading branch information
scnwwu authored Nov 25, 2024
1 parent b0388d8 commit ac68954
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion client/src/webview/DataViewer.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright © 2023, SAS Institute Inc., Cary, NC, USA. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
import { createElement, useMemo } from "react";
import { useMemo } from "react";
import { createRoot } from "react-dom/client";

import { AgGridReact } from "ag-grid-react";
Expand Down
3 changes: 1 addition & 2 deletions client/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
{
"compilerOptions": {
"esModuleInterop": true,
"jsx": "react",
"jsxFactory": "createElement",
"jsx": "react-jsx",
"lib": ["ES2019", "DOM"],
"module": "commonjs",
"outDir": "out",
Expand Down
2 changes: 1 addition & 1 deletion eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ export default [
"plugin:@typescript-eslint/recommended",
"plugin:react/recommended",
"plugin:react-hooks/recommended",
"plugin:react/jsx-runtime",
),
),
{
Expand Down Expand Up @@ -58,7 +59,6 @@ export default [

settings: {
react: {
pragma: "createElement",
version: "detect",
},
},
Expand Down

0 comments on commit ac68954

Please sign in to comment.