-
-
Notifications
You must be signed in to change notification settings - Fork 46.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: support react 16 lint #46963
feat: support react 16 lint #46963
Conversation
Run & review this pull request in StackBlitz Codeflow. |
size-limit report 📦
|
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit bc6419e:
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #46963 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 732 732
Lines 12548 12548
Branches 3291 3291
=========================================
Hits 12548 12548 ☔ View full report in Codecov by Sentry. |
@@ -2,9 +2,9 @@ import React from 'react'; | |||
import { PoweroffOutlined } from '@ant-design/icons'; | |||
import { Button, Flex } from 'antd'; | |||
|
|||
const Text1 = () => '部署'; | |||
const Text1 = () => <>部署</>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
为啥改成 <>,字符串有啥问题吗?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
原来如此
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里改了就没意义了,建议直接加 ignore
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里是故意用组件+返回 string 放到 Button 下面的?可以这样用吗
<Button>
部署
</Button>
好了,这个不是改组建,不用发版,改的是 ci lint |
Background and solution 写一下?未来才容易找到代码改动的原因 |
补充了 |
[中文版模板 / Chinese template]
🤔 This is a ...
🔗 Related issue link
💡 Background and solution
因 5.13.0版本导致
Checkbox.Group
在 react 16 版本下有 ts 报错,现增加 react 16/17 环境 antd 组建是否有 ts 错误📝 Changelog
☑️ Self-Check before Merge