From 0a5be18d792a7b6e2df4a70ffb09801bbe8f0014 Mon Sep 17 00:00:00 2001 From: afc163 Date: Fri, 4 Jul 2025 12:39:46 +0800 Subject: [PATCH] fix: import React --- biome.json | 12 ++++++------ jsconfig.json | 11 ----------- src/app.tsx | 1 + tsconfig.json | 2 +- 4 files changed, 8 insertions(+), 18 deletions(-) delete mode 100644 jsconfig.json diff --git a/biome.json b/biome.json index 09e0a4ae..f5455603 100644 --- a/biome.json +++ b/biome.json @@ -4,12 +4,12 @@ "ignoreUnknown": true, "includes": [ "**", - "!**/.umi", - "!**/.umi-production", - "!**/.umi-test", - "!**/.umi-test-production", - "!**/src/services", - "!**/mock", + "!**/.umi/**", + "!**/.umi-production/**", + "!**/.umi-test/**", + "!**/.umi-test-production/**", + "!**/src/services/**", + "!**/mock/**", "!**/dist/**", "!**/server/**", "!**/public/**", diff --git a/jsconfig.json b/jsconfig.json deleted file mode 100644 index 197bee5d..00000000 --- a/jsconfig.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "compilerOptions": { - "jsx": "react-jsx", - "emitDecoratorMetadata": true, - "experimentalDecorators": true, - "baseUrl": ".", - "paths": { - "@/*": ["./src/*"] - } - } -} diff --git a/src/app.tsx b/src/app.tsx index a856a922..eb530156 100644 --- a/src/app.tsx +++ b/src/app.tsx @@ -3,6 +3,7 @@ import type { Settings as LayoutSettings } from '@ant-design/pro-components'; import { SettingDrawer } from '@ant-design/pro-components'; import type { RunTimeLayoutConfig } from '@umijs/max'; import { history, Link } from '@umijs/max'; +import React from 'react'; import { AvatarDropdown, AvatarName, diff --git a/tsconfig.json b/tsconfig.json index 85733f68..6b708b4a 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -4,7 +4,7 @@ "module": "esnext", "moduleResolution": "node", "importHelpers": true, - "jsx": "preserve", + "jsx": "react-jsx", "esModuleInterop": true, "sourceMap": true, "baseUrl": "./",