diff --git a/.prettierignore b/.prettierignore index 5676463006..329a7f4e28 100644 --- a/.prettierignore +++ b/.prettierignore @@ -1,4 +1,8 @@ +**/*.png **/*.svg +CODEOWNERS +.dockerignore +Dockerfile.ui-test package.json .umi .umi-production @@ -17,6 +21,8 @@ yarn-error.log *.snap components/*/*.js components/*/*.jsx +components/*/*.md +docs/**/*.md .gitignore .npmignore .prettierignore diff --git a/SECURITY.md b/SECURITY.md index f707d665a7..b751c38389 100644 --- a/SECURITY.md +++ b/SECURITY.md @@ -2,8 +2,7 @@ ## Supported Versions -Use this section to tell people about which versions of your project are -currently being supported with security updates. +Use this section to tell people about which versions of your project are currently being supported with security updates. | Version | Supported | | ------- | ------------------ | @@ -14,6 +13,4 @@ currently being supported with security updates. Use this section to tell people how to report a vulnerability. -Tell them where to go, how often they can expect to get an update on a -reported vulnerability, what to expect if the vulnerability is accepted or -declined, etc. +Tell them where to go, how often they can expect to get an update on a reported vulnerability, what to expect if the vulnerability is accepted or declined, etc. diff --git a/components/calendar/demo/customize-header.md b/components/calendar/demo/customize-header.md index b3e9abdc21..01e103a33c 100644 --- a/components/calendar/demo/customize-header.md +++ b/components/calendar/demo/customize-header.md @@ -57,9 +57,7 @@ ReactDOM.render( } return (
- - Custom header - + Custom header onTypeChange(e.target.value)} value={type}> diff --git a/components/cascader/demo/custom-dropdown.md b/components/cascader/demo/custom-dropdown.md index 70c9e6b0aa..33f366ff90 100644 --- a/components/cascader/demo/custom-dropdown.md +++ b/components/cascader/demo/custom-dropdown.md @@ -62,11 +62,7 @@ function dropdownRender(menus) { } ReactDOM.render( - , + , mountNode, ); ``` diff --git a/components/comment/demo/list.md b/components/comment/demo/list.md index 805bdc03e3..11c33daa36 100644 --- a/components/comment/demo/list.md +++ b/components/comment/demo/list.md @@ -30,16 +30,8 @@ const data = [

), datetime: ( - - - {moment() - .subtract(1, 'days') - .fromNow()} - + + {moment().subtract(1, 'days').fromNow()} ), }, @@ -55,16 +47,8 @@ const data = [

), datetime: ( - - - {moment() - .subtract(2, 'days') - .fromNow()} - + + {moment().subtract(2, 'days').fromNow()} ), }, diff --git a/components/form/demo/control-hooks.md b/components/form/demo/control-hooks.md index 8e698a9b41..c985e674e6 100644 --- a/components/form/demo/control-hooks.md +++ b/components/form/demo/control-hooks.md @@ -35,14 +35,14 @@ const Demo = () => { const onGenderChange = value => { switch (value) { - case "male": - form.setFieldsValue({ note: "Hi, man!" }); + case 'male': + form.setFieldsValue({ note: 'Hi, man!' }); return; - case "female": - form.setFieldsValue({ note: "Hi, lady!" }); + case 'female': + form.setFieldsValue({ note: 'Hi, lady!' }); return; - case "other": - form.setFieldsValue({ note: "Hi there!" }); + case 'other': + form.setFieldsValue({ note: 'Hi there!' }); return; } }; diff --git a/components/form/demo/register.md b/components/form/demo/register.md index 8cb1acb589..4d0b9aa334 100644 --- a/components/form/demo/register.md +++ b/components/form/demo/register.md @@ -251,7 +251,10 @@ const RegistrationForm = () => { name="agreement" valuePropName="checked" rules={[ - { validator:(_, value) => value ? Promise.resolve() : Promise.reject('Should accept agreement') }, + { + validator: (_, value) => + value ? Promise.resolve() : Promise.reject('Should accept agreement'), + }, ]} {...tailFormItemLayout} > diff --git a/components/list/demo/grid-test.md b/components/list/demo/grid-test.md index c004406fc4..50bf67ccdc 100644 --- a/components/list/demo/grid-test.md +++ b/components/list/demo/grid-test.md @@ -33,7 +33,7 @@ const data = [ { title: 'Title 5', }, - { + { title: 'Title 6', }, ]; @@ -57,11 +57,7 @@ ReactDOM.render( )} /> - } - /> + } /> - + { ); -} +}; ReactDOM.render(, mountNode); ``` diff --git a/components/radio/demo/badge.md b/components/radio/demo/badge.md index 88fbfa14eb..1cfb2b9d46 100644 --- a/components/radio/demo/badge.md +++ b/components/radio/demo/badge.md @@ -20,15 +20,12 @@ import { Radio, Badge } from 'antd'; ReactDOM.render( - - Click Me - + Click Me - - Not Me - + Not Me - -, mountNode); +
, + mountNode, +); ``` diff --git a/components/time-picker/demo/basic.md b/components/time-picker/demo/basic.md index 8aef219595..d4e8b54ed1 100644 --- a/components/time-picker/demo/basic.md +++ b/components/time-picker/demo/basic.md @@ -22,10 +22,7 @@ function onChange(time, timeString) { } ReactDOM.render( - , + , mountNode, ); ``` diff --git a/components/time-picker/demo/disabled.md b/components/time-picker/demo/disabled.md index dba590ac84..a66ffccfbc 100644 --- a/components/time-picker/demo/disabled.md +++ b/components/time-picker/demo/disabled.md @@ -17,11 +17,5 @@ A disabled state of the `TimePicker`. import { TimePicker } from 'antd'; import moment from 'moment'; -ReactDOM.render( - , - mountNode, -); +ReactDOM.render(, mountNode); ``` diff --git a/components/time-picker/demo/hide-column.md b/components/time-picker/demo/hide-column.md index 21b1488b2a..793cac85aa 100644 --- a/components/time-picker/demo/hide-column.md +++ b/components/time-picker/demo/hide-column.md @@ -19,11 +19,5 @@ import moment from 'moment'; const format = 'HH:mm'; -ReactDOM.render( - , - mountNode, -); +ReactDOM.render(, mountNode); ``` diff --git a/components/time-picker/demo/value.md b/components/time-picker/demo/value.md index 059041fe5d..a140eaf272 100644 --- a/components/time-picker/demo/value.md +++ b/components/time-picker/demo/value.md @@ -25,7 +25,7 @@ const Demo = () => { }; return ; -} +}; ReactDOM.render(, mountNode); ``` diff --git a/components/tree-select/demo/async.md b/components/tree-select/demo/async.md index b2b9eabae8..a670e59694 100644 --- a/components/tree-select/demo/async.md +++ b/components/tree-select/demo/async.md @@ -27,9 +27,7 @@ class Demo extends React.Component { }; genTreeNode = (parentId, isLeaf = false) => { - const random = Math.random() - .toString(36) - .substring(2, 6); + const random = Math.random().toString(36).substring(2, 6); return { id: random, pId: parentId, diff --git a/components/tree/demo/draggable.md b/components/tree/demo/draggable.md index a584b111cf..a34874c42d 100644 --- a/components/tree/demo/draggable.md +++ b/components/tree/demo/draggable.md @@ -71,7 +71,7 @@ class Demo extends React.Component { return callback(data[i], i, data); } if (data[i].children) { - loop(data[i].children, key, callback); + loop(data[i].children, key, callback); } } }; diff --git a/components/tree/demo/line.md b/components/tree/demo/line.md index 1e3a7c656b..755dca5192 100644 --- a/components/tree/demo/line.md +++ b/components/tree/demo/line.md @@ -70,7 +70,7 @@ const treeData = [ { title: 'leaf', key: '0-1-0-1', icon: }, ], }, - ] + ], }, ];