diff --git a/packages/app-mobile/components/CameraView.tsx b/packages/app-mobile/components/CameraView.tsx index 927005f68..9e7d2b8eb 100644 --- a/packages/app-mobile/components/CameraView.tsx +++ b/packages/app-mobile/components/CameraView.tsx @@ -8,11 +8,6 @@ const { _ } = require('@joplin/lib/locale'); import shim from '@joplin/lib/shim'; import Setting from '@joplin/lib/models/Setting'; -// We need this to suppress the useless warning -// https://github.com/oblador/react-native-vector-icons/issues/1465 -// eslint-disable-next-line no-console, @typescript-eslint/no-explicit-any -- Old code before rule was applied -Icon.loadFont().catch((error: any) => { console.info(error); }); - class CameraView extends Component { public constructor() { super(); diff --git a/packages/app-mobile/components/ScreenHeader/index.tsx b/packages/app-mobile/components/ScreenHeader/index.tsx index 8997ffe70..ea793a49a 100644 --- a/packages/app-mobile/components/ScreenHeader/index.tsx +++ b/packages/app-mobile/components/ScreenHeader/index.tsx @@ -25,11 +25,6 @@ import { ContainerType } from '@joplin/lib/services/plugins/WebviewController'; import { Dispatch } from 'redux'; import WarningBanner from './WarningBanner'; -// We need this to suppress the useless warning -// https://github.com/oblador/react-native-vector-icons/issues/1465 -// eslint-disable-next-line no-console, @typescript-eslint/no-explicit-any -- Old code before rule was applied -Icon.loadFont().catch((error: any) => { console.info(error); }); - // Rather than applying a padding to the whole bar, it is applied to each // individual component (button, picker, etc.) so that the touchable areas // are widder and to give more room to the picker component which has a larger diff --git a/packages/app-mobile/components/checkbox.js b/packages/app-mobile/components/checkbox.js index 1fd336f7c..3c71c72cf 100644 --- a/packages/app-mobile/components/checkbox.js +++ b/packages/app-mobile/components/checkbox.js @@ -2,10 +2,6 @@ const React = require('react'); const Component = React.Component; const { View, TouchableHighlight } = require('react-native'); const Icon = require('react-native-vector-icons/Ionicons').default; -// We need this to suppress the useless warning -// https://github.com/oblador/react-native-vector-icons/issues/1465 -// eslint-disable-next-line no-console -Icon.loadFont().catch((error) => { console.info(error); }); const styles = { checkboxIcon: { diff --git a/packages/app-mobile/components/screens/NoteTagsDialog.tsx b/packages/app-mobile/components/screens/NoteTagsDialog.tsx index 58098256b..5c63efc72 100644 --- a/packages/app-mobile/components/screens/NoteTagsDialog.tsx +++ b/packages/app-mobile/components/screens/NoteTagsDialog.tsx @@ -11,11 +11,6 @@ import { AppState } from '../../utils/types'; import { TagEntity } from '@joplin/lib/services/database/types'; const naturalCompare = require('string-natural-compare'); -// We need this to suppress the useless warning -// https://github.com/oblador/react-native-vector-icons/issues/1465 -// eslint-disable-next-line no-console, @typescript-eslint/no-explicit-any -- Old code before rule was applied -Icon.loadFont().catch((error: any) => { console.info(error); }); - interface Props { themeId: number; noteId: string|null; diff --git a/packages/app-mobile/components/screens/search.tsx b/packages/app-mobile/components/screens/search.tsx index 900367b7c..7a12255c3 100644 --- a/packages/app-mobile/components/screens/search.tsx +++ b/packages/app-mobile/components/screens/search.tsx @@ -15,11 +15,6 @@ import SearchEngine from '@joplin/lib/services/search/SearchEngine'; import { AppState } from '../../utils/types'; import { NoteEntity } from '@joplin/lib/services/database/types'; -// We need this to suppress the useless warning -// https://github.com/oblador/react-native-vector-icons/issues/1465 -// eslint-disable-next-line no-console, @typescript-eslint/no-explicit-any -- Old code before rule was applied -Icon.loadFont().catch((error: any) => { console.info(error); }); - class SearchScreenComponent extends BaseScreenComponent { // eslint-disable-next-line @typescript-eslint/no-explicit-any -- Old code before rule was applied diff --git a/packages/app-mobile/components/side-menu-content-note.js b/packages/app-mobile/components/side-menu-content-note.js index 7ed700756..9082c79a2 100644 --- a/packages/app-mobile/components/side-menu-content-note.js +++ b/packages/app-mobile/components/side-menu-content-note.js @@ -5,11 +5,6 @@ const { connect } = require('react-redux'); const Icon = require('react-native-vector-icons/Ionicons').default; const { themeStyle } = require('./global-style'); -// We need this to suppress the useless warning -// https://github.com/oblador/react-native-vector-icons/issues/1465 -// eslint-disable-next-line no-console -Icon.loadFont().catch((error) => { console.info(error); }); - class SideMenuContentNoteComponent extends Component { constructor() { super(); diff --git a/packages/app-mobile/components/side-menu-content.tsx b/packages/app-mobile/components/side-menu-content.tsx index 3031fbc0d..9f9889c6e 100644 --- a/packages/app-mobile/components/side-menu-content.tsx +++ b/packages/app-mobile/components/side-menu-content.tsx @@ -20,11 +20,6 @@ import emptyTrash from '@joplin/lib/services/trash/emptyTrash'; import { ModelType } from '@joplin/lib/BaseModel'; const { substrWithEllipsis } = require('@joplin/lib/string-utils'); -// We need this to suppress the useless warning -// https://github.com/oblador/react-native-vector-icons/issues/1465 -// eslint-disable-next-line no-console, @typescript-eslint/no-explicit-any -- Old code before rule was applied -Icon.loadFont().catch((error: any) => { console.info(error); }); - interface Props { syncStarted: boolean; themeId: number;