From 06728290533bce24b0893461c3f4ddc1547f85b4 Mon Sep 17 00:00:00 2001 From: Dan Abramov Date: Wed, 21 Aug 2019 19:14:34 +0100 Subject: [PATCH] Bump ESLint plugin to 2.0 (#16528) --- CHANGELOG.md | 4 ++++ packages/eslint-plugin-react-hooks/package.json | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 80180a8e4e3df..cf391ed9f135f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -41,6 +41,10 @@ * Warn in Strict Mode if effects are scheduled outside an `act()` call. ([@threepointone](https://github.com/threepointone) in [#15763](https://github.com/facebook/react/pull/15763) and [#16041](https://github.com/facebook/react/pull/16041)) * Warn when using `act` from the wrong renderer. ([@threepointone](https://github.com/threepointone) in [#15756](https://github.com/facebook/react/pull/15756)) +### ESLint Plugin: React Hooks + +* Report Hook calls at the top level as a violation. ([gaearon](https://github.com/gaearon) in [#16455](https://github.com/facebook/react/pull/16455)) + ## 16.8.6 (March 27, 2019) ### React DOM diff --git a/packages/eslint-plugin-react-hooks/package.json b/packages/eslint-plugin-react-hooks/package.json index dd970825f9189..603b6c8574ef0 100644 --- a/packages/eslint-plugin-react-hooks/package.json +++ b/packages/eslint-plugin-react-hooks/package.json @@ -1,7 +1,7 @@ { "name": "eslint-plugin-react-hooks", "description": "ESLint rules for React Hooks", - "version": "1.7.0", + "version": "2.0.0", "repository": { "type": "git", "url": "https://github.com/facebook/react.git",