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:
Rinku Chaudhari 2023-01-18 11:22:44 +05:45 committed by GitHub
parent 8f0ab0fa1e
commit 055624f85b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 1 additions and 3 deletions

View File

@ -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(

View File

@ -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';

View File

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