Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
zoontek committed Nov 29, 2021
1 parent fcfa37c commit 9cd4484
Show file tree
Hide file tree
Showing 6 changed files with 1,630 additions and 2,156 deletions.
4 changes: 4 additions & 0 deletions .hooks/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
# https://git-scm.com/docs/githooks

yarn lint-staged
2 changes: 1 addition & 1 deletion example/__test__/Permissions.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {driver, By2} from 'selenium-appium';
import {By2, driver} from 'selenium-appium';
import {until} from 'selenium-webdriver';

const setup = require('../jest-setups/jest.setup');
Expand Down
2 changes: 1 addition & 1 deletion example/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import {Provider as PaperProvider} from 'react-native-paper';
import {AppRegistry} from 'react-native';
import {Provider as PaperProvider} from 'react-native-paper';
import {App} from './App';
import {name as appName} from './app.json';
import theme from './theme';
Expand Down
38 changes: 16 additions & 22 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@
"mock.js"
],
"scripts": {
"start": "react-native start",
"prepare": "bob build",
"format": "prettier '**/*.{js,json,md,ts,tsx}' --write",
"lint": "eslint \"./**/*.{js,ts,tsx}\"",
"prepare": "yarn setup-hooks && bob build",
"setup-hooks": "git config --local core.hooksPath .hooks",
"tscheck": "tsc --project ./ --noEmit"
},
"@react-native-community/bob": {
"react-native-builder-bob": {
"source": "src",
"output": "dist",
"targets": [
Expand All @@ -54,11 +54,6 @@
"prettier --write"
]
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"peerDependencies": {
"react": ">=16.13.1",
"react-native": ">=0.63.3",
Expand All @@ -70,19 +65,18 @@
}
},
"devDependencies": {
"@babel/core": "^7.15.8",
"@react-native-community/bob": "^0.17.1",
"@types/react-native": "^0.63.53",
"@typescript-eslint/eslint-plugin": "^5.0.0",
"@typescript-eslint/parser": "^5.0.0",
"eslint": "^8.0.1",
"eslint-plugin-react": "^7.26.1",
"eslint-plugin-react-hooks": "^4.2.0",
"husky": "^4.3.8",
"lint-staged": "^11.2.3",
"prettier": "^2.4.1",
"react": "16.13.1",
"react-native": "0.63.3",
"typescript": "^4.4.4"
"@types/react-native": "^0.66.6",
"@typescript-eslint/eslint-plugin": "^5.4.0",
"@typescript-eslint/parser": "^5.4.0",
"eslint": "^8.3.0",
"eslint-plugin-react": "^7.27.1",
"eslint-plugin-react-hooks": "^4.3.0",
"lint-staged": "^12.1.2",
"prettier": "^2.5.0",
"prettier-plugin-organize-imports": "^2.3.4",
"react": "17.0.2",
"react-native": "0.66.3",
"react-native-builder-bob": "^0.18.2",
"typescript": "^4.5.2"
}
}
11 changes: 7 additions & 4 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
{
"compilerOptions": {
"esModuleInterop": true,
"jsx": "react-native",
"lib": ["es2016"],
"moduleResolution": "node",
"lib": ["ES2016"],
"moduleResolution": "Node",
"target": "ES5",

"allowJs": false,
"strict": true,
"target": "es5"
"esModuleInterop": true,
"skipLibCheck": true
},
"include": ["src/**/*.ts"],
"exclude": ["node_modules"]
Expand Down
Loading

0 comments on commit 9cd4484

Please sign in to comment.