Skip to content

Commit 7ac5b09

Browse files
committed
chore: lint fix
1 parent 2833959 commit 7ac5b09

2 files changed

Lines changed: 14 additions & 17 deletions

File tree

packages/cli/src/commands/docs.ts

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,7 @@ export const docs: Command = {
5959
export const runDocsInitCommand = async (
6060
options: Required<DocsInitCommandOptions>
6161
): Promise<void> => {
62-
const {
63-
verbose,
64-
quiet,
65-
logFile,
66-
manifestFile
67-
} = options;
62+
const { verbose, quiet, logFile, manifestFile } = options;
6863

6964
const logger = createLogger({ verbose, quiet, logFile });
7065

@@ -73,32 +68,32 @@ export const runDocsInitCommand = async (
7368
if (docsManifestExists) {
7469
logger.error(
7570
intlMsg.commands_docs_init_error_manifest_exists({
76-
manifestFile: defaultDocsManifest[0]
71+
manifestFile: defaultDocsManifest[0],
7772
})
7873
);
7974
process.exit(1);
8075
}
8176

82-
let docsManifest = await getSchemaString(logger, "docs", {
77+
const docsManifest = await getSchemaString(logger, "docs", {
8378
verbose: false,
8479
quiet: true,
8580
logFile: false,
8681
raw: false,
87-
manifestFile: false
82+
manifestFile: false,
8883
});
8984

9085
fse.writeFileSync(defaultDocsManifest[0], docsManifest);
9186

9287
logger.info(
9388
intlMsg.commands_docs_init_msg_manifest_created({
94-
manifestFile: defaultDocsManifest[0]
89+
manifestFile: defaultDocsManifest[0],
9590
})
9691
);
9792

9893
logger.warn(
9994
intlMsg.commands_docs_init_warn_update_manifest({
10095
manifestFile,
101-
docsManifestFile: defaultDocsManifest[0]
96+
docsManifestFile: defaultDocsManifest[0],
10297
})
10398
);
10499
};

packages/cli/src/commands/manifest.ts

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ export const runSchemaCommand = async (
228228

229229
const schemaStr = await getSchemaString(logger, type, {
230230
...options,
231-
manifestFile
231+
manifestFile,
232232
});
233233
logger.info(schemaStr);
234234
};
@@ -239,10 +239,12 @@ export const getSchemaString = async (
239239
options: Required<ManifestSchemaCommandOptions>
240240
): Promise<string> => {
241241
const manifestFile = options.manifestFile || "";
242-
const manifestString = fs.existsSync(manifestFile) ?
243-
fs.readFileSync(manifestFile, "utf-8") : undefined;
242+
const manifestString = fs.existsSync(manifestFile)
243+
? fs.readFileSync(manifestFile, "utf-8")
244+
: undefined;
244245

245-
const manifestVersion = manifestString && maybeGetManifestFormatVersion(manifestString);
246+
const manifestVersion =
247+
manifestString && maybeGetManifestFormatVersion(manifestString);
246248

247249
const schemasPackageDir = path.dirname(
248250
require.resolve("@polywrap/polywrap-manifest-schemas")
@@ -256,7 +258,7 @@ export const getSchemaString = async (
256258
language = manifestString && getProjectManifestLanguage(manifestString);
257259

258260
if (!language) {
259-
language = "wasm/rust"
261+
language = "wasm/rust";
260262
}
261263

262264
if (isPolywrapManifestLanguage(language)) {
@@ -393,7 +395,7 @@ export const getSchemaString = async (
393395
}
394396

395397
return result;
396-
}
398+
};
397399

398400
const runMigrateCommand = async (
399401
type: ManifestType,

0 commit comments

Comments
 (0)