From 22bb947642dc02888964e2050d134429e8938182 Mon Sep 17 00:00:00 2001 From: Dan Abramov Date: Thu, 21 Feb 2019 19:41:35 +0000 Subject: [PATCH] Release eslint-plugin-react-hooks@1.2.0 --- CHANGELOG.md | 10 +++++++--- packages/eslint-plugin-react-hooks/README.md | 5 ++++- packages/eslint-plugin-react-hooks/package.json | 2 +- 3 files changed, 12 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index abcc9751969ba..aefe0f5410051 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,11 +10,15 @@ ### React DOM -- Fix a bug that caused inputs to behave incorrectly in UMD builds. ([@gaearon](https://github.com/gaearon) in [#14914](https://github.com/facebook/react/pull/14914)) -- Fix a bug that caused render phase updates to be discarded. ([@gaearon](https://github.com/gaearon) in [#14852](https://github.com/facebook/react/pull/14852)) +* Fix a bug that caused inputs to behave incorrectly in UMD builds. ([@gaearon](https://github.com/gaearon) in [#14914](https://github.com/facebook/react/pull/14914)) +* Fix a bug that caused render phase updates to be discarded. ([@gaearon](https://github.com/gaearon) in [#14852](https://github.com/facebook/react/pull/14852)) ### React DOM Server -- Unwind the context stack when a stream is destroyed without completing, to prevent incorrect values during a subsequent render. ([@overlookmotel](https://github.com/overlookmotel) in [#14706](https://github.com/facebook/react/pull/14706/)) +* Unwind the context stack when a stream is destroyed without completing, to prevent incorrect values during a subsequent render. ([@overlookmotel](https://github.com/overlookmotel) in [#14706](https://github.com/facebook/react/pull/14706/)) + +## ESLint Plugin for React Hooks + +* Add a new recommended `exhaustive-deps` rule. ([@gaearon](https://github.com/gaearon) in [#14636](https://github.com/facebook/react/pull/14636)) ## 16.8.2 (February 14, 2019) diff --git a/packages/eslint-plugin-react-hooks/README.md b/packages/eslint-plugin-react-hooks/README.md index 74bce20840ef3..9b59fc3407a6b 100644 --- a/packages/eslint-plugin-react-hooks/README.md +++ b/packages/eslint-plugin-react-hooks/README.md @@ -28,7 +28,8 @@ Then add it to your ESLint configuration: ], "rules": { // ... - "react-hooks/rules-of-hooks": "error" + "react-hooks/rules-of-hooks": "error", + "react-hooks/exhaustive-deps": "warning" } } ``` @@ -37,6 +38,8 @@ Then add it to your ESLint configuration: Please refer to the [Rules of Hooks](https://reactjs.org/docs/hooks-rules.html) documentation and the [Hooks FAQ](https://reactjs.org/docs/hooks-faq.html#what-exactly-do-the-lint-rules-enforce) to learn more about this rule. +For feedback about the `exhaustive-deps` rule, please post in [this thread](https://github.com/facebook/react/issues/14920). + ## License MIT diff --git a/packages/eslint-plugin-react-hooks/package.json b/packages/eslint-plugin-react-hooks/package.json index 0cde73ed0944d..7a8c98282a8da 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.1.0", + "version": "1.2.0", "repository": { "type": "git", "url": "https://github.com/facebook/react.git",