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 9d735ee
Show file tree
Hide file tree
Showing 22 changed files with 0 additions and 22 deletions.
1 change: 0 additions & 1 deletion lib/Core/GoogleAnalytics.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
"use strict";

import i18next from "i18next";
import ReactGA from "react-ga4";
Expand Down
1 change: 0 additions & 1 deletion lib/Core/TerriaError.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
"use strict";

import i18next from "i18next";
import { observable, makeObservable } from "mobx";
Expand Down
1 change: 0 additions & 1 deletion lib/Core/flatten.ts
Original file line number Diff line number Diff line change
@@ -1,4 +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].
Expand Down
1 change: 0 additions & 1 deletion lib/Core/flattenNested.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
"use strict";

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

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

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

import defaultValue from "terriajs-cesium/Source/Core/defaultValue";
import isDefined from "../../Core/isDefined";
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
1 change: 0 additions & 1 deletion lib/ReactViews/Custom/Collapsible/Collapsible.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
"use strict";

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

import { when } from "mobx";
import { addOrReplaceRemoteFileUploadType } from "../../Core/getDataType";
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
1 change: 0 additions & 1 deletion lib/ReactViews/Map/Panels/SharePanel/BuildShareLink.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
"use strict";

import { uniq } from "lodash-es";
import { runInAction, toJS } from "mobx";
Expand Down
1 change: 0 additions & 1 deletion lib/ReactViews/Map/Panels/ToolsPanel/CountDatasets.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
"use strict";

import { observer } from "mobx-react";
import React, { useState } from "react";
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
1 change: 0 additions & 1 deletion lib/ReactViews/Notification/MapInteractionWindow.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
"use strict";

import classNames from "classnames";
import { Lambda, observable, reaction, makeObservable } from "mobx";
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
1 change: 0 additions & 1 deletion lib/ReactViews/Workbench/Controls/Legend.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
"use strict";

import { observer } from "mobx-react";
import React, { SyntheticEvent } from "react";
Expand Down
1 change: 0 additions & 1 deletion lib/ReactViews/Workbench/Controls/OpacitySection.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
"use strict";

import { TFunction } from "i18next";
import { runInAction } from "mobx";
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
1 change: 0 additions & 1 deletion test/Map/featureDataToGeoJsonSpec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
"use strict";

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

Expand Down
1 change: 0 additions & 1 deletion test/Models/Catalog/Ows/CswCatalogGroupSpec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
"use strict";

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

Expand Down
1 change: 0 additions & 1 deletion test/ReactViews/FeatureInfoPanelSpec.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
"use strict";

// import knockout from 'terriajs-cesium/Source/ThirdParty/knockout';
import React from "react";
Expand Down

0 comments on commit 9d735ee

Please sign in to comment.