From 56942d55ebf41e203becdbededc0598d4c42da31 Mon Sep 17 00:00:00 2001 From: asmsuechan Date: Mon, 14 Aug 2017 11:02:56 +0900 Subject: [PATCH] Add eslint-plugin-react to .eslintrc --- .eslintrc | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.eslintrc b/.eslintrc index ac065a8b..0aa760df 100644 --- a/.eslintrc +++ b/.eslintrc @@ -1,10 +1,15 @@ { - "extends": ["standard", "standard-jsx"], + "extends": ["standard", "standard-jsx", "plugin:react/recommended"], + "plugins": ["react"], "rules": { "no-useless-escape": 0, "prefer-const": "warn", "no-unused-vars": "warn", "no-undef": "warn", - "no-lone-blocks": "warn" + "no-lone-blocks": "warn", + "react/prop-types": "warn", + "react/no-find-dom-node": "warn", + "react/no-direct-mutation-state": "warn", + "react/no-render-return-value": "warn" } }