From ff295e1147b4b590a17b5aa7fc823fd2a4754aa2 Mon Sep 17 00:00:00 2001 From: yiminghe Date: Mon, 13 Jul 2015 21:40:04 +0800 Subject: [PATCH] fix lint rules --- .eslintrc | 4 +++- components/message/index.jsx | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.eslintrc b/.eslintrc index 7efcf2cabb..9f845b79a5 100644 --- a/.eslintrc +++ b/.eslintrc @@ -15,7 +15,9 @@ "semi": [ 2, "always" - ] + ], + "react/react-in-jsx-scope": 1, + "react/jsx-uses-react": 1 }, "env": { "es6": true, diff --git a/components/message/index.jsx b/components/message/index.jsx index dbef951ba1..5a951b7aee 100644 --- a/components/message/index.jsx +++ b/components/message/index.jsx @@ -1,6 +1,6 @@ 'use strict'; -//import React from 'react'; +import React from 'react'; import Notification from 'rc-notification'; var defaultDuration = 1.5;