Skip to content

Commit 0248fb2

Browse files
committed
Fix linting in examples and update React version.
1 parent 57295da commit 0248fb2

File tree

2 files changed

+26
-3
lines changed

2 files changed

+26
-3
lines changed

examples/.eslintrc

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"extends": [
3+
"plugin:prettier/recommended",
4+
"plugin:promise/recommended",
5+
"plugin:react/recommended"
6+
],
7+
"parser": "babel-eslint",
8+
"parserOptions": {
9+
"ecmaFeatures": {
10+
"jsx": true
11+
}
12+
},
13+
"plugins": ["jest", "promise", "react", "react-hooks"],
14+
"rules": {
15+
"react/prop-types": "none",
16+
"react-hooks/rules-of-hooks": "error"
17+
},
18+
"settings": {
19+
"react": {
20+
"version": "16.8"
21+
}
22+
}
23+
}

examples/basic-hook/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
"version": "0.0.0",
44
"private": true,
55
"dependencies": {
6-
"react": "16.8.0-alpha.0",
7-
"react-async": "3.11.0",
8-
"react-dom": "16.8.0-alpha.0",
6+
"react": "16.8.3",
7+
"react-async": "latest",
8+
"react-dom": "16.8.3",
99
"react-scripts": "2.1.2"
1010
},
1111
"scripts": {

0 commit comments

Comments
 (0)