From e9b245b7d43162074ff9907418cb13d89c6373e6 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Wed, 20 Sep 2023 11:55:04 -0500 Subject: [PATCH] Remove 'use strict' expressions --- src/api/index.ts | 1 - src/containers/soapbox.tsx | 2 -- src/features/account/components/header.tsx | 2 -- src/features/compose/components/schedule-form.tsx | 2 -- .../components/instance-restrictions.tsx | 2 -- src/features/remote-timeline/components/pinned-hosts-picker.tsx | 2 -- src/features/ui/components/instance-info-panel.tsx | 2 -- src/features/ui/components/instance-moderation-panel.tsx | 2 -- src/features/ui/components/profile-info-panel.tsx | 2 -- src/features/ui/index.tsx | 2 -- src/is-mobile.ts | 2 -- src/middleware/sounds.ts | 2 -- src/ready.ts | 2 -- src/reducers/meta.ts | 2 -- src/rtl.ts | 2 -- src/settings.ts | 2 -- src/stream.ts | 2 -- src/utils/comparators.ts | 2 -- 18 files changed, 35 deletions(-) diff --git a/src/api/index.ts b/src/api/index.ts index 09587e4436..f716761455 100644 --- a/src/api/index.ts +++ b/src/api/index.ts @@ -3,7 +3,6 @@ * @see {@link https://github.com/axios/axios} * @module soapbox/api */ -'use strict'; import axios, { AxiosInstance, AxiosResponse } from 'axios'; import LinkHeader from 'http-link-header'; diff --git a/src/containers/soapbox.tsx b/src/containers/soapbox.tsx index 811784cbda..2d26d78ad9 100644 --- a/src/containers/soapbox.tsx +++ b/src/containers/soapbox.tsx @@ -1,5 +1,3 @@ -'use strict'; - import { QueryClientProvider } from '@tanstack/react-query'; import clsx from 'clsx'; import React, { useState, useEffect } from 'react'; diff --git a/src/features/account/components/header.tsx b/src/features/account/components/header.tsx index bbf494f349..733c104105 100644 --- a/src/features/account/components/header.tsx +++ b/src/features/account/components/header.tsx @@ -1,5 +1,3 @@ -'use strict'; - import { useMutation } from '@tanstack/react-query'; import { AxiosError } from 'axios'; import { List as ImmutableList } from 'immutable'; diff --git a/src/features/compose/components/schedule-form.tsx b/src/features/compose/components/schedule-form.tsx index 769dc6a970..add85a4281 100644 --- a/src/features/compose/components/schedule-form.tsx +++ b/src/features/compose/components/schedule-form.tsx @@ -1,5 +1,3 @@ -'use strict'; - import clsx from 'clsx'; import React from 'react'; import { defineMessages, FormattedMessage, useIntl } from 'react-intl'; diff --git a/src/features/federation-restrictions/components/instance-restrictions.tsx b/src/features/federation-restrictions/components/instance-restrictions.tsx index 153cba1a70..f4ae397cd8 100644 --- a/src/features/federation-restrictions/components/instance-restrictions.tsx +++ b/src/features/federation-restrictions/components/instance-restrictions.tsx @@ -1,5 +1,3 @@ -'use strict'; - import React from 'react'; import { FormattedMessage } from 'react-intl'; diff --git a/src/features/remote-timeline/components/pinned-hosts-picker.tsx b/src/features/remote-timeline/components/pinned-hosts-picker.tsx index c787764b29..39dfe119b0 100644 --- a/src/features/remote-timeline/components/pinned-hosts-picker.tsx +++ b/src/features/remote-timeline/components/pinned-hosts-picker.tsx @@ -1,5 +1,3 @@ -'use strict'; - import React from 'react'; import { Button, HStack } from 'soapbox/components/ui'; diff --git a/src/features/ui/components/instance-info-panel.tsx b/src/features/ui/components/instance-info-panel.tsx index 4e2d07730f..dd06665c54 100644 --- a/src/features/ui/components/instance-info-panel.tsx +++ b/src/features/ui/components/instance-info-panel.tsx @@ -1,5 +1,3 @@ -'use strict'; - import React from 'react'; import { useIntl, defineMessages } from 'react-intl'; diff --git a/src/features/ui/components/instance-moderation-panel.tsx b/src/features/ui/components/instance-moderation-panel.tsx index 4143f14d4a..45d31993a6 100644 --- a/src/features/ui/components/instance-moderation-panel.tsx +++ b/src/features/ui/components/instance-moderation-panel.tsx @@ -1,5 +1,3 @@ -'use strict'; - import React from 'react'; import { useIntl, defineMessages, FormattedMessage } from 'react-intl'; diff --git a/src/features/ui/components/profile-info-panel.tsx b/src/features/ui/components/profile-info-panel.tsx index d7cbb87759..9fe73129cf 100644 --- a/src/features/ui/components/profile-info-panel.tsx +++ b/src/features/ui/components/profile-info-panel.tsx @@ -1,5 +1,3 @@ -'use strict'; - import React from 'react'; import { defineMessages, useIntl, FormattedMessage } from 'react-intl'; diff --git a/src/features/ui/index.tsx b/src/features/ui/index.tsx index 68b65e19f2..10ef6bc1ee 100644 --- a/src/features/ui/index.tsx +++ b/src/features/ui/index.tsx @@ -1,5 +1,3 @@ -'use strict'; - import clsx from 'clsx'; import React, { useEffect, useRef } from 'react'; import { Switch, useHistory, useLocation, Redirect } from 'react-router-dom'; diff --git a/src/is-mobile.ts b/src/is-mobile.ts index fe90f9a974..bbe38a123d 100644 --- a/src/is-mobile.ts +++ b/src/is-mobile.ts @@ -1,5 +1,3 @@ -'use strict'; - import { supportsPassiveEvents } from 'detect-passive-events'; /** Breakpoint at which the application is considered "mobile". */ diff --git a/src/middleware/sounds.ts b/src/middleware/sounds.ts index a1055701ca..4f9167135a 100644 --- a/src/middleware/sounds.ts +++ b/src/middleware/sounds.ts @@ -1,5 +1,3 @@ -'use strict'; - import { AnyAction } from 'redux'; import { play, soundCache } from 'soapbox/utils/sounds'; diff --git a/src/ready.ts b/src/ready.ts index f74b03694b..4ba42b1f43 100644 --- a/src/ready.ts +++ b/src/ready.ts @@ -1,5 +1,3 @@ -'use strict'; - export default function ready(loaded: () => void): void { if (['interactive', 'complete'].includes(document.readyState)) { loaded(); diff --git a/src/reducers/meta.ts b/src/reducers/meta.ts index fdce05e3e4..923a89c1bf 100644 --- a/src/reducers/meta.ts +++ b/src/reducers/meta.ts @@ -1,5 +1,3 @@ -'use strict'; - import { Record as ImmutableRecord } from 'immutable'; import { fetchInstance } from 'soapbox/actions/instance'; diff --git a/src/rtl.ts b/src/rtl.ts index 16a6100ef7..29faab06b1 100644 --- a/src/rtl.ts +++ b/src/rtl.ts @@ -1,5 +1,3 @@ -'use strict'; - // U+0590 to U+05FF - Hebrew // U+0600 to U+06FF - Arabic // U+0700 to U+074F - Syriac diff --git a/src/settings.ts b/src/settings.ts index e0ee058527..ce713f17ee 100644 --- a/src/settings.ts +++ b/src/settings.ts @@ -1,5 +1,3 @@ -'use strict'; - export default class Settings { keyBase: string | null = null; diff --git a/src/stream.ts b/src/stream.ts index a15ce02e83..a8bb88b632 100644 --- a/src/stream.ts +++ b/src/stream.ts @@ -1,5 +1,3 @@ -'use strict'; - import WebSocketClient from '@gamestdio/websocket'; import { getAccessToken } from 'soapbox/utils/auth'; diff --git a/src/utils/comparators.ts b/src/utils/comparators.ts index ed91510e80..b664cdb6fa 100644 --- a/src/utils/comparators.ts +++ b/src/utils/comparators.ts @@ -1,5 +1,3 @@ -'use strict'; - /** * Compare numerical primary keys represented as strings. * For example, '10' (as a string) is considered less than '9'