diff --git a/packages/element-library/src/typings/styled.d.ts b/packages/element-library/src/typings/styled.d.ts index aa9510a21976..df76ee45af84 100644 --- a/packages/element-library/src/typings/styled.d.ts +++ b/packages/element-library/src/typings/styled.d.ts @@ -21,5 +21,6 @@ import 'styled-components'; import type { Theme } from '@googleforcreators/design-system'; declare module 'styled-components' { + // eslint-disable-next-line @typescript-eslint/no-empty-object-type -- On purpose. export interface DefaultTheme extends Theme {} } diff --git a/packages/story-editor/src/components/mediaRecording/provider.js b/packages/story-editor/src/components/mediaRecording/provider.js index 8111755aa5fd..ab329b5709ab 100644 --- a/packages/story-editor/src/components/mediaRecording/provider.js +++ b/packages/story-editor/src/components/mediaRecording/provider.js @@ -249,7 +249,7 @@ function MediaRecordingProvider({ children }) { // remove these devices from the list. .filter((device) => device.label) ); - } catch (err) { + } catch { // Do nothing for now. } }, []); diff --git a/packages/story-editor/src/components/panels/design/link/link.js b/packages/story-editor/src/components/panels/design/link/link.js index 5efcd69b0094..f5e75aac2b79 100644 --- a/packages/story-editor/src/components/panels/design/link/link.js +++ b/packages/story-editor/src/components/panels/design/link/link.js @@ -177,7 +177,7 @@ function LinkPanel({ selectedElements, pushUpdateForObject }) { newIcon, needsProxy, }); - } catch (e) { + } catch { setIsInvalidUrl(true); } finally { setFetchingMetadata(false);