Fix Lint errors in StringUtility.ts (#479)
This commit is contained in:
parent
d0f6923d24
commit
b85a20cbea
|
@ -248,8 +248,6 @@ src/Shared/ExplorerSettings.ts
|
||||||
src/Shared/PriceEstimateCalculator.ts
|
src/Shared/PriceEstimateCalculator.ts
|
||||||
src/Shared/StorageUtility.test.ts
|
src/Shared/StorageUtility.test.ts
|
||||||
src/Shared/StorageUtility.ts
|
src/Shared/StorageUtility.ts
|
||||||
src/Shared/StringUtility.test.ts
|
|
||||||
src/Shared/StringUtility.ts
|
|
||||||
src/Shared/appInsights.ts
|
src/Shared/appInsights.ts
|
||||||
src/SparkClusterManager/ArcadiaResourceManager.ts
|
src/SparkClusterManager/ArcadiaResourceManager.ts
|
||||||
src/SparkClusterManager/SparkClusterManager.ts
|
src/SparkClusterManager/SparkClusterManager.ts
|
||||||
|
|
|
@ -5,7 +5,7 @@ import { ConsoleDataType } from "../Menus/NotificationConsole/NotificationConsol
|
||||||
import { ContextualPaneBase } from "./ContextualPaneBase";
|
import { ContextualPaneBase } from "./ContextualPaneBase";
|
||||||
import { LocalStorageUtility, StorageKey } from "../../Shared/StorageUtility";
|
import { LocalStorageUtility, StorageKey } from "../../Shared/StorageUtility";
|
||||||
import * as NotificationConsoleUtils from "../../Utils/NotificationConsoleUtils";
|
import * as NotificationConsoleUtils from "../../Utils/NotificationConsoleUtils";
|
||||||
import { StringUtility } from "../../Shared/StringUtility";
|
import * as StringUtility from "../../Shared/StringUtility";
|
||||||
import { configContext } from "../../ConfigContext";
|
import { configContext } from "../../ConfigContext";
|
||||||
|
|
||||||
export class SettingsPane extends ContextualPaneBase {
|
export class SettingsPane extends ContextualPaneBase {
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import { StringUtility } from "./StringUtility";
|
import * as StringUtility from "./StringUtility";
|
||||||
|
|
||||||
export class LocalStorageUtility {
|
export class LocalStorageUtility {
|
||||||
public static hasItem(key: StorageKey): boolean {
|
public static hasItem(key: StorageKey): boolean {
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import { StringUtility } from "./StringUtility";
|
import * as StringUtility from "./StringUtility";
|
||||||
|
|
||||||
describe("String utility", () => {
|
describe("String utility", () => {
|
||||||
it("Convert to integer from string", () => {
|
it("Convert to integer from string", () => {
|
||||||
|
|
|
@ -1,9 +1,7 @@
|
||||||
export class StringUtility {
|
export function toNumber(num: string | null): number {
|
||||||
public static toNumber(num: string | null): number {
|
return Number(num);
|
||||||
return Number(num);
|
}
|
||||||
}
|
|
||||||
|
export function toBoolean(valueStr: string | null): boolean {
|
||||||
public static toBoolean(valueStr: string | null): boolean {
|
return valueStr === "true";
|
||||||
return valueStr === "true";
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue