Skip to content

Commit 7fdb012

Browse files
committed
yay
1 parent 8fa3011 commit 7fdb012

30 files changed

+553
-557
lines changed

.vscode/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@
227227

228228
"[javascript][javascriptreact][json][jsonc][typescript][typescriptreact]": {
229229
"editor.defaultFormatter": "biomejs.biome",
230-
"editor.codeActionsOnSave":{
230+
"editor.codeActionsOnSave": {
231231
"source.organizeImports.biome": "explicit"
232232
}
233233
},

Makefile

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -406,11 +406,9 @@ fmt/ts:
406406
cd site
407407
# Avoid writing files in CI to reduce file write activity
408408
ifdef CI
409-
pnpm run lint
410-
pnpm run format:check
409+
pnpm run check --linter-enabled=false
411410
else
412-
pnpm run lint:fix
413-
pnpm run format
411+
pnpm run check:fix
414412
endif
415413
.PHONY: fmt/ts
416414

@@ -448,7 +446,7 @@ lint/site-icons:
448446

449447
lint/ts:
450448
cd site
451-
pnpm i && pnpm lint
449+
pnpm lint
452450
.PHONY: lint/ts
453451

454452
lint/go:

site/e2e/api.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import type { Page } from "@playwright/test";
22
import { expect } from "@playwright/test";
3-
import { formatDuration, intervalToDuration } from "date-fns";
4-
import { type DeploymentConfig, API } from "api/api";
3+
import { API, type DeploymentConfig } from "api/api";
54
import type { SerpentOption } from "api/typesGenerated";
5+
import { formatDuration, intervalToDuration } from "date-fns";
66
import { coderPort } from "./constants";
77
import { findSessionToken, randomName } from "./helpers";
88

site/e2e/expectUrl.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { expect, type Page } from "@playwright/test";
1+
import { type Page, expect } from "@playwright/test";
22

33
type PollingOptions = { timeout?: number; intervals?: number[] };
44

site/e2e/helpers.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
import { type BrowserContext, expect, type Page, test } from "@playwright/test";
21
import { type ChildProcess, exec, spawn } from "node:child_process";
32
import { randomUUID } from "node:crypto";
4-
import express from "express";
5-
import capitalize from "lodash/capitalize";
63
import path from "node:path";
7-
import * as ssh from "ssh2";
84
import { Duplex } from "node:stream";
5+
import { type BrowserContext, type Page, expect, test } from "@playwright/test";
96
import { API } from "api/api";
107
import type {
11-
WorkspaceBuildParameter,
128
UpdateTemplateMeta,
9+
WorkspaceBuildParameter,
1310
} from "api/typesGenerated";
11+
import express from "express";
12+
import capitalize from "lodash/capitalize";
13+
import * as ssh from "ssh2";
1414
import { TarWriter } from "utils/tar";
1515
import {
1616
agentPProfPort,
@@ -26,13 +26,13 @@ import {
2626
Agent,
2727
type App,
2828
AppSharingLevel,
29+
type ApplyComplete,
30+
type ExternalAuthProviderResource,
2931
type ParseComplete,
3032
type PlanComplete,
31-
type ApplyComplete,
3233
type Resource,
3334
Response,
3435
type RichParameter,
35-
type ExternalAuthProviderResource,
3636
} from "./provisionerGenerated";
3737

3838
// requiresEnterpriseLicense will skip the test if we're not running with an enterprise license

site/e2e/hooks.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import type { BrowserContext, Page } from "@playwright/test";
21
import http from "node:http";
2+
import type { BrowserContext, Page } from "@playwright/test";
33
import { coderPort, gitAuth } from "./constants";
44

55
export const beforeCoderTest = async (page: Page) => {

site/e2e/playwright.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { defineConfig } from "@playwright/test";
21
import { execSync } from "node:child_process";
32
import * as path from "node:path";
3+
import { defineConfig } from "@playwright/test";
44
import {
55
coderMain,
66
coderPort,

site/e2e/proxy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { spawn, type ChildProcess, exec } from "node:child_process";
1+
import { type ChildProcess, exec, spawn } from "node:child_process";
22
import { coderMain, coderPort, workspaceProxyPort } from "./constants";
33
import { waitUntilUrlIsNotResponding } from "./helpers";
44

site/e2e/reporter.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1+
import * as fs from "node:fs/promises";
2+
import type { Writable } from "node:stream";
13
/* eslint-disable no-console -- Logging is sort of the whole point here */
24
import type {
35
FullConfig,
4-
Suite,
5-
TestCase,
6-
TestResult,
76
FullResult,
87
Reporter,
8+
Suite,
9+
TestCase,
910
TestError,
11+
TestResult,
1012
} from "@playwright/test/reporter";
11-
import * as fs from "node:fs/promises";
12-
import type { Writable } from "node:stream";
1313
import { API } from "api/api";
1414
import { coderdPProfPort, enterpriseLicense } from "./constants";
1515

site/e2e/tests/app.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { test } from "@playwright/test";
21
import { randomUUID } from "node:crypto";
32
import * as http from "node:http";
3+
import { test } from "@playwright/test";
44
import {
55
createTemplate,
66
createWorkspace,

0 commit comments

Comments
 (0)