Upgrade ts/eslint libs and fix some ts lints
This commit is contained in:
parent
1a5ce690c3
commit
0df0e5672c
|
@ -1,6 +1,4 @@
|
|||
export default class Deferred {
|
||||
[Symbol.toStringTag]: 'Promise';
|
||||
|
||||
private promise: Promise<unknown>;
|
||||
private _resolve: (value?: unknown) => void;
|
||||
private _reject: (reason?: any) => void;
|
||||
|
|
|
@ -34,7 +34,7 @@ export const useEndpointData = <TPath extends PathFor<'GET'>>(
|
|||
if (!endpoint) return;
|
||||
setLoading(true);
|
||||
sdk
|
||||
.get(endpoint, params)
|
||||
.get(endpoint, params as any)
|
||||
.then(e => {
|
||||
setLoading(false);
|
||||
if (e.success) {
|
||||
|
|
|
@ -40,6 +40,7 @@ class FileUpload {
|
|||
|
||||
data.forEach(item => {
|
||||
if (item.uri) {
|
||||
// @ts-ignore
|
||||
upload.formData.append(item.name, {
|
||||
// @ts-ignore
|
||||
uri: item.uri,
|
||||
|
|
|
@ -524,7 +524,6 @@ class RoomView extends React.Component<IRoomViewProps, IRoomViewState> {
|
|||
const { room, member, joined, canForwardGuest, canReturnQueue, canViewCannedResponse, canPlaceLivechatOnHold } = this.state;
|
||||
const { navigation, isMasterDetail } = this.props;
|
||||
if (isMasterDetail) {
|
||||
// @ts-ignore
|
||||
navigation.navigate('ModalStackNavigator', {
|
||||
screen: screen ?? 'RoomActionsView',
|
||||
params: {
|
||||
|
@ -533,6 +532,7 @@ class RoomView extends React.Component<IRoomViewProps, IRoomViewState> {
|
|||
room: room as ISubscription,
|
||||
member,
|
||||
showCloseModal: !!screen,
|
||||
// @ts-ignore
|
||||
joined,
|
||||
omnichannelPermissions: { canForwardGuest, canReturnQueue, canViewCannedResponse, canPlaceLivechatOnHold }
|
||||
}
|
||||
|
|
32
package.json
32
package.json
|
@ -155,12 +155,12 @@
|
|||
"jpeg-js": "0.4.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.20.2",
|
||||
"@babel/eslint-parser": "^7.14.7",
|
||||
"@babel/eslint-plugin": "^7.13.0",
|
||||
"@babel/plugin-proposal-decorators": "^7.8.3",
|
||||
"@babel/plugin-transform-named-capturing-groups-regex": "^7.17.12",
|
||||
"@babel/runtime": "^7.12.5",
|
||||
"@babel/core": "^7.24.3",
|
||||
"@babel/eslint-parser": "^7.24.1",
|
||||
"@babel/eslint-plugin": "^7.23.5",
|
||||
"@babel/plugin-proposal-decorators": "^7.24.1",
|
||||
"@babel/plugin-transform-named-capturing-groups-regex": "^7.22.5",
|
||||
"@babel/runtime": "^7.24.1",
|
||||
"@bugsnag/source-maps": "^2.2.0",
|
||||
"@rocket.chat/eslint-config": "^0.4.0",
|
||||
"@storybook/addon-storyshots": "6.3",
|
||||
|
@ -185,22 +185,22 @@
|
|||
"@types/semver": "7.3.13",
|
||||
"@types/ua-parser-js": "^0.7.36",
|
||||
"@types/url-parse": "^1.4.8",
|
||||
"@typescript-eslint/eslint-plugin": "^4.28.3",
|
||||
"@typescript-eslint/parser": "^4.28.5",
|
||||
"@typescript-eslint/eslint-plugin": "^7.4.0",
|
||||
"@typescript-eslint/parser": "^7.4.0",
|
||||
"axios": "0.27.2",
|
||||
"babel-jest": "^28.1.3",
|
||||
"babel-loader": "8.3.0",
|
||||
"babel-plugin-transform-remove-console": "^6.9.4",
|
||||
"codecov": "3.8.3",
|
||||
"detox": "20.17.1",
|
||||
"eslint": "^7.32.0",
|
||||
"eslint-config-prettier": "^8.5.0",
|
||||
"eslint-plugin-import": "2.26.0",
|
||||
"eslint": "^8.57.0",
|
||||
"eslint-config-prettier": "^9.1.0",
|
||||
"eslint-plugin-import": "^2.29.1",
|
||||
"eslint-plugin-jest": "26.5.3",
|
||||
"eslint-plugin-jsx-a11y": "6.5.1",
|
||||
"eslint-plugin-react": "7.30.0",
|
||||
"eslint-plugin-react-hooks": "^4.5.0",
|
||||
"eslint-plugin-react-native": "4.0.0",
|
||||
"eslint-plugin-jsx-a11y": "^6.8.0",
|
||||
"eslint-plugin-react": "^7.34.1",
|
||||
"eslint-plugin-react-hooks": "^4.6.0",
|
||||
"eslint-plugin-react-native": "^4.1.0",
|
||||
"identity-obj-proxy": "^3.0.0",
|
||||
"jest": "^28.1.3",
|
||||
"jest-cli": "^28.1.3",
|
||||
|
@ -217,7 +217,7 @@
|
|||
"reactotron-redux": "3.1.3",
|
||||
"reactotron-redux-saga": "4.2.3",
|
||||
"ts-node": "^10.9.1",
|
||||
"typescript": "^4.3.5"
|
||||
"typescript": "^5.4.3"
|
||||
},
|
||||
"jest-junit": {
|
||||
"addFileAttribute": "true"
|
||||
|
|
Loading…
Reference in New Issue