Skip to content

Commit 83bc568

Browse files
authored
Upgrade deps (#326)
* Upgrade deps * Fix lint issues
1 parent 0b5b8a6 commit 83bc568

File tree

4 files changed

+982
-407
lines changed

4 files changed

+982
-407
lines changed

.vscode/settings.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
1-
{
2-
"prettier.configPath": "prettier.config.js"
3-
}
1+
{}

package.json

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"url": "git+https://github.com/fjmorant/react-native-nested-listview.git"
2222
},
2323
"dependencies": {
24-
"object-hash": "2.1.1",
24+
"object-hash": "2.2.0",
2525
"react-fast-compare": "3.2.0",
2626
"shortid": "2.2.16",
2727
"use-global-hook": "0.2.1"
@@ -31,26 +31,27 @@
3131
"react-native": "*"
3232
},
3333
"devDependencies": {
34-
"@babel/core": "7.8.4",
35-
"@babel/runtime": "7.12.18",
36-
"@react-native-community/eslint-config": "1.1.0",
37-
"@testing-library/jest-native": "^3.4.3",
38-
"@testing-library/react-native": "^7.1.0",
34+
"@babel/core": "7.15.5",
35+
"@babel/runtime": "7.15.4",
36+
"@react-native-community/eslint-config": "3.0.1",
37+
"@testing-library/jest-native": "3.4.3",
38+
"@testing-library/react-native": "7.2.0",
3939
"@types/jest": "25.2.3",
4040
"@types/object-hash": "1.3.4",
4141
"@types/react-native": "0.63.46",
4242
"@types/react-test-renderer": "17.0.1",
4343
"@types/shortid": "0.0.29",
44-
"@types/use-global-hook": "0.1.3",
44+
"@types/use-global-hook": "0.1.4",
4545
"babel-jest": "26.6.3",
46-
"codecov": "3.8.1",
47-
"eslint": "6.5.1",
46+
"codecov": "3.8.3",
47+
"eslint": "7.32.0",
48+
"eslint-plugin-prettier": "4.0.0",
4849
"istanbul": "0.4.5",
4950
"istanbul-api": "3.0.0",
5051
"istanbul-reports": "3.0.2",
5152
"jest": "25.1.0",
5253
"metro-react-native-babel-preset": "0.65.0",
53-
"prettier": "2.2.1",
54+
"prettier": "2.4.1",
5455
"prettier-eslint": "12.0.0",
5556
"react": "16.13.1",
5657
"react-native": "0.63.4",

src/NestedListView.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,8 @@ const NestedListView = React.memo(
111111
[generateIds],
112112
);
113113

114-
const [_root, setRoot]: [INode, (_root: INode) => void] = useState(
115-
defaultRootNode,
116-
);
114+
const [_root, setRoot]: [INode, (_root: INode) => void] =
115+
useState(defaultRootNode);
117116

118117
useEffect(() => {
119118
setRoot(

0 commit comments

Comments
 (0)