From 141c68bd8e911bedf19c6aec122e29a1203e6a2f Mon Sep 17 00:00:00 2001 From: Karolis Narkevicius Date: Thu, 5 Sep 2019 11:13:20 +0100 Subject: [PATCH] Detect react version to apply rules appropriately This way, for example, `react/jsx-fragments` rule would be only applied if you use React < 16.2 --- eslintrc.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eslintrc.json b/eslintrc.json index f8f4087a..27f9598f 100644 --- a/eslintrc.json +++ b/eslintrc.json @@ -9,7 +9,7 @@ "settings": { "react": { - "version": "16.0" + "version": "detect" } },