Skip to content

Commit dd0db9a

Browse files
committed
fix linter errors
1 parent 17c0df0 commit dd0db9a

File tree

2 files changed

+16
-16
lines changed

2 files changed

+16
-16
lines changed

src/utils/appConfig.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,33 @@
1-
import * as path from 'path'
1+
import * as path from "path"
22

33
/** Get the full path of a filename from root */
44
const rootPath = (filename: string) => path.resolve(__dirname, `../${filename}`)
55

6-
require('dotenv').config({ path: rootPath('.env') })
6+
require("dotenv").config({ path: rootPath(".env") })
77

88
// Helper to read from env with a safe default so production doesn't require a .env file
99
const fromEnv = (key: string, fallback: string): string => {
1010
const val = process.env[key]
11-
return typeof val === 'string' && val.length > 0 ? val : fallback
11+
return typeof val === "string" && val.length > 0 ? val : fallback
1212
}
1313

1414
export const AppConfig = {
1515
app: {
1616
// Key name for VS Code SecretStorage. Not a credential; safe to default.
17-
sessionSecret: fromEnv('SESSIONS_SECRET_KEY', 'pullflow.session'),
17+
sessionSecret: fromEnv("SESSIONS_SECRET_KEY", "pullflow.session"),
1818
// Public identifier for the client used during auth redirects.
19-
clientIdentifier: fromEnv('CLIENT_IDENTIFIER', 'com.pullflow.vscode'),
19+
clientIdentifier: fromEnv("CLIENT_IDENTIFIER", "com.pullflow.vscode"),
2020
},
2121
pullflow: {
2222
// Public service endpoints; default to production URLs.
23-
baseUrl: fromEnv('PULLFLOW_APP_URL', 'https://app.pullflow.com'),
23+
baseUrl: fromEnv("PULLFLOW_APP_URL", "https://app.pullflow.com"),
2424
graphqlUrl: `${fromEnv(
25-
'PULLFLOW_APP_URL',
26-
'https://app.pullflow.com'
25+
"PULLFLOW_APP_URL",
26+
"https://app.pullflow.com"
2727
)}/api/graphql`,
2828
telemetryUrl: fromEnv(
29-
'PULLFLOW_TELEMETRY_URL',
30-
'https://collector.pullflow.cloud'
29+
"PULLFLOW_TELEMETRY_URL",
30+
"https://collector.pullflow.cloud"
3131
),
3232
},
3333
}

src/views/webviews/welcome/welcome.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import { ExtensionContext, ViewColumn, Webview, window, Uri } from 'vscode'
1+
import { ExtensionContext, ViewColumn, Webview, window, Uri } from "vscode"
22

33
const WelcomeView = {
4-
title: 'Welcome to PullFlow',
5-
type: 'welcome-view',
4+
title: "Welcome to PullFlow",
5+
type: "welcome-view",
66
}
77

88
export const Welcome = {
@@ -13,17 +13,17 @@ export const Welcome = {
1313
WelcomeView.title,
1414
column
1515
)
16-
panel.iconPath = Uri.joinPath(context.extensionUri, 'assets/pullflow.png')
16+
panel.iconPath = Uri.joinPath(context.extensionUri, "assets/pullflow.png")
1717
panel.webview.html = Welcome.getHtml(panel.webview, context)
1818
panel.reveal(column)
1919
},
2020

2121
getHtml: (webview: Webview, context: ExtensionContext) => {
2222
const assetsPath = webview.asWebviewUri(
23-
Uri.joinPath(context.extensionUri, 'assets')
23+
Uri.joinPath(context.extensionUri, "assets")
2424
)
2525
const stylePath = webview.asWebviewUri(
26-
Uri.joinPath(context.extensionUri, 'styles/welcome.css')
26+
Uri.joinPath(context.extensionUri, "styles/welcome.css")
2727
)
2828

2929
return `<!DOCTYPE html>

0 commit comments

Comments
 (0)