Browse Source

fix: import React

pull/11496/head
afc163 9 months ago
parent
commit
0a5be18d79
  1. 12
      biome.json
  2. 11
      jsconfig.json
  3. 1
      src/app.tsx
  4. 2
      tsconfig.json

12
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/**",

11
jsconfig.json

@ -1,11 +0,0 @@
{
"compilerOptions": {
"jsx": "react-jsx",
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"baseUrl": ".",
"paths": {
"@/*": ["./src/*"]
}
}
}

1
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,

2
tsconfig.json

@ -4,7 +4,7 @@
"module": "esnext",
"moduleResolution": "node",
"importHelpers": true,
"jsx": "preserve",
"jsx": "react-jsx",
"esModuleInterop": true,
"sourceMap": true,
"baseUrl": "./",

Loading…
Cancel
Save