From a1402511f501fdaf51e6bacde2152cc40e310de4 Mon Sep 17 00:00:00 2001 From: Pieter De Baets Date: Mon, 3 Oct 2016 03:09:14 -0700 Subject: [PATCH] Update .eslintrc Reviewed By: davidaurelio Differential Revision: D3960563 fbshipit-source-id: 1c7b238e6fa1040b0d29bafd6f878c1319b040da --- .eslintrc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.eslintrc b/.eslintrc index 7bd17b585..d292a9b3b 100644 --- a/.eslintrc +++ b/.eslintrc @@ -221,6 +221,9 @@ "no-bitwise": 1, // disallow use of bitwise operators (off by default) "no-plusplus": 0, // disallow use of unary operators, ++ and -- (off by default) + // React Plugin + // The following rules are made available via `eslint-plugin-react`. + "react/display-name": 0, "react/jsx-boolean-value": 0, "react/jsx-no-duplicate-props": 2, @@ -228,8 +231,8 @@ "react/jsx-sort-props": 0, "react/jsx-uses-react": 1, "react/jsx-uses-vars": 1, - "react/no-did-mount-set-state": [1, "allow-in-func"], - "react/no-did-update-set-state": [1, "allow-in-func"], + "react/no-did-mount-set-state": 1, + "react/no-did-update-set-state": 1, "react/no-multi-comp": 0, "react/no-string-refs": 1, "react/no-unknown-property": 0,