Skip to content

Commit eb984dd

Browse files
committed
fixing lint
1 parent 5ede320 commit eb984dd

4 files changed

Lines changed: 29 additions & 14 deletions

File tree

packages/b2c-vs-extension/src/cip-analytics/cip-connection-service.ts

Lines changed: 23 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,11 @@ export class CipConnectionService implements vscode.Disposable {
138138
* settings. On a hard refresh (`ignoreLegacy: true`) we skip the legacy key
139139
* entirely, making dw.json the sole source of truth.
140140
*/
141-
private deriveFromConfig(opts: {ignoreLegacy?: boolean} = {}): {groups: CipRealmGroup[]; realms: CipRealm[]; active: CipConnection} {
141+
private deriveFromConfig(opts: {ignoreLegacy?: boolean} = {}): {
142+
groups: CipRealmGroup[];
143+
realms: CipRealm[];
144+
active: CipConnection;
145+
} {
142146
const legacy = opts.ignoreLegacy ? undefined : this.workspaceState.get<Partial<CipRealm>>(LEGACY_KEY);
143147
const config = this.configProvider.getConfig();
144148
const cfgTenant = (config?.values.tenantId ?? '').toString();
@@ -430,7 +434,14 @@ function resolveHost(realm: Pick<CipRealm, 'env' | 'host'>): string {
430434
}
431435

432436
function realmFrom(conn: CipConnection): CipRealm {
433-
return {id: conn.id, groupId: conn.groupId, label: conn.label, tenantId: conn.tenantId, env: conn.env, host: conn.host};
437+
return {
438+
id: conn.id,
439+
groupId: conn.groupId,
440+
label: conn.label,
441+
tenantId: conn.tenantId,
442+
env: conn.env,
443+
host: conn.host,
444+
};
434445
}
435446

436447
function generateId(): string {
@@ -441,11 +452,17 @@ function generateId(): string {
441452
* e.g. "bjmp_prd" → "bjmp", "acme_sbx001" → "acme", "myorg" → "myorg"
442453
*/
443454
function labelFromTenantId(tenantId: string): string {
444-
return (
445-
tenantId.replace(/_(?:prd|prod|pr|sbx|sandbox|sb|stg|staging|st|dev|dv|uat|qa)\w*$/i, '') || tenantId
446-
);
455+
return tenantId.replace(/_(?:prd|prod|pr|sbx|sandbox|sb|stg|staging|st|dev|dv|uat|qa)\w*$/i, '') || tenantId;
447456
}
448457

449458
function makeBlankConnection(): CipConnection {
450-
return {id: generateId(), groupId: '', label: '', tenantId: '', env: 'prod', host: DEFAULT_CIP_HOST, status: 'disconnected'};
459+
return {
460+
id: generateId(),
461+
groupId: '',
462+
label: '',
463+
tenantId: '',
464+
env: 'prod',
465+
host: DEFAULT_CIP_HOST,
466+
status: 'disconnected',
467+
};
451468
}

packages/b2c-vs-extension/src/cip-analytics/cip-query-library-service.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
/*
22
* Copyright (c) 2025, Salesforce, Inc.
3-
* SPDX-License-Identifier: Apache-2.0
3+
* SPDX-License-Identifier: Apache-2
4+
* For full license text, see the license.txt file in the repo root or http://www.apache.org/licenses/LICENSE-2.0
45
*/
56
import {randomUUID} from 'node:crypto';
67
import * as vscode from 'vscode';

packages/b2c-vs-extension/src/cip-analytics/index.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -158,9 +158,8 @@ export function registerCipAnalytics(
158158
},
159159
);
160160

161-
const switchRealmDisposable = vscode.commands.registerCommand(
162-
'b2c-dx.cipAnalytics.switchRealm',
163-
async () => switchRealmFlow(connection),
161+
const switchRealmDisposable = vscode.commands.registerCommand('b2c-dx.cipAnalytics.switchRealm', async () =>
162+
switchRealmFlow(connection),
164163
);
165164

166165
const switchConnectionDisposable = vscode.commands.registerCommand(
@@ -171,9 +170,8 @@ export function registerCipAnalytics(
171170
},
172171
);
173172

174-
const addRealmDisposable = vscode.commands.registerCommand(
175-
'b2c-dx.cipAnalytics.addRealm',
176-
async () => addRealmFlow(connection),
173+
const addRealmDisposable = vscode.commands.registerCommand('b2c-dx.cipAnalytics.addRealm', async () =>
174+
addRealmFlow(connection),
177175
);
178176

179177
const removeRealmDisposable = vscode.commands.registerCommand(

packages/b2c-vs-extension/src/cip-analytics/types.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@ export class CipRealmInfoTreeItem extends vscode.TreeItem {
7979
}
8080
}
8181

82-
8382
/**
8483
* Featured tree item for Query Builder - scoped to a realm.
8584
*/

0 commit comments

Comments
 (0)