From 4dc77f5da6e3f9494425cdf6ed012d76554add81 Mon Sep 17 00:00:00 2001 From: Jessica Sines Date: Thu, 9 May 2024 16:01:19 -0400 Subject: [PATCH] Lint --- src/extension.ts | 3 ++- src/lib/auth.ts | 8 +++++++- src/lib/commands/remoteFs.ts | 9 +++++++-- src/lib/providers/remoteFsProvider.ts | 4 +++- src/lib/uri.ts | 2 +- src/lib/validation.ts | 2 +- 6 files changed, 21 insertions(+), 7 deletions(-) diff --git a/src/extension.ts b/src/extension.ts index 43e76d0..5c6b93e 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -25,7 +25,8 @@ export const activate = async (context: ExtensionContext) => { 'Activating Extension Version: ', context.extension.packageJSON.version ); - const rootPath = getRootPath();5 + const rootPath = getRootPath(); + 5; registerCommands(context, rootPath); registerEvents(context); diff --git a/src/lib/auth.ts b/src/lib/auth.ts index 8a418b3..e37356d 100644 --- a/src/lib/auth.ts +++ b/src/lib/auth.ts @@ -1,7 +1,13 @@ import { commands } from 'vscode'; import { COMMANDS, EVENTS } from './constants'; -const { findConfig, loadConfig, validateConfig, setConfig, setConfigPath } = require('@hubspot/local-dev-lib/config'); +const { + findConfig, + loadConfig, + validateConfig, + setConfig, + setConfigPath, +} = require('@hubspot/local-dev-lib/config'); const onLoadPath = (configPath: string) => { commands.executeCommand('setContext', 'hubspot.configPath', configPath); diff --git a/src/lib/commands/remoteFs.ts b/src/lib/commands/remoteFs.ts index fcbfae7..388a3a6 100644 --- a/src/lib/commands/remoteFs.ts +++ b/src/lib/commands/remoteFs.ts @@ -9,11 +9,16 @@ import { trackEvent } from '../tracking'; const { deleteFile, upload } = require('@hubspot/local-dev-lib/api/fileMapper'); const { downloadFileOrFolder } = require('@hubspot/local-dev-lib/fileMapper'); const { getAccountId } = require('@hubspot/local-dev-lib/config'); -const { validateSrcAndDestPaths } = require('@hubspot/local-dev-lib/cms/modules'); +const { + validateSrcAndDestPaths, +} = require('@hubspot/local-dev-lib/cms/modules'); const { shouldIgnoreFile } = require('@hubspot/local-dev-lib/ignoreRules'); const { isAllowedExtension } = require('@hubspot/local-dev-lib/path'); const { createIgnoreFilter } = require('@hubspot/local-dev-lib/ignoreRules'); -const { uploadFolder, hasUploadErrors } = require('@hubspot/local-dev-lib/cms/uploadFolder'); +const { + uploadFolder, + hasUploadErrors, +} = require('@hubspot/local-dev-lib/cms/uploadFolder'); const { walk } = require('@hubspot/local-dev-lib/fs'); export const registerCommands = (context: ExtensionContext) => { diff --git a/src/lib/providers/remoteFsProvider.ts b/src/lib/providers/remoteFsProvider.ts index 930cffb..9a314eb 100644 --- a/src/lib/providers/remoteFsProvider.ts +++ b/src/lib/providers/remoteFsProvider.ts @@ -17,7 +17,9 @@ const { getDirectoryContentsByPath, } = require('@hubspot/local-dev-lib/api/fileMapper'); const { getAccountId } = require('@hubspot/local-dev-lib/config'); -const { FOLDER_DOT_EXTENSIONS } = require('@hubspot/local-dev-lib/constants/extensions'); +const { + FOLDER_DOT_EXTENSIONS, +} = require('@hubspot/local-dev-lib/constants/extensions'); const { watch } = require('@hubspot/local-dev-lib/cms/watch'); function isPathFolder(path: string) { diff --git a/src/lib/uri.ts b/src/lib/uri.ts index 5f47761..a94d858 100644 --- a/src/lib/uri.ts +++ b/src/lib/uri.ts @@ -14,7 +14,7 @@ import { COMMANDS, EVENTS, TRACKED_EVENTS } from './constants'; const { updateConfigWithAccessToken, - getAccessToken + getAccessToken, } = require('@hubspot/local-dev-lib/personalAccessKey'); const { createEmptyConfigFile, diff --git a/src/lib/validation.ts b/src/lib/validation.ts index 8053130..fe23049 100644 --- a/src/lib/validation.ts +++ b/src/lib/validation.ts @@ -14,7 +14,7 @@ const { isCodedFile, getAnnotationsFromSource, ANNOTATION_KEYS, - TEMPLATE_TYPES + TEMPLATE_TYPES, } = require('@hubspot/local-dev-lib/cms/templates'); const { isModuleHTMLFile } = require('@hubspot/local-dev-lib/cms/modules'); const {