Chore: update dependencies

This commit is contained in:
Dreamacro 2020-05-30 16:25:00 +08:00
parent e4da18d01a
commit c300880f91
8 changed files with 1011 additions and 700 deletions

View File

@ -24,6 +24,7 @@ settings:
rules:
'@typescript-eslint/indent': ['error', 4, { 'SwitchCase': 0 }]
'indent': 'off'
'@typescript-eslint/explicit-module-boundary-types': 'off'
'@typescript-eslint/explicit-function-return-type': 'off'
'@typescript-eslint/member-delimiter-style': ['warn', { multiline: { delimiter: 'none' }, singleline: { delimiter: 'comma' } }]
'@typescript-eslint/no-explicit-any': 'off'

1683
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -28,10 +28,10 @@
"contributors:generate": "all-contributors generate"
},
"devDependencies": {
"@babel/cli": "^7.8.4",
"@babel/core": "^7.9.6",
"@babel/preset-env": "^7.9.6",
"@babel/preset-react": "^7.9.4",
"@babel/cli": "^7.10.1",
"@babel/core": "^7.10.1",
"@babel/preset-env": "^7.10.1",
"@babel/preset-react": "^7.10.1",
"@hot-loader/react-dom": "^16.13.0",
"@types/classnames": "^2.2.10",
"@types/lodash-es": "^4.17.3",
@ -43,14 +43,14 @@
"@types/react-virtualized-auto-sizer": "^1.0.0",
"@types/react-window": "^1.8.2",
"@types/recoil": "0.0.0",
"@typescript-eslint/eslint-plugin": "^2.29.0",
"@typescript-eslint/parser": "^2.29.0",
"@typescript-eslint/eslint-plugin": "^3.0.2",
"@typescript-eslint/parser": "^3.0.2",
"autoprefixer": "^9.8.0",
"awesome-typescript-loader": "^5.2.1",
"babel-loader": "^8.1.0",
"babel-preset-minify": "^0.5.1",
"css-loader": "^3.5.3",
"eslint": "^6.8.0",
"eslint": "^7.1.0",
"eslint-config-standard": "^14.1.1",
"eslint-loader": "^4.0.2",
"eslint-plugin-import": "^2.20.2",
@ -70,8 +70,8 @@
"style-loader": "^1.2.1",
"stylelint": "^13.5.0",
"stylelint-config-standard": "^20.0.0",
"stylelint-webpack-plugin": "^1.2.3",
"terser-webpack-plugin": "^2.3.5",
"stylelint-webpack-plugin": "^2.0.0",
"terser-webpack-plugin": "^3.0.2",
"typescript": "^3.9.3",
"webpack": "^4.43.0",
"webpack-cli": "^3.3.11",

View File

@ -154,7 +154,7 @@ export default function Connections () {
}
}
;(async function () {
(async function () {
const streamReader = await API.getConnectionStreamReader()
streamReader.subscribe('data', handleConnection)
}())

View File

@ -27,7 +27,7 @@ export default function Logs () {
setLogs(logsRef.current)
}
;(async function () {
(async function () {
const streamReader = await getLogsStreamReader()
logsRef.current = streamReader.buffer()
setLogs(logsRef.current)

View File

@ -1,5 +1,4 @@
/* eslint-disable camelcase */
/* eslint-disable @typescript-eslint/camelcase */
import { getLocalStorageItem, setLocalStorageItem } from '@lib/helper'
import en_US from './en_US'

View File

@ -4,7 +4,7 @@ import { useRef, useEffect, useState, useMemo } from 'react'
import { noop } from '@lib/helper'
export function useObject<T extends object> (initialValue: T) {
export function useObject<T extends Record<string, unknown>> (initialValue: T) {
const [copy, rawSet] = useImmer(initialValue)
function set<K extends keyof Draft<T>> (key: K, value: Draft<T>[K]): void

View File

@ -46,7 +46,7 @@ declare global {
/**
* Global jsbridge init callback
*/
WVJBCallbacks?: Function[]
WVJBCallbacks?: JsBridgeCallback[]
}