diff --git a/.eslintrc.js b/.eslintrc.js index 12f203a5..398c5a30 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -20,6 +20,7 @@ module.exports = { "plugin:@typescript-eslint/eslint-recommended", "plugin:@typescript-eslint/recommended", ], + ignorePatterns: ["src/typings"], rules: { "@typescript-eslint/no-unused-vars": [ "error", diff --git a/src/client/power-pages/create/Contentsnippet.ts b/src/client/power-pages/create/Contentsnippet.ts index 510e86bf..f6846a1f 100644 --- a/src/client/power-pages/create/Contentsnippet.ts +++ b/src/client/power-pages/create/Contentsnippet.ts @@ -13,7 +13,7 @@ import { isNullOrEmpty, } from "./utils/CommonUtils"; import { QuickPickItem } from "vscode"; -import { MultiStepInput } from "./utils/MultiStepInput"; +import { MultiStepInput } from "../../../common/utilities/MultiStepInput"; import path from "path"; import { statSync } from "fs"; import { diff --git a/src/client/power-pages/create/PageTemplate.ts b/src/client/power-pages/create/PageTemplate.ts index 716bff96..8f1c7042 100644 --- a/src/client/power-pages/create/PageTemplate.ts +++ b/src/client/power-pages/create/PageTemplate.ts @@ -14,7 +14,7 @@ import { getWebTemplates, } from "./utils/CommonUtils"; import { QuickPickItem } from "vscode"; -import { MultiStepInput } from "./utils/MultiStepInput"; +import { MultiStepInput } from "../../../common/utilities/MultiStepInput"; import path from "path"; import { statSync } from "fs"; import { ITelemetry } from "../../telemetry/ITelemetry"; @@ -150,7 +150,7 @@ async function getPageTemplateInputs( if (!name) { return vscode.l10n.t("Please enter a name for the page template."); } - + const file = formatFileName(name); const filePath = path.join( selectedWorkspaceFolder, diff --git a/src/client/power-pages/create/Webfile.ts b/src/client/power-pages/create/Webfile.ts index db1893d0..cf7b46ca 100644 --- a/src/client/power-pages/create/Webfile.ts +++ b/src/client/power-pages/create/Webfile.ts @@ -12,7 +12,7 @@ import { logErrorAndNotifyUser, } from "./utils/CommonUtils"; import { QuickPickItem } from "vscode"; -import { MultiStepInput } from "./utils/MultiStepInput"; +import { MultiStepInput } from "../../../common/utilities/MultiStepInput"; import { exec } from "child_process"; import { Tables, WEBFILE, YoSubGenerator } from "./CreateOperationConstants"; import { FileCreateEvent, sendTelemetryEvent, UserFileCreateEvent } from "../telemetry"; diff --git a/src/client/power-pages/create/Webpage.ts b/src/client/power-pages/create/Webpage.ts index ccffc48a..642c3b2e 100644 --- a/src/client/power-pages/create/Webpage.ts +++ b/src/client/power-pages/create/Webpage.ts @@ -17,7 +17,7 @@ import { } from "./utils/CommonUtils"; import { QuickPickItem } from "vscode"; -import { MultiStepInput } from "./utils/MultiStepInput"; +import { MultiStepInput } from "../../../common/utilities/MultiStepInput"; import { TableFolder, Tables, YoSubGenerator } from "./CreateOperationConstants"; import path from "path"; import { ITelemetry } from "../../telemetry/ITelemetry"; diff --git a/src/client/power-pages/create/utils/MultiStepInput.ts b/src/common/utilities/MultiStepInput.ts similarity index 100% rename from src/client/power-pages/create/utils/MultiStepInput.ts rename to src/common/utilities/MultiStepInput.ts