Skip to content

Commit

Permalink
style: fix biome errors
Browse files Browse the repository at this point in the history
  • Loading branch information
DASPRiD committed May 15, 2024
1 parent f294450 commit fede6af
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 20 deletions.
2 changes: 1 addition & 1 deletion skeleton/base/update-provider.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { rmSync } from "fs";
import { rmSync } from "node:fs";
import { execa } from "execa";

await execa("pnpm", ["exec", "cdktf", "get", "--output=./src/gen"]).pipeStdout(process.stdout);
Expand Down
18 changes: 8 additions & 10 deletions skeleton/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
{
"extends": ["@tsconfig/node20/tsconfig.json"],
"compilerOptions": {
"strict": true,
"noImplicitAny": true,
"sourceMap": true,
"outDir": "dist"
},
"include": [
"src/**/*"
]
"extends": ["@tsconfig/node20/tsconfig.json"],
"compilerOptions": {
"strict": true,
"noImplicitAny": true,
"sourceMap": true,
"outDir": "dist"
},
"include": ["src/**/*"]
}
4 changes: 3 additions & 1 deletion src/aws-stack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,9 @@ class AwsStack extends cdk.Stack {
}

class Producer implements ICloudAssemblyDirectoryProducer {
public constructor(private readonly region: string) {}
public constructor(private readonly region: string) {
// Intentionally left empty
}

public async produce(context: AppProps["context"]): Promise<string> {
const app = new App({ context });
Expand Down
4 changes: 3 additions & 1 deletion src/bitbucket.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ export class BitBucketClient {
private readonly accessToken: string,
private readonly workspace: string,
private readonly repoSlug: string,
) {}
) {
// Intentionally left empty
}

public async getRepositoryUuid(): Promise<string> {
const response = await fetch(
Expand Down
8 changes: 4 additions & 4 deletions src/cli.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
#!/usr/bin/env node

import { randomUUID } from "crypto";
import path from "path";
import { fileURLToPath } from "url";
import { randomUUID } from "node:crypto";
import { readFile, stat } from "node:fs/promises";
import path from "node:path";
import { fileURLToPath } from "node:url";
import { IAM } from "@aws-sdk/client-iam";
import { S3 } from "@aws-sdk/client-s3";
import { STS } from "@aws-sdk/client-sts";
Expand All @@ -11,7 +12,6 @@ import { ListrEnquirerPromptAdapter } from "@listr2/prompt-adapter-enquirer";
import { getAccessToken } from "@soliantconsulting/bitbucket-cloud-cli-auth";
import camelcase from "camelcase";
import type { ExecaReturnValue } from "execa";

Check failure on line 14 in src/cli.ts

View workflow job for this annotation

GitHub Actions / Release

Module '"execa"' has no exported member 'ExecaReturnValue'.
import { readFile, stat } from "fs/promises";
import { Listr, ListrLogLevels, ListrLogger } from "listr2";
import meow from "meow";
import semver from "semver/preload.js";
Expand Down
6 changes: 3 additions & 3 deletions src/synth.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import path from "path";
import { fileURLToPath } from "url";
import { cp, mkdir, readFile, rename, writeFile } from "node:fs/promises";
import path from "node:path";
import { fileURLToPath } from "node:url";
import merge from "deepmerge";
import { cp, mkdir, readFile, rename, writeFile } from "fs/promises";
import { glob } from "glob";
import Handlebars from "handlebars";
import type { PackageJson, TSConfig } from "pkg-types";
Expand Down

0 comments on commit fede6af

Please sign in to comment.