Skip to content

Commit

Permalink
Remove "use strict" from typescript files.
Browse files Browse the repository at this point in the history
It is redundant when using typescript.
  • Loading branch information
na9da committed Nov 14, 2024
1 parent 07fb746 commit 5e8c379
Show file tree
Hide file tree
Showing 22 changed files with 0 additions and 38 deletions.
2 changes: 0 additions & 2 deletions lib/Core/GoogleAnalytics.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
"use strict";

import i18next from "i18next";
import ReactGA from "react-ga4";
import { Analytics, ConfigParameters } from "../Models/Terria";
Expand Down
2 changes: 0 additions & 2 deletions lib/Core/TerriaError.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
"use strict";

import i18next from "i18next";
import { observable, makeObservable } from "mobx";
import RequestErrorEvent from "terriajs-cesium/Source/Core/RequestErrorEvent";
Expand Down
2 changes: 0 additions & 2 deletions lib/Core/flatten.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
"use strict";

/**
* Flattens an array of arrays, into an array, eg. [[0, 1], [2, 3], [4, 5]] => [0, 1, 2, 3, 4, 5].
* Based on the example at
Expand Down
2 changes: 0 additions & 2 deletions lib/Core/flattenNested.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
"use strict";

type NestedArray<T> = NestedArray<T>[] | T[];

/**
Expand Down
2 changes: 0 additions & 2 deletions lib/Map/Vector/computeRingWindingOrder.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
"use strict";

import i18next from "i18next";
import WindingOrder from "terriajs-cesium/Source/Core/WindingOrder";
import DeveloperError from "terriajs-cesium/Source/Core/DeveloperError";
Expand Down
2 changes: 0 additions & 2 deletions lib/Models/Catalog/proxyCatalogItemUrl.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
"use strict";

import defaultValue from "terriajs-cesium/Source/Core/defaultValue";
import isDefined from "../../Core/isDefined";
import UrlMixin from "../../ModelMixins/UrlMixin";
Expand Down
1 change: 0 additions & 1 deletion lib/ReactViews/Custom/Chart/ChartPanelDownloadButton.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
"use strict";
import FileSaver from "file-saver";
import { runInAction, toJS } from "mobx";
import { observer } from "mobx-react";
Expand Down
2 changes: 0 additions & 2 deletions lib/ReactViews/Custom/Collapsible/Collapsible.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
"use strict";

import { observer } from "mobx-react";
import React, { useEffect, useState } from "react";
import Box, { IBoxProps } from "../../../Styled/Box";
Expand Down
2 changes: 0 additions & 2 deletions lib/ReactViews/Custom/registerCustomComponentTypes.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
"use strict";

import { when } from "mobx";
import { addOrReplaceRemoteFileUploadType } from "../../Core/getDataType";
import Terria from "../../Models/Terria";
Expand Down
1 change: 0 additions & 1 deletion lib/ReactViews/Map/BottomBar/DistanceLegend.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
"use strict";
import L from "leaflet";
import { runInAction } from "mobx";
import { observer } from "mobx-react";
Expand Down
1 change: 0 additions & 1 deletion lib/ReactViews/Map/MapNavigation/Items/MeasureTool.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
"use strict";
import i18next from "i18next";
import React from "react";
import ArcType from "terriajs-cesium/Source/Core/ArcType";
Expand Down
2 changes: 0 additions & 2 deletions lib/ReactViews/Map/Panels/SharePanel/BuildShareLink.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
"use strict";

import { uniq } from "lodash-es";
import { runInAction, toJS } from "mobx";
import Ellipsoid from "terriajs-cesium/Source/Core/Ellipsoid";
Expand Down
2 changes: 0 additions & 2 deletions lib/ReactViews/Map/Panels/ToolsPanel/CountDatasets.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
"use strict";

import { observer } from "mobx-react";
import React, { useState } from "react";
import { useTranslation } from "react-i18next";
Expand Down
1 change: 0 additions & 1 deletion lib/ReactViews/MapIconButton/MapIconButton.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
"use strict";
import React, { useRef, useState } from "react";
import styled, { useTheme } from "styled-components";
import Box from "../../Styled/Box";
Expand Down
2 changes: 0 additions & 2 deletions lib/ReactViews/Notification/MapInteractionWindow.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
"use strict";

import classNames from "classnames";
import { Lambda, observable, reaction, makeObservable } from "mobx";
import { observer } from "mobx-react";
Expand Down
1 change: 0 additions & 1 deletion lib/ReactViews/SidePanel/Branding.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
"use strict";
import { observer } from "mobx-react";
import React from "react";
import isDefined from "../../Core/isDefined";
Expand Down
2 changes: 0 additions & 2 deletions lib/ReactViews/Workbench/Controls/Legend.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
"use strict";

import { observer } from "mobx-react";
import React, { SyntheticEvent } from "react";
import defined from "terriajs-cesium/Source/Core/defined";
Expand Down
2 changes: 0 additions & 2 deletions lib/ReactViews/Workbench/Controls/OpacitySection.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
"use strict";

import { TFunction } from "i18next";
import { runInAction } from "mobx";
import { observer } from "mobx-react";
Expand Down
1 change: 0 additions & 1 deletion lib/ReactViews/Workbench/WorkbenchButton.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
"use strict";
import React from "react";
import styled from "styled-components";
import Box from "../../Styled/Box";
Expand Down
2 changes: 0 additions & 2 deletions test/Map/featureDataToGeoJsonSpec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
"use strict";

import featureDataToGeoJson from "../../lib/Map/PickedFeatures/featureDataToGeoJson";

describe("featureDataToGeoJson", function () {
Expand Down
2 changes: 0 additions & 2 deletions test/Models/Catalog/Ows/CswCatalogGroupSpec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
"use strict";

import Terria from "../../../../lib/Models/Terria";

import CswCatalogGroup from "../../../../lib/Models/Catalog/Ows/CswCatalogGroup";
Expand Down
2 changes: 0 additions & 2 deletions test/ReactViews/FeatureInfoPanelSpec.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
"use strict";

// import knockout from 'terriajs-cesium/Source/ThirdParty/knockout';
import React from "react";
import { findWithType } from "react-shallow-testutils";
Expand Down

0 comments on commit 5e8c379

Please sign in to comment.