Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

ref(TS) Improve TS (#13282)

Robert Pintiliia22db037c7db
diff --git a/react/features/app/actions.native.ts b/react/features/app/actions.native.ts
index e85cd05f9c..404a05be82 100644
--- a/react/features/app/actions.native.ts
+++ b/react/features/app/actions.native.ts
@@ -1,4 +1,3 @@
-/* eslint-disable lines-around-comment */
import { setRoom } from '../base/conference/actions';
import {
configWillLoad,
@@ -20,14 +19,11 @@ import {
parseURIString,
toURLString
} from '../base/util/uri';
-// @ts-ignore
import { isPrejoinPageEnabled } from '../mobile/navigation/functions';
import {
goBackToRoot,
navigateRoot
- // @ts-ignore
} from '../mobile/navigation/rootNavigationContainerRef';
-// @ts-ignore
import { screen } from '../mobile/navigation/routes';
import { clearNotifications } from '../notifications/actions';
@@ -143,7 +139,6 @@ export function appNavigate(uri?: string, options: IReloadNowOptions = {}) {
dispatch(createDesiredLocalTracks());
dispatch(clearNotifications());
- // @ts-ignore
const { hidePrejoin } = options;
if (!hidePrejoin && isPrejoinPageEnabled(getState())) {
diff --git a/react/features/app/getRouteToRender.web.ts b/react/features/app/getRouteToRender.web.ts
index 932ac1ab44..b394895bd5 100644
--- a/react/features/app/getRouteToRender.web.ts
+++ b/react/features/app/getRouteToRender.web.ts
@@ -5,8 +5,6 @@ import { IStateful } from '../base/app/types';
import { isRoomValid } from '../base/conference/functions';
import { isSupportedBrowser } from '../base/environment/environment';
import { toState } from '../base/redux/functions';
-// eslint-disable-next-line lines-around-comment
-// @ts-ignore
import Conference from '../conference/components/web/Conference';
import { getDeepLinkingPage } from '../deep-linking/functions';
import UnsupportedDesktopBrowser from '../unsupported-browser/components/UnsupportedDesktopBrowser';
diff --git a/react/features/authentication/actions.native.ts b/react/features/authentication/actions.native.ts
index 1c61f7187e..4890a3e9fc 100644
--- a/react/features/authentication/actions.native.ts
+++ b/react/features/authentication/actions.native.ts
@@ -27,13 +27,13 @@ export function cancelLogin() {
// a reaction to CONNECTION_FAILED). Since the
// app/user is going to navigate to WelcomePage, the SDK
// clients/consumers need an event.
- const { error, passwordRequired }
+ const { error = { recoverable: undefined }, passwordRequired }
= getState()['features/base/connection'];
passwordRequired
&& dispatch(
connectionFailed(
- passwordRequired, // @ts-ignore
+ passwordRequired,
set(error, 'recoverable', false) as any));
};
}
diff --git a/react/features/authentication/components/index.native.ts b/react/features/authentication/components/index.native.ts
index 4457a24a5d..12ba899149 100644
--- a/react/features/authentication/components/index.native.ts
+++ b/react/features/authentication/components/index.native.ts
@@ -1,4 +1,2 @@
export { default as LoginDialog } from './native/LoginDialog';
-// eslint-disable-next-line lines-around-comment
-// @ts-ignore
export { default as WaitForOwnerDialog } from './native/WaitForOwnerDialog';
diff --git a/react/features/authentication/middleware.native.ts b/react/features/authentication/middleware.native.ts
index 8c853e3cf8..6616fd2018 100644
--- a/react/features/authentication/middleware.native.ts
+++ b/react/features/authentication/middleware.native.ts
@@ -24,7 +24,7 @@ import {
openLoginDialog,
openWaitForOwnerDialog,
stopWaitForOwner,
- waitForOwner } from './actions.native'; // @ts-ignore
+ waitForOwner } from './actions.native';
import { LoginDialog, WaitForOwnerDialog } from './components';
/**
diff --git a/react/features/base/config/actions.ts b/react/features/base/config/actions.ts
index 448d1f0dc9..59020bb0ec 100644
--- a/react/features/base/config/actions.ts
+++ b/react/features/base/config/actions.ts
@@ -1,4 +1,4 @@
-// @ts-ignore
+// @ts-expect-error
import { jitsiLocalStorage } from '@jitsi/js-utils';
import { IStore } from '../../app/types';
diff --git a/react/features/base/config/functions.any.ts b/react/features/base/config/functions.any.ts
index b33a71825b..1062bc5268 100644
--- a/react/features/base/config/functions.any.ts
+++ b/react/features/base/config/functions.any.ts
@@ -1,7 +1,7 @@
-// @ts-ignore
+// @ts-expect-error
import Bourne from '@hapi/bourne';
// eslint-disable-next-line lines-around-comment
-// @ts-ignore
+// @ts-expect-error
import { jitsiLocalStorage } from '@jitsi/js-utils';
import _ from 'lodash';
diff --git a/react/features/base/dialog/components/native/BottomSheet.tsx b/react/features/base/dialog/components/native/BottomSheet.tsx
index be93461ea3..f4d15ef07d 100644
--- a/react/features/base/dialog/components/native/BottomSheet.tsx
+++ b/react/features/base/dialog/components/native/BottomSheet.tsx
@@ -109,9 +109,7 @@ class BottomSheet extends PureComponent<Props> {
} = this.props;
return (
- <SlidingView // @ts-ignore
- accessibilityRole = 'menu'
- accessibilityViewIsModal = { true }
+ <SlidingView
onHide = { this._onCancel }
position = 'bottom'
show = { Boolean(showSlidingView) }>
diff --git a/react/features/base/dialog/components/native/PageReloadDialog.tsx b/react/features/base/dialog/components/native/PageReloadDialog.tsx
index 793c7563f9..57baab4637 100644
--- a/react/features/base/dialog/components/native/PageReloadDialog.tsx
+++ b/react/features/base/dialog/components/native/PageReloadDialog.tsx
@@ -1,4 +1,4 @@
-// @ts-ignore
+// @ts-expect-error
import { randomInt } from '@jitsi/js-utils/random';
import React, { Component } from 'react';
import { WithTranslation } from 'react-i18next';
@@ -11,7 +11,6 @@ import { isFatalJitsiConnectionError } from '../../../lib-jitsi-meet/functions.n
import { hideDialog } from '../../actions';
import logger from '../../logger';
-// @ts-ignore
import ConfirmDialog from './ConfirmDialog';
@@ -39,9 +38,7 @@ interface IPageReloadDialogState {
* Shows a warning message and counts down towards the re-load.
*/
class PageReloadDialog extends Component<IPageReloadDialogProps, IPageReloadDialogState> {
-
- // @ts-ignore
- _interval: IntervalID;
+ _interval?: number;
_timeoutSeconds: number;
/**
@@ -105,7 +102,7 @@ class PageReloadDialog extends Component<IPageReloadDialogProps, IPageReloadDial
_onCancel() {
const { dispatch } = this.props;
- clearInterval(this._interval);
+ clearInterval(this._interval ?? 0);
dispatch(appNavigate(undefined));
return true;
@@ -145,7 +142,7 @@ class PageReloadDialog extends Component<IPageReloadDialogProps, IPageReloadDial
_onReloadNow() {
const { dispatch } = this.props;
- clearInterval(this._interval);
+ clearInterval(this._interval ?? 0);
dispatch(reloadNow());
return true;
@@ -200,8 +197,6 @@ function mapStateToProps(state: IReduxState) {
const { fatalError } = state['features/overlay'];
const fatalConnectionError
-
- // @ts-ignore
= connectionError && isFatalJitsiConnectionError(connectionError);
const fatalConfigError = fatalError === configError;
diff --git a/react/features/base/jitsi-local-storage/setup.web.ts b/react/features/base/jitsi-local-storage/setup.web.ts
index bab4a1d8af..93e6e2d315 100644
--- a/react/features/base/jitsi-local-storage/setup.web.ts
+++ b/react/features/base/jitsi-local-storage/setup.web.ts
@@ -1,7 +1,7 @@
-// @ts-ignore
+// @ts-expect-error
import Bourne from '@hapi/bourne';
// eslint-disable-next-line lines-around-comment
-// @ts-ignore
+// @ts-expect-error
import { jitsiLocalStorage } from '@jitsi/js-utils/jitsi-local-storage';
import { browser } from '../lib-jitsi-meet';
diff --git a/react/features/base/jwt/functions.ts b/react/features/base/jwt/functions.ts
index 57566d1208..34313ad678 100644
--- a/react/features/base/jwt/functions.ts
+++ b/react/features/base/jwt/functions.ts
@@ -1,4 +1,4 @@
-// @ts-ignore
+// @ts-expect-error
import jwtDecode from 'jwt-decode';
import { IReduxState } from '../../app/types';
diff --git a/react/features/base/jwt/middleware.ts b/react/features/base/jwt/middleware.ts
index dec41abaa9..f722205961 100644
--- a/react/features/base/jwt/middleware.ts
+++ b/react/features/base/jwt/middleware.ts
@@ -1,4 +1,4 @@
-// @ts-ignore
+// @ts-expect-error
import jwtDecode from 'jwt-decode';
import { AnyAction } from 'redux';
diff --git a/react/features/base/lib-jitsi-meet/actions.ts b/react/features/base/lib-jitsi-meet/actions.ts
index a994652c15..bf5cac9319 100644
--- a/react/features/base/lib-jitsi-meet/actions.ts
+++ b/react/features/base/lib-jitsi-meet/actions.ts
@@ -1,10 +1,9 @@
-// @ts-ignore
+// @ts-expect-error
import { jitsiLocalStorage } from '@jitsi/js-utils';
import { IStore } from '../../app/types';
import { isOnline } from '../net-info/selectors';
-// @ts-ignore
import JitsiMeetJS from './_';
import {
LIB_DID_DISPOSE,
diff --git a/react/features/base/lib-jitsi-meet/functions.any.ts b/react/features/base/lib-jitsi-meet/functions.any.ts
index 275d18b030..882be13d11 100644
--- a/react/features/base/lib-jitsi-meet/functions.any.ts
+++ b/react/features/base/lib-jitsi-meet/functions.any.ts
@@ -1,4 +1,5 @@
import { IStateful } from '../app/types';
+import { ConnectionFailedError } from '../connection/actions.any';
import { toState } from '../redux/functions';
// @ts-ignore
@@ -91,7 +92,7 @@ export function isFatalJitsiConferenceError(error: Error | string) {
* indicates a fatal {@code JitsiConnection} error, {@code true}; otherwise,
* {@code false}.
*/
-export function isFatalJitsiConnectionError(error: Error | string) {
+export function isFatalJitsiConnectionError(error: Error | string | ConnectionFailedError) {
if (typeof error !== 'string') {
error = error.name; // eslint-disable-line no-param-reassign
}
diff --git a/react/features/base/lib-jitsi-meet/functions.native.ts b/react/features/base/lib-jitsi-meet/functions.native.ts
index 1bfc6d4c54..1cbb1e6b2a 100644
--- a/react/features/base/lib-jitsi-meet/functions.native.ts
+++ b/react/features/base/lib-jitsi-meet/functions.native.ts
@@ -1,4 +1,4 @@
-// @ts-ignore
+// @ts-expect-error
import Bourne from '@hapi/bourne';
import { NativeModules } from 'react-native';
diff --git a/react/features/base/lib-jitsi-meet/index.ts b/react/features/base/lib-jitsi-meet/index.ts
index 136b4f7d41..3b54d1ff7b 100644
--- a/react/features/base/lib-jitsi-meet/index.ts
+++ b/react/features/base/lib-jitsi-meet/index.ts
@@ -1,6 +1,5 @@
// Re-export JitsiMeetJS from the library lib-jitsi-meet to (the other features
// of) the project jitsi-meet.
-// @ts-ignore
import JitsiMeetJS from './_';
export { JitsiMeetJS as default };
diff --git a/react/features/base/lib-jitsi-meet/middleware.ts b/react/features/base/lib-jitsi-meet/middleware.ts
index 1864f7d75f..397db6da7b 100644
--- a/react/features/base/lib-jitsi-meet/middleware.ts
+++ b/react/features/base/lib-jitsi-meet/middleware.ts
@@ -6,7 +6,6 @@ import { SET_NETWORK_INFO } from '../net-info/actionTypes';
import { PARTICIPANT_LEFT } from '../participants/actionTypes';
import MiddlewareRegistry from '../redux/MiddlewareRegistry';
-// @ts-ignore
import JitsiMeetJS from './_';
import { LIB_WILL_INIT } from './actionTypes';
import { disposeLib, initLib } from './actions';
diff --git a/react/features/base/logging/LogTransport.native.ts b/react/features/base/logging/LogTransport.native.ts
index 4bcb7ef55e..ba4319fbe0 100644
--- a/react/features/base/logging/LogTransport.native.ts
+++ b/react/features/base/logging/LogTransport.native.ts
@@ -1,6 +1,6 @@
import { NativeModules } from 'react-native';
// eslint-disable-next-line lines-around-comment
-// @ts-ignore
+// @ts-expect-error
import { format } from 'util';
// Some code adapted from https://github.com/houserater/react-native-lumberjack
diff --git a/react/features/base/logging/functions.ts b/react/features/base/logging/functions.ts
index 73d4856664..99a640806e 100644
--- a/react/features/base/logging/functions.ts
+++ b/react/features/base/logging/functions.ts
@@ -1,4 +1,4 @@
-// @ts-ignore
+// @ts-expect-error
import Logger, { getLogger as _getLogger } from '@jitsi/logger';
import _ from 'lodash';
diff --git a/react/features/base/logging/middleware.ts b/react/features/base/logging/middleware.ts
index 66d9886d20..641ec7bea2 100644
--- a/react/features/base/logging/middleware.ts
+++ b/react/features/base/logging/middleware.ts
@@ -1,4 +1,4 @@
-// @ts-ignore
+// @ts-expect-error
import Logger from '@jitsi/logger';
import { IStore } from '../../app/types';
diff --git a/react/features/base/media/components/index.native.ts b/react/features/base/media/components/index.native.ts
index 765ce8c57a..23172610fb 100644
--- a/react/features/base/media/components/index.native.ts
+++ b/react/features/base/media/components/index.native.ts
@@ -1,5 +1,2 @@
-// @ts-ignore
export { default as Audio } from './native/Audio';
-
-// @ts-ignore
export { default as Video } from './native/Video';
diff --git a/react/features/base/media/components/native/VideoTransform.tsx b/react/features/base/media/components/native/VideoTransform.tsx
index c662122965..d8fedcb45f 100644
--- a/react/features/base/media/components/native/VideoTransform.tsx
+++ b/react/features/base/media/components/native/VideoTransform.tsx
@@ -7,7 +7,6 @@ import { IReduxState, IStore } from '../../../../app/types';
import { ASPECT_RATIO_WIDE } from '../../../responsive-ui/constants';
import { storeVideoTransform } from '../../actions';
-// @ts-ignore
import styles from './styles';
@@ -125,12 +124,12 @@ class VideoTransform extends Component<IProps, IState> {
/**
* The gesture handler object.
*/
- gestureHandlers: Object;
+ gestureHandlers: any;
/**
* The initial distance of the fingers on pinch start.
*/
- initialDistance: number;
+ initialDistance?: number;
/**
* The initial position of the finger on touch start.
@@ -234,8 +233,6 @@ class VideoTransform extends Component<IProps, IState> {
videoTransformedViewContainerStyles,
style
] }
-
- // @ts-ignore
{ ...this.gestureHandlers.panHandlers }>
<SafeAreaView
edges = { [ 'bottom', 'left' ] }
@@ -489,7 +486,7 @@ class VideoTransform extends Component<IProps, IState> {
* @param {?Object | number} value - The value of the gesture, if any.
* @returns {void}
*/
- _onGesture(type: string, value: any) {
+ _onGesture(type: string, value?: any) {
let transform;
switch (type) {
@@ -600,7 +597,7 @@ class VideoTransform extends Component<IProps, IState> {
this._onGesture('scale', scale);
}
} else if (gestureState.numberActiveTouches === 1
- && isNaN(this.initialDistance)
+ && isNaN(this.initialDistance ?? 0)
&& this._didMove(gestureState)) {
// this is a move event
const position = this._getTouchPosition(evt);
@@ -623,11 +620,9 @@ class VideoTransform extends Component<IProps, IState> {
*/
_onPanResponderRelease() {
if (this.lastTap && Date.now() - this.lastTap < TAP_TIMEOUT_MS) {
- // @ts-ignore
this._onGesture('press');
}
- // @ts-ignore
delete this.initialDistance;
this.initialPosition = {
x: 0,
diff --git a/react/features/base/net-info/NetworkInfoService.native.ts b/react/features/base/net-info/NetworkInfoService.native.ts
index bf51059edb..8e296570c3 100644
--- a/react/features/base/net-info/NetworkInfoService.native.ts
+++ b/react/features/base/net-info/NetworkInfoService.native.ts
@@ -1,7 +1,7 @@
import NetInfo from '@react-native-community/netinfo';
import type { NetInfoState, NetInfoSubscription } from '@react-native-community/netinfo';
// eslint-disable-next-line lines-around-comment
-// @ts-ignore
+// @ts-expect-error
import EventEmitter from 'events';
import { ONLINE_STATE_CHANGED_EVENT } from './events';
@@ -15,7 +15,7 @@ export default class NetworkInfoService extends EventEmitter {
/**
* Stores the native subscription for future cleanup.
*/
- _subscription: NetInfoSubscription;
+ _subscription?: NetInfoSubscription;
/**
* Converts library's structure to {@link NetworkInfo} used by jitsi-meet.
@@ -26,10 +26,8 @@ export default class NetworkInfoService extends EventEmitter {
*/
static _convertNetInfoState(netInfoState: NetInfoState): NetworkInfo {
return {
- // @ts-ignore
- isOnline: netInfoState.isInternetReachable,
+ isOnline: Boolean(netInfoState.isInternetReachable),
- // @ts-ignore
details: netInfoState.details,
networkType: netInfoState.type
};
@@ -51,8 +49,7 @@ export default class NetworkInfoService extends EventEmitter {
*/
start() {
this._subscription = NetInfo.addEventListener(netInfoState => {
- // @ts-ignore
- this.emit(ONLINE_STATE_CHANGED_EVENT, NetworkInfoService._convertNetInfoState(netInfoState));
+ super.emit(ONLINE_STATE_CHANGED_EVENT, NetworkInfoService._convertNetInfoState(netInfoState));
});
}
@@ -64,8 +61,6 @@ export default class NetworkInfoService extends EventEmitter {
stop() {
if (this._subscription) {
this._subscription();
-
- // @ts-ignore
this._subscription = undefined;
}
}
diff --git a/react/features/base/net-info/types.ts b/react/features/base/net-info/types.ts
index aab4eb8d47..9f80a8e5ea 100644
--- a/react/features/base/net-info/types.ts
+++ b/react/features/base/net-info/types.ts
@@ -16,13 +16,13 @@ export type NetworkInfo = {
* If {@link networkType} is {@link NetInfoStateType.cellular} then it may provide the info about the type of
* cellular network.
*/
- cellularGeneration?: NetInfoCellularGeneration;
+ cellularGeneration?: NetInfoCellularGeneration | null;
/**
* Indicates whether or not the connection is expensive.
*/
isConnectionExpensive?: boolean;
- };
+ } | null;
/**
* Tells whether or not the internet is reachable.
diff --git a/react/features/base/participants/functions.ts b/react/features/base/participants/functions.ts
index 2c4bb2d6d9..dca4dcd1cd 100644
--- a/react/features/base/participants/functions.ts
+++ b/react/features/base/participants/functions.ts
@@ -1,4 +1,4 @@
-// @ts-ignore
+// @ts-expect-error
import { getGravatarURL } from '@jitsi/js-utils/avatar';
import { IReduxState, IStore } from '../../app/types';
diff --git a/react/features/base/premeeting/components/web/PreMeetingScreen.tsx b/react/features/base/premeeting/components/web/PreMeetingScreen.tsx
index 1c7a1f4523..7a7c5925f6 100644
--- a/react/features/base/premeeting/components/web/PreMeetingScreen.tsx
+++ b/react/features/base/premeeting/components/web/PreMeetingScreen.tsx
@@ -12,8 +12,6 @@ import { getToolbarButtons, isToolbarButtonEnabled } from '../../../config/funct
import { withPixelLineHeight } from '../../../styles/functions.web';
import ConnectionStatus from './ConnectionStatus';
-// eslint-disable-next-line lines-around-comment
-// @ts-ignore
import Preview from './Preview';
interface IProps {
diff --git a/react/features/base/react/components/index.native.ts b/react/features/base/react/components/index.native.ts
index f38dab133a..79f5ca9e41 100644
--- a/react/features/base/react/components/index.native.ts
+++ b/react/features/base/react/components/index.native.ts
@@ -1,5 +1,2 @@
-/* eslint-disable lines-around-comment */
-// @ts-ignore
export { default as Container } from './native/Container';
-// @ts-ignore
export { default as Text } from './native/Text';
diff --git a/react/features/base/react/components/native/SlidingView.tsx b/react/features/base/react/components/native/SlidingView.tsx
index 19ea1641b4..2459ddc299 100644
--- a/react/features/base/react/components/native/SlidingView.tsx
+++ b/react/features/base/react/components/native/SlidingView.tsx
@@ -42,7 +42,7 @@ interface IProps {
/**
* Style of the animated view.
*/
- style: StyleType;
+ style?: StyleType;
}
/**
diff --git a/react/features/base/redux/PersistenceRegistry.ts b/react/features/base/redux/PersistenceRegistry.ts
index 981705ed2a..cdbbb1cefa 100644
--- a/react/features/base/redux/PersistenceRegistry.ts
+++ b/react/features/base/redux/PersistenceRegistry.ts
@@ -1,7 +1,7 @@
-// @ts-ignore
+// @ts-expect-error
import Bourne from '@hapi/bourne';
// eslint-disable-next-line lines-around-comment
-// @ts-ignore
+// @ts-expect-error
import { jitsiLocalStorage } from '@jitsi/js-utils';
import md5 from 'js-md5';
diff --git a/react/features/base/settings/components/native/SettingsButton.tsx b/react/features/base/settings/components/native/SettingsButton.tsx
index e71920294d..a139052f81 100644
--- a/react/features/base/settings/components/native/SettingsButton.tsx
+++ b/react/features/base/settings/components/native/SettingsButton.tsx
@@ -1,5 +1,3 @@
-/* eslint-disable lines-around-comment */
-
import { connect } from 'react-redux';
import { IReduxState } from '../../../../app/types';
@@ -7,9 +5,7 @@ import { translate } from '../../../../base/i18n/functions';
import { IconGear } from '../../../../base/icons/svg';
import AbstractButton, { IProps as AbstractButtonProps } from '../../../../base/toolbox/components/AbstractButton';
import { navigate }
-// @ts-ignore
from '../../../../mobile/navigation/components/conference/ConferenceNavigationContainerRef';
-// @ts-ignore
import { screen } from '../../../../mobile/navigation/routes';
import { SETTINGS_ENABLED } from '../../../flags/constants';
import { getFeatureFlag } from '../../../flags/functions';
diff --git a/react/features/base/settings/reducer.ts b/react/features/base/settings/reducer.ts
index cb3f1f5b53..17d7543361 100644
--- a/react/features/base/settings/reducer.ts
+++ b/react/features/base/settings/reducer.ts
@@ -1,4 +1,4 @@
-// @ts-ignore
+// @ts-expect-error
import { jitsiLocalStorage } from '@jitsi/js-utils';
import _ from 'lodash';
diff --git a/react/features/base/tracks/actions.native.ts b/react/features/base/tracks/actions.native.ts
index d3472655ce..5202624115 100644
--- a/react/features/base/tracks/actions.native.ts
+++ b/react/features/base/tracks/actions.native.ts
@@ -1,6 +1,4 @@
import { IReduxState, IStore } from '../../app/types';
-// eslint-disable-next-line lines-around-comment
-// @ts-ignore
import { setPictureInPictureEnabled } from '../../mobile/picture-in-picture/functions';
import { showNotification } from '../../notifications/actions';
import { NOTIFICATION_TIMEOUT_TYPE } from '../../notifications/constants';
diff --git a/react/features/base/tracks/actions.web.ts b/react/features/base/tracks/actions.web.ts
index 3d2a08faf1..d08a05a129 100644
--- a/react/features/base/tracks/actions.web.ts
+++ b/react/features/base/tracks/actions.web.ts
@@ -10,8 +10,6 @@ import { setScreenAudioShareState, setScreenshareAudioTrack } from '../../screen
import { isAudioOnlySharing, isScreenVideoShared } from '../../screen-share/functions';
import { toggleScreenshotCaptureSummary } from '../../screenshot-capture/actions';
import { isScreenshotCaptureEnabled } from '../../screenshot-capture/functions';
-// eslint-disable-next-line lines-around-comment
-// @ts-ignore
import { AudioMixerEffect } from '../../stream-effects/audio-mixer/AudioMixerEffect';
import { getCurrentConference } from '../conference/functions';
import { JitsiTrackErrors, JitsiTrackEvents } from '../lib-jitsi-meet';
diff --git a/react/features/base/ui/components/native/IconButton.tsx b/react/features/base/ui/components/native/IconButton.tsx
index bd95c751b9..9cb2982a7f 100644
--- a/react/features/base/ui/components/native/IconButton.tsx
+++ b/react/features/base/ui/components/native/IconButton.tsx
@@ -2,8 +2,6 @@ import React from 'react';
import { TouchableRipple } from 'react-native-paper';
import Icon from '../../../icons/components/Icon';
-// eslint-disable-next-line lines-around-comment
-// @ts-ignore
import styles from '../../../react/components/native/styles';
import { IIconButtonProps } from '../../../react/types';
import { BUTTON_TYPES } from '../../constants.native';
diff --git a/react/features/base/util/parseURLParams.ts b/react/features/base/util/parseURLParams.ts
index 119b7e5853..e02d6086ce 100644
--- a/react/features/base/util/parseURLParams.ts
+++ b/react/features/base/util/parseURLParams.ts
@@ -1,4 +1,4 @@
-// @ts-ignore
+// @ts-expect-error
import Bourne from '@hapi/bourne';
import { reportError } from './helpers';
diff --git a/react/features/calendar-sync/actions.native.ts b/react/features/calendar-sync/actions.native.ts
index 03a7c698af..a3a0e76980 100644
--- a/react/features/calendar-sync/actions.native.ts
+++ b/react/features/calendar-sync/actions.native.ts
@@ -6,8 +6,6 @@ import { IStore } from '../app/types';
import { openDialog } from '../base/dialog/actions';
import { refreshCalendar } from './actions';
-// eslint-disable-next-line lines-around-comment
-// @ts-ignore
import UpdateCalendarEventDialog from './components/UpdateCalendarEventDialog.native';
import { addLinkToCalendarEntry } from './functions.native';
@@ -40,8 +38,6 @@ export function updateCalendarEvent(eventId: string) {
const roomName = generateRoomWithoutSeparator();
addLinkToCalendarEntry(getState(), eventId, `${defaultUrl}/${roomName}`)
-
- // @ts-ignore
.finally(() => {
dispatch(refreshCalendar(false, false));
});
diff --git a/react/features/calendar-sync/functions.web.ts b/react/features/calendar-sync/functions.web.ts
index 77021737b9..f8e7ac17b6 100644
--- a/react/features/calendar-sync/functions.web.ts
+++ b/react/features/calendar-sync/functions.web.ts
@@ -1,4 +1,3 @@
-/* eslint-disable lines-around-comment */
import { IStore } from '../app/types';
import { IStateful } from '../base/app/types';
import { toState } from '../base/redux/functions';
@@ -17,11 +16,8 @@ import {
} from './constants';
import { _updateCalendarEntries } from './functions.web';
import logger from './logger';
-// @ts-ignore
import { googleCalendarApi } from './web/googleCalendar';
-// @ts-ignore
import { microsoftCalendarApi } from './web/microsoftCalendar';
-/* eslint-enable lines-around-comment */
/**
* Determines whether the calendar feature is enabled by the web.
diff --git a/react/features/calendar-sync/web/microsoftCalendar.ts b/react/features/calendar-sync/web/microsoftCalendar.ts
index 3494e11cd6..cf974418df 100644
--- a/react/features/calendar-sync/web/microsoftCalendar.ts
+++ b/react/features/calendar-sync/web/microsoftCalendar.ts
@@ -1,6 +1,6 @@
import { Client } from '@microsoft/microsoft-graph-client';
// eslint-disable-next-line lines-around-comment
-// @ts-ignore
+// @ts-expect-error
import base64js from 'base64-js';
import { v4 as uuidV4 } from 'uuid';
import { findWindows } from 'windows-iana';
diff --git a/react/features/chat/actions.native.ts b/react/features/chat/actions.native.ts
index 7c0019388e..5fcffe8779 100644
--- a/react/features/chat/actions.native.ts
+++ b/react/features/chat/actions.native.ts
@@ -1,10 +1,6 @@
-/* eslint-disable lines-around-comment, max-len */
-
import { IParticipant } from '../base/participants/types';
import { navigate }
-// @ts-ignore
from '../mobile/navigation/components/conference/ConferenceNavigationContainerRef';
-// @ts-ignore
import { screen } from '../mobile/navigation/routes';
import { OPEN_CHAT } from './actionTypes';
diff --git a/react/features/chat/functions.ts b/react/features/chat/functions.ts
index a69895d8e3..e89bbfb70c 100644
--- a/react/features/chat/functions.ts
+++ b/react/features/chat/functions.ts
@@ -1,7 +1,7 @@
-// @ts-ignore
+// @ts-expect-error
import aliases from 'react-emoji-render/data/aliases';
// eslint-disable-next-line lines-around-comment
-// @ts-ignore
+// @ts-expect-error
import emojiAsciiAliases from 'react-emoji-render/data/asciiAliases';
import { IReduxState } from '../app/types';
diff --git a/react/features/conference/actions.native.ts b/react/features/conference/actions.native.ts
index 241a3c0a7f..bafc9c0083 100644
--- a/react/features/conference/actions.native.ts
+++ b/react/features/conference/actions.native.ts
@@ -1,7 +1,5 @@
import { IStore } from '../app/types';
import { openDialog } from '../base/dialog/actions';
-// eslint-disable-next-line lines-around-comment
-// @ts-ignore
import AlertDialog from '../base/dialog/components/native/AlertDialog';
import { getParticipantDisplayName } from '../base/participants/functions';
diff --git a/react/features/conference/components/native/LonelyMeetingExperience.tsx b/react/features/conference/components/native/LonelyMeetingExperience.tsx
index fec3b2aa42..232ade5b6a 100644
--- a/react/features/conference/components/native/LonelyMeetingExperience.tsx
+++ b/react/features/conference/components/native/LonelyMeetingExperience.tsx
@@ -20,7 +20,6 @@ import { isInBreakoutRoom } from '../../../breakout-rooms/functions';
import { doInvitePeople } from '../../../invite/actions.native';
import { getInviteOthersControl } from '../../../share-room/functions';
-// @ts-ignore
import styles from './styles';
diff --git a/react/features/conference/components/native/carmode/CarMode.tsx b/react/features/conference/components/native/carmode/CarMode.tsx
index 27c683dbe1..2a5a1b127d 100644
--- a/react/features/conference/components/native/carmode/CarMode.tsx
+++ b/react/features/conference/components/native/carmode/CarMode.tsx
@@ -1,30 +1,22 @@
/* eslint-disable lines-around-comment */
import React, { useEffect } from 'react';
-import { View } from 'react-native';
+import { View, ViewStyle } from 'react-native';
import Orientation from 'react-native-orientation-locker';
import { withSafeAreaInsets } from 'react-native-safe-area-context';
import { useDispatch, useSelector } from 'react-redux';
-// @ts-ignore
import JitsiScreen from '../../../../base/modal/components/JitsiScreen';
-// @ts-ignore
import LoadingIndicator from '../../../../base/react/components/native/LoadingIndicator';
-// @ts-ignore
import TintedView from '../../../../base/react/components/native/TintedView';
import { isLocalVideoTrackDesktop } from '../../../../base/tracks/functions.native';
-// @ts-ignore
import { setPictureInPictureEnabled } from '../../../../mobile/picture-in-picture/functions';
-// @ts-ignore
import { setIsCarmode } from '../../../../video-layout/actions';
-// @ts-ignore
import ConferenceTimer from '../../ConferenceTimer';
-// @ts-ignore
import { isConnecting } from '../../functions';
import CarModeFooter from './CarModeFooter';
import MicrophoneButton from './MicrophoneButton';
import TitleBar from './TitleBar';
-// @ts-ignore
import styles from './styles';
/**
@@ -66,17 +58,16 @@ const CarMode = (): JSX.Element => {
}
<View
pointerEvents = 'box-none'
- style = { styles.titleBarSafeViewColor }>
+ style = { styles.titleBarSafeViewColor as ViewStyle }>
<View
- style = { styles.titleBar }>
- {/* @ts-ignore */}
+ style = { styles.titleBar as ViewStyle }>
<TitleBar />
</View>
<ConferenceTimer textStyle = { styles.roomTimer } />
</View>
<View
pointerEvents = 'box-none'
- style = { styles.microphoneContainer }>
+ style = { styles.microphoneContainer as ViewStyle }>
<MicrophoneButton />
</View>
</JitsiScreen>
diff --git a/react/features/conference/components/native/carmode/CarModeFooter.tsx b/react/features/conference/components/native/carmode/CarModeFooter.tsx
index de6a648a78..22054c1ff7 100644
--- a/react/features/conference/components/native/carmode/CarModeFooter.tsx
+++ b/react/features/conference/components/native/carmode/CarModeFooter.tsx
@@ -1,11 +1,9 @@
import React from 'react';
import { useTranslation } from 'react-i18next';
-import { Text, View } from 'react-native';
+import { Text, View, ViewStyle } from 'react-native';
import EndMeetingButton from './EndMeetingButton';
import SoundDeviceButton from './SoundDeviceButton';
-// eslint-disable-next-line lines-around-comment
-// @ts-ignore
import styles from './styles';
/**
@@ -19,7 +17,7 @@ const CarModeFooter = (): JSX.Element => {
return (
<View
pointerEvents = 'box-none'
- style = { styles.bottomContainer }>
+ style = { styles.bottomContainer as ViewStyle }>
<Text style = { styles.videoStoppedLabel }>
{ t('carmode.labels.videoStopped') }
</Text>
diff --git a/react/features/conference/components/native/carmode/EndMeetingButton.tsx b/react/features/conference/components/native/carmode/EndMeetingButton.tsx
index 7cfa3bfdbb..3f218988c9 100644
--- a/react/features/conference/components/native/carmode/EndMeetingButton.tsx
+++ b/react/features/conference/components/native/carmode/EndMeetingButton.tsx
@@ -8,8 +8,6 @@ import Button from '../../../../base/ui/components/native/Button';
import { BUTTON_TYPES } from '../../../../base/ui/constants.native';
import EndMeetingIcon from './EndMeetingIcon';
-// eslint-disable-next-line lines-around-comment
-// @ts-ignore
import styles from './styles';
/**
diff --git a/react/features/conference/components/native/carmode/MicrophoneButton.tsx b/react/features/conference/components/native/carmode/MicrophoneButton.tsx
index f8dbe737d1..5eda77e981 100644
--- a/react/features/conference/components/native/carmode/MicrophoneButton.tsx
+++ b/react/features/conference/components/native/carmode/MicrophoneButton.tsx
@@ -1,5 +1,5 @@
import React, { useCallback, useState } from 'react';
-import { TouchableOpacity, View } from 'react-native';
+import { TouchableOpacity, View, ViewStyle } from 'react-native';
import { useDispatch, useSelector } from 'react-redux';
import {
@@ -18,7 +18,6 @@ import { isLocalTrackMuted } from '../../../../base/tracks/functions';
import { isAudioMuteButtonDisabled } from '../../../../toolbox/functions.any';
import { muteLocal } from '../../../../video-menu/actions';
-// @ts-ignore
import styles from './styles';
const LONG_PRESS = 'long.press';
@@ -77,9 +76,9 @@ const MicrophoneButton = (): JSX.Element | null => {
style = { [
styles.microphoneStyles.container,
!audioMuted && styles.microphoneStyles.unmuted
- ] }>
+ ] as ViewStyle[] }>
<View
- style = { styles.microphoneStyles.iconContainer }>
+ style = { styles.microphoneStyles.iconContainer as ViewStyle }>
<Icon
src = { audioMuted ? IconMicSlash : IconMic }
style = { styles.microphoneStyles.icon } />
diff --git a/react/features/conference/components/native/carmode/SoundDeviceButton.tsx b/react/features/conference/components/native/carmode/SoundDeviceButton.tsx
index 6671b69e6c..11848484f0 100644
--- a/react/features/conference/components/native/carmode/SoundDeviceButton.tsx
+++ b/react/features/conference/components/native/carmode/SoundDeviceButton.tsx
@@ -1,15 +1,14 @@
-/* eslint-disable lines-around-comment */
import React, { useCallback } from 'react';
import { useDispatch } from 'react-redux';
import { openSheet } from '../../../../base/dialog/actions';
import Button from '../../../../base/ui/components/native/Button';
import { BUTTON_TYPES } from '../../../../base/ui/constants.native';
+// eslint-disable-next-line lines-around-comment
// @ts-ignore
import AudioRoutePickerDialog from '../../../../mobile/audio-mode/components/AudioRoutePickerDialog';
import AudioIcon from './AudioIcon';
-// @ts-ignore
import styles from './styles';
/**
diff --git a/react/features/conference/components/native/carmode/TitleBar.tsx b/react/features/conference/components/native/carmode/TitleBar.tsx
index ecb3059162..0e344e1ec9 100644
--- a/react/features/conference/components/native/carmode/TitleBar.tsx
+++ b/react/features/conference/components/native/carmode/TitleBar.tsx
@@ -1,5 +1,3 @@
-/* eslint-disable lines-around-comment */
-
import React from 'react';
import { StyleProp, Text, View, ViewStyle } from 'react-native';
import { connect, useSelector } from 'react-redux';
@@ -10,14 +8,12 @@ import { MEETING_NAME_ENABLED } from '../../../../base/flags/constants';
import { getFeatureFlag } from '../../../../base/flags/functions';
import { JitsiRecordingConstants } from '../../../../base/lib-jitsi-meet';
import { getLocalParticipant } from '../../../../base/participants/functions';
-// @ts-ignore
import ConnectionIndicator from '../../../../connection-indicator/components/native/ConnectionIndicator';
-// @ts-ignore
import RecordingLabel from '../../../../recording/components/native/RecordingLabel';
+// eslint-disable-next-line lines-around-comment
// @ts-ignore
import VideoQualityLabel from '../../../../video-quality/components/VideoQualityLabel.native';
-// @ts-ignore
import styles from './styles';
@@ -56,9 +52,7 @@ const TitleBar = (props: IProps): JSX.Element => {
<VideoQualityLabel />
</View>
<ConnectionIndicator
- // @ts-ignore
iconStyle = { styles.connectionIndicatorIcon }
- // @ts-ignore
participantId = { localParticipantId } />
<View style = { styles.headerLabels as StyleProp<ViewStyle> }>
<RecordingLabel mode = { JitsiRecordingConstants.mode.FILE } />
diff --git a/react/features/conference/components/native/carmode/styles.js b/react/features/conference/components/native/carmode/styles.ts
similarity index 100%
rename from react/features/conference/components/native/carmode/styles.js
rename to react/features/conference/components/native/carmode/styles.ts
diff --git a/react/features/conference/components/native/styles.js b/react/features/conference/components/native/styles.ts
similarity index 100%
rename from react/features/conference/components/native/styles.js
rename to react/features/conference/components/native/styles.ts
diff --git a/react/features/conference/middleware.ts b/react/features/conference/middleware.ts
index 498b71babb..5b6e7d9dbb 100644
--- a/react/features/conference/middleware.ts
+++ b/react/features/conference/middleware.ts
@@ -28,8 +28,6 @@ import { SET_REDUCED_UI } from '../base/responsive-ui/actionTypes';
import { BUTTON_TYPES } from '../base/ui/constants.any';
import { inIframe } from '../base/util/iframeUtils';
import { isCalendarEnabled } from '../calendar-sync/functions';
-// eslint-disable-next-line lines-around-comment
-// @ts-ignore
import FeedbackDialog from '../feedback/components/FeedbackDialog';
import { setFilmstripEnabled } from '../filmstrip/actions.any';
import { isVpaasMeeting } from '../jaas/functions';
diff --git a/react/features/connection-indicator/components/native/ConnectionIndicator.tsx b/react/features/connection-indicator/components/native/ConnectionIndicator.tsx
index dba1a27c46..0cb3f6b972 100644
--- a/react/features/connection-indicator/components/native/ConnectionIndicator.tsx
+++ b/react/features/connection-indicator/components/native/ConnectionIndicator.tsx
@@ -87,7 +87,6 @@ class ConnectionIndicator extends AbstractConnectionIndicator<IProps, IState> {
constructor(props: IProps) {
super(props);
- // @ts-ignore
this.state = {
autoHideTimeout: undefined,
showIndicator: false,
diff --git a/react/features/connection-indicator/components/native/styles.ts b/react/features/connection-indicator/components/native/styles.ts
index 699d32a66d..34687e4aba 100644
--- a/react/features/connection-indicator/components/native/styles.ts
+++ b/react/features/connection-indicator/components/native/styles.ts
@@ -1,6 +1,4 @@
import BaseTheme from '../../../base/ui/components/BaseTheme.native';
-// eslint-disable-next-line lines-around-comment
-// @ts-ignore
import { INDICATOR_DISPLAY_THRESHOLD } from '../AbstractConnectionIndicator';
export const CONNECTOR_INDICATOR_LOST = BaseTheme.palette.ui05;
diff --git a/react/features/deep-linking/components/DeepLinkingDesktopPage.native.ts b/react/features/deep-linking/components/DeepLinkingDesktopPage.native.ts
index e69de29bb2..ff8b4c5632 100644
--- a/react/features/deep-linking/components/DeepLinkingDesktopPage.native.ts
+++ b/react/features/deep-linking/components/DeepLinkingDesktopPage.native.ts
@@ -0,0 +1 @@
+export default {};
diff --git a/react/features/deep-linking/components/DeepLinkingMobilePage.native.ts b/react/features/deep-linking/components/DeepLinkingMobilePage.native.ts
index e69de29bb2..ff8b4c5632 100644
--- a/react/features/deep-linking/components/DeepLinkingMobilePage.native.ts
+++ b/react/features/deep-linking/components/DeepLinkingMobilePage.native.ts
@@ -0,0 +1 @@
+export default {};
diff --git a/react/features/deep-linking/components/NoMobileApp.native.ts b/react/features/deep-linking/components/NoMobileApp.native.ts
index e69de29bb2..ff8b4c5632 100644
--- a/react/features/deep-linking/components/NoMobileApp.native.ts
+++ b/react/features/deep-linking/components/NoMobileApp.native.ts
@@ -0,0 +1 @@
+export default {};
diff --git a/react/features/deep-linking/functions.ts b/react/features/deep-linking/functions.ts
index 685fc5eac2..d48b95bee6 100644
--- a/react/features/deep-linking/functions.ts
+++ b/react/features/deep-linking/functions.ts
@@ -1,18 +1,13 @@
-/* eslint-disable lines-around-comment */
import { IReduxState } from '../app/types';
import { isMobileBrowser } from '../base/environment/utils';
import Platform from '../base/react/Platform';
import { URI_PROTOCOL_PATTERN } from '../base/util/uri';
import { isVpaasMeeting } from '../jaas/functions';
-// @ts-ignore
import DeepLinkingDesktopPage from './components/DeepLinkingDesktopPage';
-// @ts-ignore
import DeepLinkingMobilePage from './components/DeepLinkingMobilePage';
-// @ts-ignore
import NoMobileApp from './components/NoMobileApp';
import { _openDesktopApp } from './openDesktopApp';
-/* eslint-enable lines-around-comment */
/**
* Generates a deep linking URL based on the current window URL.
diff --git a/react/features/device-selection/components/AudioInputPreview.web.tsx b/react/features/device-selection/components/AudioInputPreview.web.tsx
index ced99dedb8..7565172268 100644
--- a/react/features/device-selection/components/AudioInputPreview.web.tsx
+++ b/react/features/device-selection/components/AudioInputPreview.web.tsx
@@ -1,7 +1,6 @@
import React, { useEffect, useState } from 'react';
import { makeStyles } from 'tss-react/mui';
-// @ts-ignore
import JitsiMeetJS from '../../base/lib-jitsi-meet/_.web';
const JitsiTrackEvents = JitsiMeetJS.events.track;
diff --git a/react/features/display-name/actions.ts b/react/features/display-name/actions.ts
index ff4ce2b1cd..c307b0fbe6 100644
--- a/react/features/display-name/actions.ts
+++ b/react/features/display-name/actions.ts
@@ -1,6 +1,5 @@
import { openDialog } from '../base/dialog/actions';
-// @ts-ignore
import { DisplayNamePrompt } from './components';
/**
diff --git a/react/features/display-name/components/index.native.ts b/react/features/display-name/components/index.native.ts
index 4b38a7b0b9..6c2a5d2410 100644
--- a/react/features/display-name/components/index.native.ts
+++ b/react/features/display-name/components/index.native.ts
@@ -1,2 +1 @@
-// @ts-ignore
export { default as DisplayNamePrompt } from './native/DisplayNamePrompt';
diff --git a/react/features/display-name/middleware.ts b/react/features/display-name/middleware.ts
index 8a5455d1bb..1aad445768 100644
--- a/react/features/display-name/middleware.ts
+++ b/react/features/display-name/middleware.ts
@@ -3,7 +3,6 @@ import { isDialogOpen } from '../base/dialog/functions';
import MiddlewareRegistry from '../base/redux/MiddlewareRegistry';
import { SETTINGS_UPDATED } from '../base/settings/actionTypes';
-// @ts-ignore
import { DisplayNamePrompt } from './components';
/**
diff --git a/react/features/dropbox/functions.native.ts b/react/features/dropbox/functions.native.ts
index 1debe07986..1c4c3a5826 100644
--- a/react/features/dropbox/functions.native.ts
+++ b/react/features/dropbox/functions.native.ts
@@ -1,8 +1,6 @@
import { NativeModules } from 'react-native';
import { IReduxState } from '../app/types';
-// eslint-disable-next-line lines-around-comment
-// @ts-ignore
import { setPictureInPictureEnabled } from '../mobile/picture-in-picture/functions';
const { Dropbox } = NativeModules;
@@ -70,8 +68,7 @@ export function getSpaceUsage(token: string, _appKey?: any) {
* @returns {boolean}
*/
export function isEnabled(state: IReduxState) {
- const { dropbox = {} } = state['features/base/config'];
+ const { dropbox = { appKey: undefined } } = state['features/base/config'];
- // @ts-ignore
return Boolean(Dropbox?.ENABLED && typeof dropbox.appKey === 'string');
}
diff --git a/react/features/feedback/components/FeedbackDialog.native.ts b/react/features/feedback/components/FeedbackDialog.native.ts
index e69de29bb2..5dae9e61dc 100644
--- a/react/features/feedback/components/FeedbackDialog.native.ts
+++ b/react/features/feedback/components/FeedbackDialog.native.ts
@@ -0,0 +1,3 @@
+import { Component } from 'react';
+
+export default Component;
diff --git a/react/features/filmstrip/actions.native.ts b/react/features/filmstrip/actions.native.ts
index 0fa74080e0..971fb78198 100644
--- a/react/features/filmstrip/actions.native.ts
+++ b/react/features/filmstrip/actions.native.ts
@@ -1,9 +1,6 @@
-// @ts-ignore
import conferenceStyles from '../conference/components/native/styles';
import { SET_TILE_VIEW_DIMENSIONS } from './actionTypes';
-// eslint-disable-next-line lines-around-comment
-// @ts-ignore
import styles from './components/native/styles';
import { SQUARE_TILE_ASPECT_RATIO, TILE_MARGIN } from './constants';
import { getColumnCount, getTileViewParticipantCount } from './functions.native';
@@ -24,7 +21,7 @@ export function setTileViewDimensions() {
const { clientHeight: height, clientWidth: width, safeAreaInsets = {} } = state['features/base/responsive-ui'];
const { left = 0, right = 0, top = 0, bottom = 0 } = safeAreaInsets;
const columns = getColumnCount(state);
- const rows = Math.ceil(participantCount / columns);
+ const rows = Math.ceil(participantCount / columns); // @ts-ignore
const conferenceBorder = conferenceStyles.conference.borderWidth || 0;
const heightToUse = height - top - bottom - (2 * conferenceBorder);
const widthToUse = width - (TILE_MARGIN * 2) - left - right - (2 * conferenceBorder);
diff --git a/react/features/filmstrip/components/native/ModeratorIndicator.tsx b/react/features/filmstrip/components/native/ModeratorIndicator.tsx
index f90a60b9c7..20bfcfb7d0 100644
--- a/react/features/filmstrip/components/native/ModeratorIndicator.tsx
+++ b/react/features/filmstrip/components/native/ModeratorIndicator.tsx
@@ -1,8 +1,6 @@
import React from 'react';
import { IconModerator } from '../../../base/icons/svg';
-// eslint-disable-next-line lines-around-comment
-// @ts-ignore
import BaseIndicator from '../../../base/react/components/native/BaseIndicator';
/**
diff --git a/react/features/filmstrip/components/web/Thumbnail.tsx b/react/features/filmstrip/components/web/Thumbnail.tsx
index 57b963f3f9..42ccd85723 100644
--- a/react/features/filmstrip/components/web/Thumbnail.tsx
+++ b/react/features/filmstrip/components/web/Thumbnail.tsx
@@ -1306,9 +1306,17 @@ function _mapStateToProps(state: IReduxState, ownProps: any): Object {
const { thumbnailSize } = state['features/filmstrip'].tileViewDimensions ?? { thumbnailSize: undefined };
const {
stageFilmstripDimensions = {
- thumbnailSize: {}
+ thumbnailSize: {
+ height: undefined,
+ width: undefined
+ }
},
- screenshareFilmstripDimensions
+ screenshareFilmstripDimensions = {
+ thumbnailSize: {
+ height: undefined,
+ width: undefined
+ }
+ }
} = state['features/filmstrip'];
size = {
@@ -1317,16 +1325,19 @@ function _mapStateToProps(state: IReduxState, ownProps: any): Object {
};
if (filmstripType === FILMSTRIP_TYPE.STAGE) {
- // @ts-ignore
- const { width: _width, height: _height } = stageFilmstripDimensions.thumbnailSize;
+ const { width: _width, height: _height } = stageFilmstripDimensions.thumbnailSize ?? {
+ width: undefined,
+ height: undefined };
size = {
_width,
_height
};
} else if (filmstripType === FILMSTRIP_TYPE.SCREENSHARE) {
- // @ts-ignore
- const { width: _width, height: _height } = screenshareFilmstripDimensions.thumbnailSize;
+ const { width: _width, height: _height } = screenshareFilmstripDimensions.thumbnailSize ?? {
+ width: undefined,
+ height: undefined
+ };
size = {
_width,
diff --git a/react/features/filmstrip/components/web/ThumbnailAudioIndicator.tsx b/react/features/filmstrip/components/web/ThumbnailAudioIndicator.tsx
index a280988972..29f214fcc6 100644
--- a/react/features/filmstrip/components/web/ThumbnailAudioIndicator.tsx
+++ b/react/features/filmstrip/components/web/ThumbnailAudioIndicator.tsx
@@ -1,8 +1,6 @@
import React, { useEffect, useState } from 'react';
import AudioLevelIndicator from '../../../audio-level-indicator/components/AudioLevelIndicator';
-// eslint-disable-next-line lines-around-comment
-// @ts-ignore
import JitsiMeetJS from '../../../base/lib-jitsi-meet/_';
import { ITrack } from '../../../base/tracks/types';
diff --git a/react/features/filmstrip/functions.native.ts b/react/features/filmstrip/functions.native.ts
index e01f9ec883..8c26653552 100644
--- a/react/features/filmstrip/functions.native.ts
+++ b/react/features/filmstrip/functions.native.ts
@@ -11,12 +11,9 @@ import Platform from '../base/react/Platform.native';
import { toState } from '../base/redux/functions';
import { ASPECT_RATIO_NARROW } from '../base/responsive-ui/constants';
import { getHideSelfView } from '../base/settings/functions.any';
-// eslint-disable-next-line lines-around-comment
-// @ts-ignore
import conferenceStyles from '../conference/components/native/styles';
import { shouldDisplayTileView } from '../video-layout/functions.native';
-// @ts-ignore
import styles from './components/native/styles';
export * from './functions.any';
@@ -230,7 +227,7 @@ export function getFilmstripDimensions({
};
localParticipantVisible?: boolean;
}) {
- const { height, width, margin } = styles.thumbnail;
+ const { height, width, margin } = styles.thumbnail; // @ts-ignore
const conferenceBorder = conferenceStyles.conference.borderWidth || 0;
const { left = 0, right = 0, top = 0, bottom = 0 } = insets;
diff --git a/react/features/google-api/actions.ts b/react/features/google-api/actions.ts
index 04ec2f24eb..682aa4a6bf 100644
--- a/react/features/google-api/actions.ts
+++ b/react/features/google-api/actions.ts
@@ -9,7 +9,7 @@ import {
import { GOOGLE_API_STATES } from './constants';
// eslint-disable-next-line lines-around-comment
// @ts-ignore
-import googleApi from './googleApi.web';
+import googleApi from './googleApi';
/**
* Retrieves the current calendar events.
diff --git a/react/features/invite/actions.native.ts b/react/features/invite/actions.native.ts
index f457368e2f..4b153a4b0d 100644
--- a/react/features/invite/actions.native.ts
+++ b/react/features/invite/actions.native.ts
@@ -1,19 +1,14 @@
-/* eslint-disable lines-around-comment */
import { IStore } from '../app/types';
import { addPeopleFeatureControl } from '../base/participants/functions';
-// @ts-ignore
import { navigate } from '../mobile/navigation/components/conference/ConferenceNavigationContainerRef';
-// @ts-ignore
import { screen } from '../mobile/navigation/routes';
import { beginShareRoom } from '../share-room/actions';
-/* eslint-enable lines-around-comment */
-
export * from './actions.any';
/**
- * Starts the process for inviting people. Dpending on the sysstem config it
- * may use the system share sheet or the invite peoplee dialog.
+ * Starts the process for inviting people. Depending on the system config it
+ * may use the system share sheet or the invite people dialog.
*
* @returns {Function}
*/
diff --git a/react/features/mobile/navigation/components/ConnectingPage.tsx b/react/features/mobile/navigation/components/ConnectingPage.tsx
index 5abfcf3ade..8d15bdddde 100644
--- a/react/features/mobile/navigation/components/ConnectingPage.tsx
+++ b/react/features/mobile/navigation/components/ConnectingPage.tsx
@@ -1,10 +1,7 @@
-/* eslint-disable lines-around-comment */
-
import React from 'react';
import { useTranslation } from 'react-i18next';
import { SafeAreaView, Text, View, ViewStyle } from 'react-native';
-// @ts-ignore
import JitsiScreen from '../../../base/modal/components/JitsiScreen';
import LoadingIndicator from '../../../base/react/components/native/LoadingIndicator';
diff --git a/react/features/mobile/navigation/components/RootNavigationContainer.tsx b/react/features/mobile/navigation/components/RootNavigationContainer.tsx
index 96f206cebd..b366a7c960 100644
--- a/react/features/mobile/navigation/components/RootNavigationContainer.tsx
+++ b/react/features/mobile/navigation/components/RootNavigationContainer.tsx
@@ -1,5 +1,3 @@
-/* eslint-disable lines-around-comment */
-
import { NavigationContainer, Theme } from '@react-navigation/native';
import { createStackNavigator } from '@react-navigation/stack';
import React, { useCallback } from 'react';
@@ -7,19 +5,13 @@ import { StatusBar } from 'react-native';
import { connect } from 'react-redux';
import { IReduxState } from '../../../app/types';
-// @ts-ignore
import DialInSummary from '../../../invite/components/dial-in-summary/native/DialInSummary';
import Prejoin from '../../../prejoin/components/native/Prejoin';
-// @ts-ignore
import WelcomePage from '../../../welcome/components/WelcomePage';
import { isWelcomePageEnabled } from '../../../welcome/functions';
-// @ts-ignore
import { _ROOT_NAVIGATION_READY } from '../actionTypes';
-// @ts-ignore
import { rootNavigationRef } from '../rootNavigationContainerRef';
-// @ts-ignore
import { screen } from '../routes';
-// @ts-ignore
import {
conferenceNavigationContainerScreenOptions,
connectingScreenOptions,
@@ -27,7 +19,6 @@ import {
navigationContainerTheme,
preJoinScreenOptions,
welcomeScreenOptions
- // @ts-ignore
} from '../screenOptions';
import ConnectingPage from './ConnectingPage';
@@ -82,6 +73,7 @@ const RootNavigationContainer = ({ dispatch, isWelcomePageAvailable }: IProps) =
name = { screen.welcome.main }
options = { welcomeScreenOptions } />
<RootStack.Screen
+
// @ts-ignore
component = { DialInSummary }
name = { screen.dialInSummary }
diff --git a/react/features/mobile/navigation/components/TabBarLabelCounter.tsx b/react/features/mobile/navigation/components/TabBarLabelCounter.tsx
index a0d7ff6c12..5864b66d72 100644
--- a/react/features/mobile/navigation/components/TabBarLabelCounter.tsx
+++ b/react/features/mobile/navigation/components/TabBarLabelCounter.tsx
@@ -1,8 +1,6 @@
-// @ts-ignore
import React from 'react';
import { StyleProp, Text, TextStyle, View } from 'react-native';
-// @ts-ignore
import { navigationStyles } from './styles';
interface ITabBarLabelCounterProps {
diff --git a/react/features/mobile/navigation/components/chat/components/ChatAndPollsNavigator.tsx b/react/features/mobile/navigation/components/chat/components/ChatAndPollsNavigator.tsx
index 026db1b00d..0ecee90c90 100644
--- a/react/features/mobile/navigation/components/chat/components/ChatAndPollsNavigator.tsx
+++ b/react/features/mobile/navigation/components/chat/components/ChatAndPollsNavigator.tsx
@@ -1,7 +1,6 @@
/* eslint-disable lines-around-comment */
import { createMaterialTopTabNavigator } from '@react-navigation/material-top-tabs';
-// @ts-ignore
import React from 'react';
import { useDispatch, useSelector } from 'react-redux';
@@ -9,18 +8,13 @@ import { IReduxState } from '../../../../../app/types';
import {
getClientHeight,
getClientWidth
- // @ts-ignore
} from '../../../../../base/modal/components/functions';
-// @ts-ignore
import { setIsPollsTabFocused } from '../../../../../chat/actions.native';
// @ts-ignore
import Chat from '../../../../../chat/components/native/Chat';
import { resetNbUnreadPollsMessages } from '../../../../../polls/actions';
-// @ts-ignore
import PollsPane from '../../../../../polls/components/native/PollsPane';
-// @ts-ignore
import { screen } from '../../../routes';
-// @ts-ignore
import { chatTabBarOptions } from '../../../screenOptions';
const ChatTab = createMaterialTopTabNavigator();
diff --git a/react/features/mobile/picture-in-picture/functions.js b/react/features/mobile/picture-in-picture/functions.ts
similarity index 97%
rename from react/features/mobile/picture-in-picture/functions.js
rename to react/features/mobile/picture-in-picture/functions.ts
index b03e09d7e2..d3f95ebda0 100644
--- a/react/features/mobile/picture-in-picture/functions.js
+++ b/react/features/mobile/picture-in-picture/functions.ts
@@ -1,5 +1,3 @@
-// @flow
-
import { NativeModules } from 'react-native';
/**
diff --git a/react/features/old-client-notification/middleware.tsx b/react/features/old-client-notification/middleware.tsx
index c812f37d51..1b97763ee6 100644
--- a/react/features/old-client-notification/middleware.tsx
+++ b/react/features/old-client-notification/middleware.tsx
@@ -7,7 +7,6 @@ import MiddlewareRegistry from '../base/redux/MiddlewareRegistry';
import { showErrorNotification } from '../notifications/actions';
import { NOTIFICATION_TIMEOUT_TYPE } from '../notifications/constants';
-// @ts-ignore
import OldElectronAPPNotificationDescription from './components/OldElectronAPPNotificationDescription';
import { isOldJitsiMeetElectronApp } from './functions';
diff --git a/react/features/overlay/components/web/AbstractPageReloadOverlay.tsx b/react/features/overlay/components/web/AbstractPageReloadOverlay.tsx
index a3469d29b8..82fc74d547 100644
--- a/react/features/overlay/components/web/AbstractPageReloadOverlay.tsx
+++ b/react/features/overlay/components/web/AbstractPageReloadOverlay.tsx
@@ -1,4 +1,4 @@
-// @ts-ignore
+// @ts-expect-error
import { randomInt } from '@jitsi/js-utils/random';
import React, { Component } from 'react';
import { WithTranslation } from 'react-i18next';
@@ -100,8 +100,6 @@ export default class AbstractPageReloadOverlay<P extends IProps>
const { error: connectionError } = state['features/base/connection'];
const jitsiConnectionError
-
- // @ts-ignore
= connectionError && isFatalJitsiConnectionError(connectionError);
const jitsiConferenceError
= conferenceError && isFatalJitsiConferenceError(conferenceError);
diff --git a/react/features/participants-pane/actions.native.ts b/react/features/participants-pane/actions.native.ts
index 49edb900c6..0574cdbe8d 100644
--- a/react/features/participants-pane/actions.native.ts
+++ b/react/features/participants-pane/actions.native.ts
@@ -2,12 +2,9 @@
import { IStore } from '../app/types';
import { openSheet } from '../base/dialog/actions';
import { navigate }
-// @ts-ignore
from '../mobile/navigation/components/conference/ConferenceNavigationContainerRef';
-// @ts-ignore
import { screen } from '../mobile/navigation/routes';
import ConnectionStatusComponent
-// @ts-ignore
from '../video-menu/components/native/ConnectionStatusComponent';
// @ts-ignore
import LocalVideoMenu from '../video-menu/components/native/LocalVideoMenu';
diff --git a/react/features/participants-pane/components/native/MeetingParticipantList.tsx b/react/features/participants-pane/components/native/MeetingParticipantList.tsx
index b409c31e50..ad26400b6a 100644
--- a/react/features/participants-pane/components/native/MeetingParticipantList.tsx
+++ b/react/features/participants-pane/components/native/MeetingParticipantList.tsx
@@ -1,5 +1,3 @@
-/* eslint-disable lines-around-comment */
-
import React, { PureComponent } from 'react';
import { WithTranslation } from 'react-i18next';
import { FlatList, Text } from 'react-native';
@@ -30,11 +28,8 @@ import {
shouldRenderInviteButton
} from '../../functions';
-// @ts-ignore
import CollapsibleList from './CollapsibleList';
-// @ts-ignore
import MeetingParticipantItem from './MeetingParticipantItem';
-// @ts-ignore
import styles from './styles';
@@ -261,7 +256,6 @@ class MeetingParticipantList extends PureComponent<IProps> {
}
<Input
clearable = { true }
- // @ts-ignore
customStyles = {{
container: styles.inputContainer,
input: styles.centerInput }}
diff --git a/react/features/participants-pane/components/native/ParticipantsPaneFooter.tsx b/react/features/participants-pane/components/native/ParticipantsPaneFooter.tsx
index aedb6ec51c..1d98302587 100644
--- a/react/features/participants-pane/components/native/ParticipantsPaneFooter.tsx
+++ b/react/features/participants-pane/components/native/ParticipantsPaneFooter.tsx
@@ -1,4 +1,3 @@
-/* eslint-disable lines-around-comment */
import React, { useCallback } from 'react';
import { View, ViewStyle } from 'react-native';
import { useDispatch, useSelector } from 'react-redux';
@@ -8,13 +7,12 @@ import { IconDotsHorizontal } from '../../../base/icons/svg';
import Button from '../../../base/ui/components/native/Button';
import IconButton from '../../../base/ui/components/native/IconButton';
import { BUTTON_TYPES } from '../../../base/ui/constants.native';
+// eslint-disable-next-line lines-around-comment
// @ts-ignore
import MuteEveryoneDialog from '../../../video-menu/components/native/MuteEveryoneDialog';
import { isMoreActionsVisible, isMuteAllVisible } from '../../functions';
-// @ts-ignore
import { ContextMenuMore } from './ContextMenuMore';
-// @ts-ignore
import styles from './styles';
diff --git a/react/features/participants-pane/components/native/RoomParticipantMenu.tsx b/react/features/participants-pane/components/native/RoomParticipantMenu.tsx
index 2027cd9a89..20a176bdb6 100644
--- a/react/features/participants-pane/components/native/RoomParticipantMenu.tsx
+++ b/react/features/participants-pane/components/native/RoomParticipantMenu.tsx
@@ -1,4 +1,3 @@
-/* eslint-disable lines-around-comment */
import React, { PureComponent } from 'react';
import { WithTranslation } from 'react-i18next';
import { Text, TextStyle, View, ViewStyle } from 'react-native';
@@ -7,15 +6,13 @@ import { connect } from 'react-redux';
import { IReduxState } from '../../../app/types';
import Avatar from '../../../base/avatar/components/Avatar';
import { hideSheet } from '../../../base/dialog/actions';
-// @ts-ignore
import BottomSheet from '../../../base/dialog/components/native/BottomSheet';
-// @ts-ignore
import { bottomSheetStyles } from '../../../base/dialog/components/native/styles';
import { translate } from '../../../base/i18n/functions';
import { getBreakoutRooms } from '../../../breakout-rooms/functions';
+// eslint-disable-next-line lines-around-comment
// @ts-ignore
import SendToBreakoutRoom from '../../../video-menu/components/native/SendToBreakoutRoom';
-// @ts-ignore
import styles from '../../../video-menu/components/native/styles';
/**
diff --git a/react/features/polls/components/native/PollAnswer.tsx b/react/features/polls/components/native/PollAnswer.tsx
index b1b41ea1b4..c323e01645 100644
--- a/react/features/polls/components/native/PollAnswer.tsx
+++ b/react/features/polls/components/native/PollAnswer.tsx
@@ -9,7 +9,6 @@ import { BUTTON_TYPES } from '../../../base/ui/constants.native';
import { isSubmitAnswerDisabled } from '../../functions';
import AbstractPollAnswer, { AbstractProps } from '../AbstractPollAnswer';
-// @ts-ignore
import { chatStyles, dialogStyles } from './styles';
diff --git a/react/features/prejoin/components/native/Prejoin.tsx b/react/features/prejoin/components/native/Prejoin.tsx
index 91bc75f0a9..7b2e23f490 100644
--- a/react/features/prejoin/components/native/Prejoin.tsx
+++ b/react/features/prejoin/components/native/Prejoin.tsx
@@ -146,7 +146,6 @@ const Prejoin: React.FC<IPrejoinProps> = ({ navigation }: IPrejoinProps) => {
{ roomName }
</Text>
</View>
- {/* @ts-ignore */}
<LargeVideo />
</View>
}
diff --git a/react/features/recent-list/functions.native.ts b/react/features/recent-list/functions.native.ts
index 8e099a512d..1d1dd5a008 100644
--- a/react/features/recent-list/functions.native.ts
+++ b/react/features/recent-list/functions.native.ts
@@ -2,8 +2,6 @@ import {
getLocalizedDateFormatter,
getLocalizedDurationFormatter
} from '../base/i18n/dateUtil';
-// eslint-disable-next-line lines-around-comment
-// @ts-ignore
import NavigateSectionList from '../base/react/components/native/NavigateSectionList';
import { parseURIString, safeDecodeURIComponent } from '../base/util/uri';
diff --git a/react/features/recording/actions.native.ts b/react/features/recording/actions.native.ts
index c326932abc..9401e8311b 100644
--- a/react/features/recording/actions.native.ts
+++ b/react/features/recording/actions.native.ts
@@ -4,7 +4,6 @@ import JitsiMeetJS from '../base/lib-jitsi-meet';
import { showNotification } from '../notifications/actions';
import { NOTIFICATION_TIMEOUT_TYPE } from '../notifications/constants';
-// @ts-ignore
import HighlightDialog from './components/Recording/native/HighlightDialog';
export * from './actions.any';
diff --git a/react/features/recording/components/Recording/index.native.ts b/react/features/recording/components/Recording/index.native.ts
index d51e121d77..286cb973db 100644
--- a/react/features/recording/components/Recording/index.native.ts
+++ b/react/features/recording/components/Recording/index.native.ts
@@ -1,2 +1 @@
-// @ts-ignore
export { default as StartRecordingDialog } from './native/StartRecordingDialog';
diff --git a/react/features/recording/components/Recording/native/StartRecordingDialogContent.tsx b/react/features/recording/components/Recording/native/StartRecordingDialogContent.tsx
index a57137fe40..770949440c 100644
--- a/react/features/recording/components/Recording/native/StartRecordingDialogContent.tsx
+++ b/react/features/recording/components/Recording/native/StartRecordingDialogContent.tsx
@@ -1,11 +1,9 @@
-/* eslint-disable lines-around-comment */
import React from 'react';
import { Image, View } from 'react-native';
import { Text } from 'react-native-paper';
import { connect } from 'react-redux';
import { translate } from '../../../../base/i18n/functions';
-// @ts-ignore
import LoadingIndicator from '../../../../base/react/components/native/LoadingIndicator';
import Button from '../../../../base/ui/components/native/Button';
import Switch from '../../../../base/ui/components/native/Switch';
@@ -21,7 +19,6 @@ import {
ICON_CLOUD,
ICON_INFO,
ICON_USERS
- // @ts-ignore
} from '../styles.native';
diff --git a/react/features/remote-control/actions.ts b/react/features/remote-control/actions.ts
index 21bec01d11..fc3eb3732c 100644
--- a/react/features/remote-control/actions.ts
+++ b/react/features/remote-control/actions.ts
@@ -1,4 +1,4 @@
-// @ts-ignore
+// @ts-expect-error
import $ from 'jquery';
import React from 'react';
diff --git a/react/features/room-lock/actions.ts b/react/features/room-lock/actions.ts
index 0586e1f430..4993b42d36 100644
--- a/react/features/room-lock/actions.ts
+++ b/react/features/room-lock/actions.ts
@@ -11,7 +11,6 @@ import { hideDialog, openDialog } from '../base/dialog/actions';
// @ts-ignore
import { SecurityDialog } from '../security/components/security-dialog';
-// @ts-ignore
import PasswordRequiredPrompt from './components/PasswordRequiredPrompt';
/**
diff --git a/react/features/room-lock/middleware.ts b/react/features/room-lock/middleware.ts
index 6591a8bae5..9ba611c0fd 100644
--- a/react/features/room-lock/middleware.ts
+++ b/react/features/room-lock/middleware.ts
@@ -16,8 +16,6 @@ import { showNotification } from '../notifications/actions';
import { NOTIFICATION_TIMEOUT_TYPE } from '../notifications/constants';
import { _openPasswordRequiredPrompt } from './actions';
-// eslint-disable-next-line lines-around-comment
-// @ts-ignore
import PasswordRequiredPrompt from './components/PasswordRequiredPrompt';
import { LOCKED_REMOTELY } from './constants';
import logger from './logger';
diff --git a/react/features/rtcstats/RTCStats.ts b/react/features/rtcstats/RTCStats.ts
index 4348c02046..241a849cd0 100644
--- a/react/features/rtcstats/RTCStats.ts
+++ b/react/features/rtcstats/RTCStats.ts
@@ -1,17 +1,15 @@
-// @ts-ignore
-import { PC_CON_STATE_CHANGE,
+/* eslint-disable lines-around-comment */
+import {
+ PC_CON_STATE_CHANGE,
PC_STATE_CONNECTED,
PC_STATE_FAILED
-
- // @ts-ignore
+ // @ts-expect-error
} from '@jitsi/rtcstats/events';
-// eslint-disable-next-line lines-around-comment
-// @ts-ignore
+// @ts-expect-error
import rtcstatsInit from '@jitsi/rtcstats/rtcstats';
-// eslint-disable-next-line lines-around-comment
-// @ts-ignore
+// @ts-expect-error
import traceInit from '@jitsi/rtcstats/trace-ws';
-
+/* eslint-enable lines-around-comment */
import { createRTCStatsTraceCloseEvent } from '../analytics/AnalyticsEvents';
import { sendAnalytics } from '../analytics/functions';
diff --git a/react/features/rtcstats/functions.ts b/react/features/rtcstats/functions.ts
index 2629e917bd..dc94df3c27 100644
--- a/react/features/rtcstats/functions.ts
+++ b/react/features/rtcstats/functions.ts
@@ -1,4 +1,4 @@
-// @ts-ignore
+// @ts-expect-error
import { jitsiLocalStorage } from '@jitsi/js-utils';
import { getAmplitudeIdentity } from '../analytics/functions';
diff --git a/react/features/settings/components/web/audio/MicrophoneEntry.tsx b/react/features/settings/components/web/audio/MicrophoneEntry.tsx
index 117ea59b68..2e62d67084 100644
--- a/react/features/settings/components/web/audio/MicrophoneEntry.tsx
+++ b/react/features/settings/components/web/audio/MicrophoneEntry.tsx
@@ -3,8 +3,6 @@ import { makeStyles } from 'tss-react/mui';
import Icon from '../../../../base/icons/components/Icon';
import { IconCheck, IconExclamationSolid } from '../../../../base/icons/svg';
-// eslint-disable-next-line lines-around-comment
-// @ts-ignore
import JitsiMeetJS from '../../../../base/lib-jitsi-meet/_';
import ContextMenuItem from '../../../../base/ui/components/web/ContextMenuItem';
import { TEXT_OVERFLOW_TYPES } from '../../../../base/ui/constants.any';
diff --git a/react/features/shared-video/components/web/AbstractVideoManager.ts b/react/features/shared-video/components/web/AbstractVideoManager.ts
index 26a5376401..50db313e74 100644
--- a/react/features/shared-video/components/web/AbstractVideoManager.ts
+++ b/react/features/shared-video/components/web/AbstractVideoManager.ts
@@ -1,4 +1,4 @@
-// @ts-ignore
+// @ts-expect-error
import Logger from '@jitsi/logger';
import throttle from 'lodash/throttle';
import { PureComponent } from 'react';
diff --git a/react/features/shared-video/components/web/SharedVideo.tsx b/react/features/shared-video/components/web/SharedVideo.tsx
index 1ecbc23603..2be6481b75 100644
--- a/react/features/shared-video/components/web/SharedVideo.tsx
+++ b/react/features/shared-video/components/web/SharedVideo.tsx
@@ -8,10 +8,7 @@ import { getLocalParticipant } from '../../../base/participants/functions';
import { getVerticalViewMaxWidth } from '../../../filmstrip/functions.web';
import { getToolboxHeight } from '../../../toolbox/functions.web';
-// @ts-ignore
import VideoManager from './VideoManager';
-// eslint-disable-next-line lines-around-comment
-// @ts-ignore
import YoutubeVideoManager from './YoutubeVideoManager';
interface IProps {
diff --git a/react/features/stream-effects/noise-suppression/NoiseSuppressorWorklet.ts b/react/features/stream-effects/noise-suppression/NoiseSuppressorWorklet.ts
index 89e7555dd2..d7dcd88fcc 100644
--- a/react/features/stream-effects/noise-suppression/NoiseSuppressorWorklet.ts
+++ b/react/features/stream-effects/noise-suppression/NoiseSuppressorWorklet.ts
@@ -1,4 +1,4 @@
-// @ts-ignore
+// @ts-expect-error
import { createRNNWasmModuleSync } from '@jitsi/rnnoise-wasm';
import { leastCommonMultiple } from '../../base/util/math';
diff --git a/react/features/stream-effects/rnnoise/index.ts b/react/features/stream-effects/rnnoise/index.ts
index 824de3bfc7..460e431917 100644
--- a/react/features/stream-effects/rnnoise/index.ts
+++ b/react/features/stream-effects/rnnoise/index.ts
@@ -1,6 +1,6 @@
// Script expects to find rnnoise webassembly binary in the same public path root, otherwise it won't load
// During the build phase this needs to be taken care of manually
-// @ts-ignore
+// @ts-expect-error
import { createRNNWasmModule } from '@jitsi/rnnoise-wasm';
import RnnoiseProcessor from './RnnoiseProcessor';
diff --git a/react/features/subtitles/components/AbstractCaptions.tsx b/react/features/subtitles/components/AbstractCaptions.tsx
index a4f5794059..b4e8968203 100644
--- a/react/features/subtitles/components/AbstractCaptions.tsx
+++ b/react/features/subtitles/components/AbstractCaptions.tsx
@@ -18,7 +18,7 @@ export interface IAbstractCaptionsProps {
* Mapped by id just to have the keys for convenience during the rendering
* process.
*/
- _transcripts: Map<string, string>;
+ _transcripts?: Map<string, string>;
}
/**
diff --git a/react/features/subtitles/components/AbstractClosedCaptionButton.tsx b/react/features/subtitles/components/AbstractClosedCaptionButton.tsx
index a079857084..26d541d461 100644
--- a/react/features/subtitles/components/AbstractClosedCaptionButton.tsx
+++ b/react/features/subtitles/components/AbstractClosedCaptionButton.tsx
@@ -1,12 +1,9 @@
-/* eslint-disable lines-around-comment */
-
import { createToolbarEvent } from '../../analytics/AnalyticsEvents';
import { sendAnalytics } from '../../analytics/functions';
import { IReduxState } from '../../app/types';
import { MEET_FEATURES } from '../../base/jwt/constants';
import { isLocalParticipantModerator } from '../../base/participants/functions';
import AbstractButton, { IProps as AbstractButtonProps } from '../../base/toolbox/components/AbstractButton';
-// @ts-ignore
import { maybeShowPremiumFeatureDialog } from '../../jaas/actions';
export interface IAbstractProps extends AbstractButtonProps {
diff --git a/react/features/subtitles/components/native/Captions.tsx b/react/features/subtitles/components/native/Captions.tsx
index fb4edc46c4..71dcbf0a6c 100644
--- a/react/features/subtitles/components/native/Captions.tsx
+++ b/react/features/subtitles/components/native/Captions.tsx
@@ -62,5 +62,4 @@ class Captions extends AbstractCaptions<IProps> {
}
}
-// @ts-ignore
export default connect(_abstractMapStateToProps)(Captions);
diff --git a/react/features/subtitles/components/web/Captions.tsx b/react/features/subtitles/components/web/Captions.tsx
index a69fdabfe6..3226318c9c 100644
--- a/react/features/subtitles/components/web/Captions.tsx
+++ b/react/features/subtitles/components/web/Captions.tsx
@@ -84,5 +84,4 @@ function mapStateToProps(state: IReduxState) {
};
}
-// @ts-ignore
export default connect(mapStateToProps)(Captions);
diff --git a/react/features/toolbox/components/native/OpenCarmodeButton.tsx b/react/features/toolbox/components/native/OpenCarmodeButton.tsx
index ef42a4f679..69376ff956 100644
--- a/react/features/toolbox/components/native/OpenCarmodeButton.tsx
+++ b/react/features/toolbox/components/native/OpenCarmodeButton.tsx
@@ -9,7 +9,6 @@ import AbstractButton, { IProps as AbstractButtonProps } from '../../../base/too
import { navigate }
from '../../../mobile/navigation/components/conference/ConferenceNavigationContainerRef';
import { screen } from '../../../mobile/navigation/routes';
-/* eslint-enable lines-around-comment */
/**
* Implements an {@link AbstractButton} to open the carmode.
diff --git a/react/features/toolbox/components/web/AudioSettingsButton.tsx b/react/features/toolbox/components/web/AudioSettingsButton.tsx
index 202e48755f..98b4e5929a 100644
--- a/react/features/toolbox/components/web/AudioSettingsButton.tsx
+++ b/react/features/toolbox/components/web/AudioSettingsButton.tsx
@@ -6,8 +6,6 @@ import { IReduxState } from '../../../app/types';
import { isMobileBrowser } from '../../../base/environment/utils';
import { translate } from '../../../base/i18n/functions';
import { IconArrowUp } from '../../../base/icons/svg';
-// eslint-disable-next-line lines-around-comment
-// @ts-ignore
import JitsiMeetJS from '../../../base/lib-jitsi-meet/_';
import ToolboxButtonWithIcon from '../../../base/toolbox/components/web/ToolboxButtonWithIcon';
import { toggleAudioSettings } from '../../../settings/actions';
diff --git a/react/features/toolbox/components/web/ShareDesktopButton.ts b/react/features/toolbox/components/web/ShareDesktopButton.ts
index 3872982a79..3b286dad5a 100644
--- a/react/features/toolbox/components/web/ShareDesktopButton.ts
+++ b/react/features/toolbox/components/web/ShareDesktopButton.ts
@@ -3,8 +3,6 @@ import { connect } from 'react-redux';
import { IReduxState } from '../../../app/types';
import { translate } from '../../../base/i18n/functions';
import { IconScreenshare, IconStopScreenshare } from '../../../base/icons/svg';
-// eslint-disable-next-line lines-around-comment
-// @ts-ignore
import JitsiMeetJS from '../../../base/lib-jitsi-meet/_';
import AbstractButton, { IProps as AbstractButtonProps } from '../../../base/toolbox/components/AbstractButton';
import { isScreenVideoShared } from '../../../screen-share/functions';
diff --git a/react/features/virtual-background/components/VirtualBackgrounds.tsx b/react/features/virtual-background/components/VirtualBackgrounds.tsx
index 9cc55b9e37..8ad10ef1a7 100644
--- a/react/features/virtual-background/components/VirtualBackgrounds.tsx
+++ b/react/features/virtual-background/components/VirtualBackgrounds.tsx
@@ -1,7 +1,7 @@
-// @ts-ignore
+// @ts-expect-error
import Bourne from '@hapi/bourne';
// eslint-disable-next-line lines-around-comment
-// @ts-ignore
+// @ts-expect-error
import { jitsiLocalStorage } from '@jitsi/js-utils/jitsi-local-storage';
import React, { useCallback, useEffect, useState } from 'react';
import { WithTranslation } from 'react-i18next';
diff --git a/react/features/visitors/components/native/VisitorsCountLabel.tsx b/react/features/visitors/components/native/VisitorsCountLabel.tsx
index afde7c8640..c8d401650e 100644
--- a/react/features/visitors/components/native/VisitorsCountLabel.tsx
+++ b/react/features/visitors/components/native/VisitorsCountLabel.tsx
@@ -3,8 +3,6 @@ import { useSelector } from 'react-redux';
import { IReduxState } from '../../../app/types';
import { IconUsers } from '../../../base/icons/svg';
-// eslint-disable-next-line lines-around-comment
-// @ts-ignore
import Label from '../../../base/label/components/native/Label';
import BaseTheme from '../../../base/ui/components/BaseTheme.native';
import { getVisitorsShortText, iAmVisitor } from '../../functions';