build: add react-hooks linting (#11006)

Fixed a couple of criticle errors and left the warnings as is (mostly
from react-hooks/exhaustive-deps).

Let's fix the warnings in future PRs as sometimes unexhaustive deps
are intentional.
This commit is contained in:
Jesse Yang
2020-09-22 15:09:22 -07:00
committed by GitHub
parent a491b6db41
commit 220c410df4
4 changed files with 18 additions and 12 deletions

View File

@@ -17,7 +17,12 @@
* under the License.
*/
module.exports = {
extends: ['airbnb', 'prettier', 'prettier/react'],
extends: [
'airbnb',
'prettier',
'prettier/react',
'plugin:react-hooks/recommended',
],
parser: 'babel-eslint',
parserOptions: {
ecmaFeatures: {