From 10cb8512b658477bf974272fcee26ab6acb26353 Mon Sep 17 00:00:00 2001 From: Ben Wheeler Date: Sun, 21 Jul 2019 21:37:30 -0400 Subject: [PATCH] set react version for eslint, to prevent lifecycle method errors --- src/.eslintrc.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/.eslintrc.js b/src/.eslintrc.js index 455a50634..e192471c4 100644 --- a/src/.eslintrc.js +++ b/src/.eslintrc.js @@ -7,5 +7,10 @@ module.exports = { globals: { process: true }, - plugins: ['json'] + plugins: ['json'], + settings: { + react: { + version: '16.2' // Prevent 16.3 lifecycle method errors + } + } };