mirror of
https://github.com/zhigang1992/react-native-chat-ui.git
synced 2026-01-12 17:42:19 +08:00
Update dependencies
This commit is contained in:
@@ -1,11 +1,15 @@
|
||||
{
|
||||
"extends": ["@react-native-community", "./node_modules/gts"],
|
||||
"parserOptions": {
|
||||
"sourceType": "module"
|
||||
},
|
||||
"extends": [
|
||||
"eslint:recommended",
|
||||
"plugin:@typescript-eslint/eslint-recommended",
|
||||
"plugin:@typescript-eslint/recommended",
|
||||
"@react-native-community",
|
||||
"plugin:prettier/recommended"
|
||||
],
|
||||
"plugins": ["simple-import-sort"],
|
||||
"root": true,
|
||||
"rules": {
|
||||
"@typescript-eslint/explicit-function-return-type": "off",
|
||||
"@typescript-eslint/member-delimiter-style": [
|
||||
"error",
|
||||
{
|
||||
@@ -18,16 +22,12 @@
|
||||
}
|
||||
}
|
||||
],
|
||||
"node/no-extraneous-require": "off",
|
||||
"node/no-missing-import": "off",
|
||||
"node/no-unpublished-import": "off",
|
||||
"node/no-unpublished-require": "off",
|
||||
"node/no-unsupported-features/es-syntax": "off",
|
||||
"@typescript-eslint/no-var-requires": "off",
|
||||
"radix": ["error", "as-needed"],
|
||||
"simple-import-sort/sort": [
|
||||
"error",
|
||||
{ "groups": [["^\\u0000", "^@?\\w", "^[^.]", "^\\."]] }
|
||||
],
|
||||
"sort-imports": "off",
|
||||
"radix": ["error", "as-needed"]
|
||||
"sort-imports": "off"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
module.exports = {
|
||||
...require('gts/.prettierrc.json'),
|
||||
bracketSpacing: true,
|
||||
jsxSingleQuote: true,
|
||||
semi: false,
|
||||
singleQuote: true,
|
||||
}
|
||||
|
||||
@@ -242,7 +242,7 @@ PODS:
|
||||
- React-cxxreact (= 0.62.2)
|
||||
- React-jsi (= 0.62.2)
|
||||
- React-jsinspector (0.62.2)
|
||||
- react-native-safe-area-context (0.7.3):
|
||||
- react-native-safe-area-context (1.0.0):
|
||||
- React
|
||||
- React-RCTActionSheet (0.62.2):
|
||||
- React-Core/RCTActionSheetHeaders (= 0.62.2)
|
||||
@@ -457,7 +457,7 @@ SPEC CHECKSUMS:
|
||||
React-jsi: b6dc94a6a12ff98e8877287a0b7620d365201161
|
||||
React-jsiexecutor: 1540d1c01bb493ae3124ed83351b1b6a155db7da
|
||||
React-jsinspector: 512e560d0e985d0e8c479a54a4e5c147a9c83493
|
||||
react-native-safe-area-context: e200d4433aba6b7e60b52da5f37af11f7a0b0392
|
||||
react-native-safe-area-context: a346c75f2288147527365ce27b59ca6d38c27805
|
||||
React-RCTActionSheet: f41ea8a811aac770e0cc6e0ad6b270c644ea8b7c
|
||||
React-RCTAnimation: 49ab98b1c1ff4445148b72a3d61554138565bad0
|
||||
React-RCTBlob: a332773f0ebc413a0ce85942a55b064471587a71
|
||||
|
||||
@@ -4,11 +4,10 @@
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"android": "react-native run-android",
|
||||
"check": "gts check",
|
||||
"compile": "tsc -p .",
|
||||
"fix": "gts fix",
|
||||
"generate-messages": "node scripts/generateMessages.js",
|
||||
"ios": "react-native run-ios",
|
||||
"lint": "eslint .",
|
||||
"prepare": "yarn generate-messages",
|
||||
"start": "react-native start",
|
||||
"test": "jest"
|
||||
@@ -16,25 +15,26 @@
|
||||
"dependencies": {
|
||||
"react": "^16.13.1",
|
||||
"react-native": "^0.62.2",
|
||||
"react-native-safe-area-context": "^0.7.3"
|
||||
"react-native-safe-area-context": "^1.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.9.6",
|
||||
"@babel/runtime": "^7.9.6",
|
||||
"@react-native-community/eslint-config": "^1.1.0",
|
||||
"@types/jest": "^25.2.1",
|
||||
"@types/react-native": "^0.62.7",
|
||||
"@types/jest": "^25.2.2",
|
||||
"@types/react-native": "^0.62.10",
|
||||
"@types/react-test-renderer": "^16.9.2",
|
||||
"@types/uuid": "^7.0.3",
|
||||
"@typescript-eslint/eslint-plugin": "^2.33.0",
|
||||
"babel-jest": "^26.0.1",
|
||||
"casual": "^1.6.2",
|
||||
"eslint": "^6.8.0",
|
||||
"eslint": "^7.0.0",
|
||||
"eslint-plugin-prettier": "^3.1.3",
|
||||
"eslint-plugin-simple-import-sort": "^5.0.3",
|
||||
"gts": "^2.0.0",
|
||||
"jest": "^26.0.1",
|
||||
"metro-react-native-babel-preset": "^0.59.0",
|
||||
"react-test-renderer": "^16.13.1",
|
||||
"typescript": "^3.8.3",
|
||||
"typescript": "^3.9.2",
|
||||
"uuid": "^8.0.0"
|
||||
},
|
||||
"jest": {
|
||||
|
||||
@@ -27,4 +27,6 @@ const messages = [...Array(numberOfMessages)].map((_, index) => {
|
||||
|
||||
const json = `${JSON.stringify(messages, null, 2)}\n`
|
||||
|
||||
fs.writeFile('src/messages.json', json, () => {})
|
||||
fs.writeFile('src/messages.json', json, () => {
|
||||
console.log(`Generated ${numberOfMessages} messages`)
|
||||
})
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
{
|
||||
"extends": "./node_modules/gts/tsconfig-google.json",
|
||||
"compilerOptions": {
|
||||
"baseUrl": ".",
|
||||
"declaration": false,
|
||||
"esModuleInterop": true,
|
||||
"jsx": "react-native",
|
||||
"lib": ["ESNext"],
|
||||
"module": "CommonJS",
|
||||
"noEmit": true,
|
||||
"noUnusedLocals": true,
|
||||
"noUnusedParameters": true,
|
||||
@@ -12,7 +12,10 @@
|
||||
"@flyerhq/react-native-chat-ui": ["../src"]
|
||||
},
|
||||
"resolveJsonModule": true,
|
||||
"skipLibCheck": true
|
||||
"skipLibCheck": true,
|
||||
"strict": true,
|
||||
"target": "ESNext"
|
||||
},
|
||||
"include": ["src"]
|
||||
"include": ["src"],
|
||||
"exclude": ["node_modules"]
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -12,8 +12,8 @@
|
||||
],
|
||||
"scripts": {
|
||||
"compile": "tsc -p . && copyup src/assets/*.png lib",
|
||||
"lint": "yarn eslint .",
|
||||
"prepare": "yarn run compile",
|
||||
"lint": "eslint .",
|
||||
"prepare": "yarn compile",
|
||||
"test": "jest",
|
||||
"type-coverage": "type-coverage --is 100 --strict --ignore-catch --cache"
|
||||
},
|
||||
|
||||
9
src/global.d.ts
vendored
Normal file
9
src/global.d.ts
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
declare module 'react-native/Libraries/Blob/Blob' {
|
||||
class Blob {
|
||||
constructor(parts: Array<Blob | string>)
|
||||
|
||||
get size(): number
|
||||
}
|
||||
|
||||
export default Blob
|
||||
}
|
||||
Reference in New Issue
Block a user