Skip to content

Commit dc29d0d

Browse files
committed
fix lint
1 parent a2cdf6d commit dc29d0d

File tree

2 files changed

+1
-22
lines changed

2 files changed

+1
-22
lines changed

packages/wrangler/src/__tests__/process-env-populated.test.ts

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,5 @@
11
import assert from "node:assert";
2-
import { mkdir, readFile, writeFile } from "node:fs/promises";
3-
import path from "node:path";
4-
import dedent from "ts-dedent";
5-
import { bundleWorker } from "../deployment-bundle/bundle";
6-
import { noopModuleCollector } from "../deployment-bundle/module-collection";
72
import { isProcessEnvPopulated } from "../process-env";
8-
import { mockConsoleMethods } from "./helpers/mock-console";
9-
import { runInTempDir } from "./helpers/run-in-tmp";
10-
11-
/*
12-
* This file contains inline comments with the word "javascript"
13-
* This signals to a compatible editor extension that the template string
14-
* contents should be syntax-highlighted as JavaScript. One such extension
15-
* is zjcompt.es6-string-javascript, but there are others.
16-
*/
17-
18-
async function seedFs(files: Record<string, string>): Promise<void> {
19-
for (const [location, contents] of Object.entries(files)) {
20-
await mkdir(path.dirname(location), { recursive: true });
21-
await writeFile(location, contents);
22-
}
23-
}
243

254
describe("isProcessEnvPopulated", () => {
265
test("default", () => {

packages/wrangler/src/type-generation/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ export async function generateEnvTypes(
255255
entrypoint?: Entry,
256256
log = true
257257
): Promise<{ envHeader?: string; envTypes?: string }> {
258-
let stringKeys: string[] = [];
258+
const stringKeys: string[] = [];
259259
const secrets = getVarsForDev(
260260
// We do not want `getVarsForDev()` to merge in the standard vars into the dev vars
261261
// because we want to be able to work with secrets differently to vars.

0 commit comments

Comments
 (0)