Skip to content

Commit 9cd4484

Browse files
committed
Update dependencies
1 parent fcfa37c commit 9cd4484

File tree

6 files changed

+1630
-2156
lines changed

6 files changed

+1630
-2156
lines changed

.hooks/pre-commit

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
# https://git-scm.com/docs/githooks
3+
4+
yarn lint-staged

example/__test__/Permissions.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {driver, By2} from 'selenium-appium';
1+
import {By2, driver} from 'selenium-appium';
22
import {until} from 'selenium-webdriver';
33

44
const setup = require('../jest-setups/jest.setup');

example/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React from 'react';
2-
import {Provider as PaperProvider} from 'react-native-paper';
32
import {AppRegistry} from 'react-native';
3+
import {Provider as PaperProvider} from 'react-native-paper';
44
import {App} from './App';
55
import {name as appName} from './app.json';
66
import theme from './theme';

package.json

Lines changed: 16 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,13 @@
3030
"mock.js"
3131
],
3232
"scripts": {
33-
"start": "react-native start",
34-
"prepare": "bob build",
3533
"format": "prettier '**/*.{js,json,md,ts,tsx}' --write",
3634
"lint": "eslint \"./**/*.{js,ts,tsx}\"",
35+
"prepare": "yarn setup-hooks && bob build",
36+
"setup-hooks": "git config --local core.hooksPath .hooks",
3737
"tscheck": "tsc --project ./ --noEmit"
3838
},
39-
"@react-native-community/bob": {
39+
"react-native-builder-bob": {
4040
"source": "src",
4141
"output": "dist",
4242
"targets": [
@@ -54,11 +54,6 @@
5454
"prettier --write"
5555
]
5656
},
57-
"husky": {
58-
"hooks": {
59-
"pre-commit": "lint-staged"
60-
}
61-
},
6257
"peerDependencies": {
6358
"react": ">=16.13.1",
6459
"react-native": ">=0.63.3",
@@ -70,19 +65,18 @@
7065
}
7166
},
7267
"devDependencies": {
73-
"@babel/core": "^7.15.8",
74-
"@react-native-community/bob": "^0.17.1",
75-
"@types/react-native": "^0.63.53",
76-
"@typescript-eslint/eslint-plugin": "^5.0.0",
77-
"@typescript-eslint/parser": "^5.0.0",
78-
"eslint": "^8.0.1",
79-
"eslint-plugin-react": "^7.26.1",
80-
"eslint-plugin-react-hooks": "^4.2.0",
81-
"husky": "^4.3.8",
82-
"lint-staged": "^11.2.3",
83-
"prettier": "^2.4.1",
84-
"react": "16.13.1",
85-
"react-native": "0.63.3",
86-
"typescript": "^4.4.4"
68+
"@types/react-native": "^0.66.6",
69+
"@typescript-eslint/eslint-plugin": "^5.4.0",
70+
"@typescript-eslint/parser": "^5.4.0",
71+
"eslint": "^8.3.0",
72+
"eslint-plugin-react": "^7.27.1",
73+
"eslint-plugin-react-hooks": "^4.3.0",
74+
"lint-staged": "^12.1.2",
75+
"prettier": "^2.5.0",
76+
"prettier-plugin-organize-imports": "^2.3.4",
77+
"react": "17.0.2",
78+
"react-native": "0.66.3",
79+
"react-native-builder-bob": "^0.18.2",
80+
"typescript": "^4.5.2"
8781
}
8882
}

tsconfig.json

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
{
22
"compilerOptions": {
3-
"esModuleInterop": true,
43
"jsx": "react-native",
5-
"lib": ["es2016"],
6-
"moduleResolution": "node",
4+
"lib": ["ES2016"],
5+
"moduleResolution": "Node",
6+
"target": "ES5",
7+
8+
"allowJs": false,
79
"strict": true,
8-
"target": "es5"
10+
"esModuleInterop": true,
11+
"skipLibCheck": true
912
},
1013
"include": ["src/**/*.ts"],
1114
"exclude": ["node_modules"]

0 commit comments

Comments
 (0)