lint: remove useless ts-ignore comment (#40289)

This commit is contained in:
René Wang 2023-01-18 10:07:16 +08:00 committed by GitHub
parent cc1870d8bd
commit a2980e3d57
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 3 deletions

View File

@ -215,7 +215,6 @@ class Affix extends React.Component<InternalAffixProps, AffixState> {
this.setState(newState as AffixState);
};
// @ts-ignore TS6133
prepareMeasure = () => {
// event param is used before. Keep compatible ts define here.
this.setState({

View File

@ -253,7 +253,6 @@ describe('Anchor Render', () => {
<Link href={`#${hash2}`} title={hash2} />
</Anchor>,
// https://github.com/testing-library/react-testing-library/releases/tag/v13.0.0
// @ts-ignore
{ legacyRoot: true },
);
@ -377,7 +376,6 @@ describe('Anchor Render', () => {
<Link href={`#${hash2}`} title={hash2} />
</Anchor>,
// https://github.com/testing-library/react-testing-library/releases/tag/v13.0.0
// @ts-ignore
{ legacyRoot: true },
);