From 4f014e48d51b1cd9fbd1391e07523f595fa6f457 Mon Sep 17 00:00:00 2001 From: Alex McKinney Date: Sun, 8 Dec 2024 22:49:40 -0500 Subject: [PATCH] Run 'pnpm format:fix' --- .../validate/validateGeneratorsWorkspaceAndLogIssues.ts | 2 +- packages/cli/fern-definition/validator/src/Rule.ts | 6 +----- packages/cli/yaml/generators-validator/src/getAllRules.ts | 4 +--- .../generators-validator/src/validateGeneratorsWorkspace.ts | 2 +- packages/commons/core-utils/src/ObjectPropertiesVisitor.ts | 2 +- 5 files changed, 5 insertions(+), 11 deletions(-) diff --git a/packages/cli/cli/src/commands/validate/validateGeneratorsWorkspaceAndLogIssues.ts b/packages/cli/cli/src/commands/validate/validateGeneratorsWorkspaceAndLogIssues.ts index ebb00c27ccd..937c64bd678 100644 --- a/packages/cli/cli/src/commands/validate/validateGeneratorsWorkspaceAndLogIssues.ts +++ b/packages/cli/cli/src/commands/validate/validateGeneratorsWorkspaceAndLogIssues.ts @@ -38,4 +38,4 @@ export async function validateGeneratorsWorkspaceAndLogIssues({ if (hasErrors) { context.failAndThrow(); } -} \ No newline at end of file +} diff --git a/packages/cli/fern-definition/validator/src/Rule.ts b/packages/cli/fern-definition/validator/src/Rule.ts index 65d1dade875..9ad9ed6b35b 100644 --- a/packages/cli/fern-definition/validator/src/Rule.ts +++ b/packages/cli/fern-definition/validator/src/Rule.ts @@ -1,11 +1,7 @@ import { RelativeFilePath } from "@fern-api/fs-utils"; import { Logger } from "@fern-api/logger"; import { FernWorkspace } from "@fern-api/api-workspace-commons"; -import { - PackageMarkerAstNodeTypes, - RootApiFileAstNodeTypes, - DefinitionFileAstNodeTypes -} from "./ast"; +import { PackageMarkerAstNodeTypes, RootApiFileAstNodeTypes, DefinitionFileAstNodeTypes } from "./ast"; import { DefinitionFileSchema, PackageMarkerFileSchema, RootApiFileSchema } from "@fern-api/fern-definition-schema"; export interface Rule { diff --git a/packages/cli/yaml/generators-validator/src/getAllRules.ts b/packages/cli/yaml/generators-validator/src/getAllRules.ts index b4b974c94df..1ecd951af2f 100644 --- a/packages/cli/yaml/generators-validator/src/getAllRules.ts +++ b/packages/cli/yaml/generators-validator/src/getAllRules.ts @@ -2,7 +2,5 @@ import { Rule } from "./Rule"; import { CompatibleIrVersionsRule } from "./rules/compatible-ir-versions"; export function getAllRules(): Rule[] { - return [ - CompatibleIrVersionsRule, - ]; + return [CompatibleIrVersionsRule]; } diff --git a/packages/cli/yaml/generators-validator/src/validateGeneratorsWorkspace.ts b/packages/cli/yaml/generators-validator/src/validateGeneratorsWorkspace.ts index 95a23168bd9..fe2950a3725 100644 --- a/packages/cli/yaml/generators-validator/src/validateGeneratorsWorkspace.ts +++ b/packages/cli/yaml/generators-validator/src/validateGeneratorsWorkspace.ts @@ -63,4 +63,4 @@ async function validateGeneratorsYmlFile({ await visitGeneratorsYamlAst(contents, cliVersion, astVisitor); return violations; -} \ No newline at end of file +} diff --git a/packages/commons/core-utils/src/ObjectPropertiesVisitor.ts b/packages/commons/core-utils/src/ObjectPropertiesVisitor.ts index 2d44aa63e91..dd0dc6fd32c 100644 --- a/packages/commons/core-utils/src/ObjectPropertiesVisitor.ts +++ b/packages/commons/core-utils/src/ObjectPropertiesVisitor.ts @@ -17,4 +17,4 @@ export async function visitObjectAsync( for (const key of keys(visitor)) { await visitor[key](object[key]); } -} \ No newline at end of file +}