From 415a3d995be4d05520518f7ba09baba59f01c5ba Mon Sep 17 00:00:00 2001 From: Benjy Cui Date: Tue, 16 Feb 2016 14:07:09 +0800 Subject: [PATCH] style: update code style to please lint --- .eslintrc | 3 +- components/select/demo/coordinate.md | 4 +-- components/tree-select/demo/checkable.md | 40 ++++++++++++------------ components/tree-select/demo/treeData.md | 26 +++++++-------- 4 files changed, 36 insertions(+), 37 deletions(-) diff --git a/.eslintrc b/.eslintrc index 0019ae3401..c5036afdf7 100644 --- a/.eslintrc +++ b/.eslintrc @@ -30,7 +30,6 @@ "react/jsx-no-bind": 0, "no-param-reassign": 0, "max-len": 0, - "object-shorthand": 0, - "quote-props": 0 + "object-shorthand": 0 } } diff --git a/components/select/demo/coordinate.md b/components/select/demo/coordinate.md index 0db210ce27..4ab7efbaeb 100644 --- a/components/select/demo/coordinate.md +++ b/components/select/demo/coordinate.md @@ -14,8 +14,8 @@ const Option = Select.Option; const provinceData = ['浙江', '江苏']; const cityData = { - '浙江': ['杭州', '宁波', '温州'], - '江苏': ['南京', '苏州', '镇江'] + 浙江: ['杭州', '宁波', '温州'], + 江苏: ['南京', '苏州', '镇江'] }; diff --git a/components/tree-select/demo/checkable.md b/components/tree-select/demo/checkable.md index 96a5b54228..cd29f74293 100644 --- a/components/tree-select/demo/checkable.md +++ b/components/tree-select/demo/checkable.md @@ -10,30 +10,30 @@ import { TreeSelect } from 'antd'; const treeData = [{ - 'label': '节点一', - 'value': '0-0', - 'key': '0-0', - 'children': [{ - 'label': '子节点一', - 'value': '0-0-0', - 'key': '0-0-0', + label: '节点一', + value: '0-0', + key: '0-0', + children: [{ + label: '子节点一', + value: '0-0-0', + key: '0-0-0', }, { - 'label': '子节点二', - 'value': '0-0-1', - 'key': '0-0-1', + label: '子节点二', + value: '0-0-1', + key: '0-0-1', }], }, { - 'label': '节点二', - 'value': '0-1', - 'key': '0-1', - 'children': [{ - 'label': '子节点三', - 'value': '0-1-0', - 'key': '0-1-0', + label: '节点二', + value: '0-1', + key: '0-1', + children: [{ + label: '子节点三', + value: '0-1-0', + key: '0-1-0', }, { - 'label': '子节点四', - 'value': '0-1-1', - 'key': '0-1-1', + label: '子节点四', + value: '0-1-1', + key: '0-1-1', }], }]; diff --git a/components/tree-select/demo/treeData.md b/components/tree-select/demo/treeData.md index 13b5949e7c..0969becc03 100644 --- a/components/tree-select/demo/treeData.md +++ b/components/tree-select/demo/treeData.md @@ -10,22 +10,22 @@ import { TreeSelect } from 'antd'; const treeData = [{ - 'label': '节点一', - 'value': '0-0', - 'key': '0-0', - 'children': [{ - 'label': '子节点一', - 'value': '0-0-1', - 'key': '0-0-1', + label: '节点一', + value: '0-0', + key: '0-0', + children: [{ + label: '子节点一', + value: '0-0-1', + key: '0-0-1', }, { - 'label': '子节点二', - 'value': '0-0-2', - 'key': '0-0-2', + label: '子节点二', + value: '0-0-2', + key: '0-0-2', }], }, { - 'label': '节点二', - 'value': '0-1', - 'key': '0-1', + label: '节点二', + value: '0-1', + key: '0-1', }]; const Demo = React.createClass({