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