diff --git a/.eslintrc b/.eslintrc index 9f845b79a..818b6e36c 100644 --- a/.eslintrc +++ b/.eslintrc @@ -2,7 +2,8 @@ "rules": { "indent": [ 2, - 2 + 2, + { "SwitchCase": 1 } ], "quotes": [ 2, diff --git a/components/notification/index.jsx b/components/notification/index.jsx index 00bf33f68..6a8722672 100644 --- a/components/notification/index.jsx +++ b/components/notification/index.jsx @@ -13,12 +13,12 @@ function callback(key, btnCose) { function getNotificationInstance() { notificationInstance = notificationInstance || Notification.newInstance({ - prefixCls: 'ant-notification', - style: { - top: top, - right: 0 - } - }); + prefixCls: 'ant-notification', + style: { + top: top, + right: 0 + } + }); return notificationInstance; } diff --git a/components/table/filterMenu.jsx b/components/table/filterMenu.jsx index c1184955c..715d4cc42 100644 --- a/components/table/filterMenu.jsx +++ b/components/table/filterMenu.jsx @@ -51,17 +51,17 @@ var FilterMenu = React.createClass({