Skip to content

Commit d7afcdc

Browse files
authored
Add eslint-plugin-react-hooks (per React's recommendation) (wix#821)
1 parent 1f76880 commit d7afcdc

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.eslintrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module.exports = {
2-
extends: ['plugin:@typescript-eslint/recommended', 'wix/react-native'],
2+
extends: ['plugin:@typescript-eslint/recommended', 'wix/react-native', 'plugin:react-hooks/recommended'],
33
parser: '@typescript-eslint/parser',
44
rules: {
55
'arrow-parens': 'off',

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@
7979
"babel-preset-react-native": "*",
8080
"eslint": "^5.16.0",
8181
"eslint-config-wix": "^1.1.28",
82+
"eslint-plugin-react-hooks": "^4.0.4",
8283
"eslint-plugin-uilib": "file:./eslint-rules",
8384
"gatsby": "^2.21.21",
8485
"gh-pages": "^1.1.0",

0 commit comments

Comments
 (0)