Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
jsines committed May 9, 2024
1 parent 77dceb1 commit 4dc77f5
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 7 deletions.
3 changes: 2 additions & 1 deletion src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
8 changes: 7 additions & 1 deletion src/lib/auth.ts
Original file line number Diff line number Diff line change
@@ -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);
Expand Down
9 changes: 7 additions & 2 deletions src/lib/commands/remoteFs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down
4 changes: 3 additions & 1 deletion src/lib/providers/remoteFsProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion src/lib/uri.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { COMMANDS, EVENTS, TRACKED_EVENTS } from './constants';

const {
updateConfigWithAccessToken,
getAccessToken
getAccessToken,
} = require('@hubspot/local-dev-lib/personalAccessKey');
const {
createEmptyConfigFile,
Expand Down
2 changes: 1 addition & 1 deletion src/lib/validation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 4dc77f5

Please sign in to comment.