From 16869c672ab4f05d94703ad9822970be90c7b42b Mon Sep 17 00:00:00 2001 From: Yuya Ochiai Date: Wed, 25 Jan 2017 00:18:45 +0900 Subject: [PATCH] Raise warning about stateful components It would be useful in future refactoring --- .eslintrc.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.eslintrc.json b/.eslintrc.json index f2e32637..b5743439 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -9,6 +9,7 @@ "no-underscore-dangle": 1, "react/jsx-indent": [2, 2], "react/jsx-indent-props": [2, 2], - "react/prefer-es6-class": 1 + "react/prefer-es6-class": 1, + "react/no-set-state": 1 } }