diff --git a/README.md b/README.md index fafe2a603fb0..28c0c5041221 100644 --- a/README.md +++ b/README.md @@ -22,10 +22,6 @@ An enterprise-class UI design language and React UI library. [github-action-url]: https://github.com/ant-design/ant-design/actions?query=workflow%3A%22%E2%9C%85+test%22 [codecov-image]: https://img.shields.io/codecov/c/github/ant-design/ant-design/master.svg?style=flat-square [codecov-url]: https://codecov.io/gh/ant-design/ant-design/branch/master -[david-image]: https://img.shields.io/david/ant-design/ant-design?style=flat-square -[david-dev-url]: https://david-dm.org/ant-design/ant-design?type=dev -[david-dev-image]: https://img.shields.io/david/dev/ant-design/ant-design?style=flat-square -[david-url]: https://david-dm.org/ant-design/ant-design [download-image]: https://img.shields.io/npm/dm/antd.svg?style=flat-square [download-url]: https://npmjs.org/package/antd [lgtm-image]: https://flat.badgen.net/lgtm/alerts/g/ant-design/ant-design diff --git a/components/affix/index.tsx b/components/affix/index.tsx index 5227d84af9f7..8efae73988f4 100644 --- a/components/affix/index.tsx +++ b/components/affix/index.tsx @@ -256,7 +256,7 @@ class Affix extends React.Component { } // =================== Render =================== - render = () => { + render() { const { getPrefixCls } = this.context; const { affixStyle, placeholderStyle } = this.state; const { prefixCls, children } = this.props; @@ -290,7 +290,7 @@ class Affix extends React.Component { ); - }; + } } export default Affix; diff --git a/components/anchor/Anchor.tsx b/components/anchor/Anchor.tsx index 5fd416009e88..491a92eebf1d 100644 --- a/components/anchor/Anchor.tsx +++ b/components/anchor/Anchor.tsx @@ -256,7 +256,7 @@ export default class Anchor extends React.Component { + render() { const { getPrefixCls, direction } = this.context; const { @@ -328,5 +328,5 @@ export default class Anchor extends React.Component ); - }; + } } diff --git a/components/table/__tests__/Table.filter.test.js b/components/table/__tests__/Table.filter.test.js index f096908e7023..df68745c5c8f 100644 --- a/components/table/__tests__/Table.filter.test.js +++ b/components/table/__tests__/Table.filter.test.js @@ -1278,10 +1278,10 @@ describe('Table.filter', () => { }); }; - render = () => { + render() { const { cols } = this.state; return ; - }; + } } mount(); diff --git a/package.json b/package.json index c18961678498..ecde8300de72 100644 --- a/package.json +++ b/package.json @@ -174,7 +174,7 @@ "@types/react-window": "^1.8.2", "@types/warning": "^3.0.0", "@typescript-eslint/eslint-plugin": "^5.0.0", - "@typescript-eslint/parser": "^4.1.1", + "@typescript-eslint/parser": "^5.0.0", "@wojtekmaj/enzyme-adapter-react-17": "^0.6.0", "antd-img-crop": "^3.1.1", "antd-pro-merge-less": "^3.0.11",