mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-24 11:10:01 +08:00
reformat/typo: removed useless ts-ignore and 'ignore' typo fix (#40298)
* reformat/typo: removed useless ts-ignore and 'ignore' typo fix * fix: components/version/index.ts typescript error Co-authored-by: rinku.chaudhary <rinku.chaudhary@amniltech.com>
This commit is contained in:
parent
8f0ab0fa1e
commit
055624f85b
@ -54,7 +54,6 @@ export default function fromDumiProps<P extends object>(
|
||||
[
|
||||
(node: any) => JsonML.isElement(node) && JsonML.getTagName(node) === 'pre',
|
||||
(node: any, index: any) => {
|
||||
// @ts-ignore
|
||||
// ref: https://github.com/benjycui/bisheng/blob/master/packages/bisheng/src/bisheng-plugin-highlight/lib/browser.js#L7
|
||||
const attr = JsonML.getAttributes(node);
|
||||
return React.createElement(
|
||||
|
@ -1,7 +1,6 @@
|
||||
import type { FC } from 'react';
|
||||
import React, { useMemo } from 'react';
|
||||
/* eslint import/no-unresolved: 0 */
|
||||
// @ts-ignore
|
||||
import tokenMeta from 'antd/es/version/token-meta.json';
|
||||
import { getDesignToken } from 'antd-token-previewer';
|
||||
import { Table } from 'antd';
|
||||
|
@ -61,7 +61,7 @@ describe('Card', () => {
|
||||
it('should not render when actions is number', () => {
|
||||
const numberStub = 11;
|
||||
render(
|
||||
// @ts-ignore ingnore for the wrong action value
|
||||
// @ts-ignore ignore for the wrong action value
|
||||
<Card title="Card title" actions={numberStub}>
|
||||
<p>Card content</p>
|
||||
</Card>,
|
||||
|
Loading…
Reference in New Issue
Block a user