From c7aa754efebddbebbfc446eccd8c4d1fc2ce3387 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=8C=E8=B4=A7=E6=9C=BA=E5=99=A8=E4=BA=BA?= Date: Fri, 10 Jun 2022 20:35:28 +0800 Subject: [PATCH] chore: update ts config (#36000) --- components/auto-complete/__tests__/index.test.js | 4 ++-- tsconfig.json | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/components/auto-complete/__tests__/index.test.js b/components/auto-complete/__tests__/index.test.js index d8181eac37..7686e70722 100644 --- a/components/auto-complete/__tests__/index.test.js +++ b/components/auto-complete/__tests__/index.test.js @@ -1,9 +1,9 @@ import React from 'react'; -import { render, fireEvent } from '../../../tests/utils'; import AutoComplete from '..'; -import Input from '../../input'; import mountTest from '../../../tests/shared/mountTest'; import rtlTest from '../../../tests/shared/rtlTest'; +import { fireEvent, render } from '../../../tests/utils'; +import Input from '../../input'; describe('AutoComplete', () => { mountTest(AutoComplete); diff --git a/tsconfig.json b/tsconfig.json index f594bea7bc..987d53ff4e 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -10,7 +10,9 @@ "moduleResolution": "node", "esModuleInterop": true, "experimentalDecorators": true, - "jsx": "preserve", + "jsx": "react", + "jsxFactory": "React.createElement", + "jsxFragmentFactory": "React.Fragment", "noUnusedParameters": true, "noUnusedLocals": true, "noImplicitAny": true,