From 47a3c1b8077bfdcd04a78f6893535bd72098c310 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Mon, 25 Feb 2019 02:15:38 +0300 Subject: Deps, rules of hooks --- vnext/.eslintrc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'vnext/.eslintrc') diff --git a/vnext/.eslintrc b/vnext/.eslintrc index a887dfb2..2555e757 100644 --- a/vnext/.eslintrc +++ b/vnext/.eslintrc @@ -2,7 +2,8 @@ "extends": [ "eslint:recommended", "plugin:react/recommended", - "plugin:jest/recommended" + "plugin:jest/recommended", + "react-hooks" ], "parser": "babel-eslint", "parserOptions": { @@ -60,6 +61,8 @@ "jest/no-focused-tests": "error", "jest/no-identical-title": "error", "jest/prefer-to-have-length": "warn", - "jest/valid-expect": "error" + "jest/valid-expect": "error", + + "react-hooks/rules-of-hooks": "error" } } -- cgit v1.2.3