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({ 确定 清空 diff --git a/package.json b/package.json index 9b5d95d19..f72dadb99 100644 --- a/package.json +++ b/package.json @@ -69,8 +69,8 @@ "babel-loader": "^5.3.2", "css-animation": "~1.0.3", "css-loader": "^0.14.1", - "eslint": "^0.24.1", - "eslint-plugin-react": "~2.5.0", + "eslint": "^1.1.0", + "eslint-plugin-react": "~3.2.2", "extract-text-webpack-plugin": "^0.8.1", "gh-pages": "~0.3.1", "json-loader": "^0.5.1",