Skip to content

Commit dd4cd72

Browse files
committed
Tiding: lint suggestions
1 parent 4df4a20 commit dd4cd72

7 files changed

Lines changed: 10 additions & 10 deletions

File tree

src/api/builder.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@ import { CanonicalManager } from "@atomic-ehr/fhir-canonical-manager";
1212
import type { GeneratedFile } from "@root/api/generators/base/types";
1313
import { CSharp } from "@root/api/writer-generator/csharp/csharp.ts";
1414
import { registerFromManager } from "@root/typeschema/register";
15-
import { mkTypeSchemaIndex, treeShake, type TreeShake } from "@root/typeschema/utils";
15+
import { mkTypeSchemaIndex, type TreeShake, treeShake } from "@root/typeschema/utils";
1616
import { generateTypeSchemas, TypeSchemaCache, TypeSchemaGenerator, TypeSchemaParser } from "@typeschema/index";
1717
import { extractNameFromCanonical, packageMetaToFhir, packageMetaToNpm, type TypeSchema } from "@typeschema/types";
1818
import type { Config, TypeSchemaConfig } from "../config";
1919
import { CodegenLogger, createLogger } from "../utils/codegen-logger";
20+
import type { GeneratorInput } from "./generators/base/BaseGenerator";
2021
import { TypeScriptGenerator as TypeScriptGeneratorDepricated } from "./generators/typescript";
2122
import * as TS2 from "./writer-generator/typescript";
2223
import type { Writer, WriterOptions } from "./writer-generator/writer";
23-
import type { GeneratorInput } from "./generators/base/BaseGenerator";
2424

2525
/**
2626
* Configuration options for the API builder

src/api/generators/base/BaseGenerator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
* specific logic for type mapping, content generation, and validation.
77
*/
88

9+
import type { TypeSchemaIndex } from "@root/typeschema/utils";
910
import type { TypeSchema } from "@typeschema/types";
1011
import type { CodegenLogger } from "../../../utils/codegen-logger";
1112
import { createLogger } from "../../../utils/codegen-logger";
@@ -22,7 +23,6 @@ import type {
2223
TemplateEngine,
2324
TypeMapper,
2425
} from "./types";
25-
import type { TypeSchemaIndex } from "@root/typeschema/utils";
2626

2727
export type GeneratorInput = { schemas: TypeSchema[]; index: TypeSchemaIndex };
2828

src/api/writer-generator/csharp/csharp.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import fs from "node:fs";
22
import Path from "node:path";
33
import { pascalCase, uppercaseFirstLetter, uppercaseFirstLetterOfEach } from "@root/api/writer-generator/utils.ts";
44
import { Writer } from "@root/api/writer-generator/writer.ts";
5-
import type { Field, Identifier, RegularField } from "@typeschema/types";
65
import type { CodegenLogger } from "@root/utils/codegen-logger.ts";
6+
import type { Field, Identifier, RegularField } from "@typeschema/types";
77
import { type ChoiceFieldInstance, isChoiceDeclarationField, type RegularTypeSchema } from "@typeschema/types.ts";
88
import type { TypeSchemaIndex } from "@typeschema/utils.ts";
99
import { formatEnumEntry, formatName } from "./formatHelper.ts";

src/api/writer-generator/typescript.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ import {
77
} from "@root/api/writer-generator/utils";
88
import { Writer, type WriterOptions } from "@root/api/writer-generator/writer";
99
import {
10+
type CanonicalUrl,
1011
extractNameFromCanonical,
12+
type Identifier,
1113
isChoiceDeclarationField,
1214
isNestedIdentifier,
1315
isNotChoiceDeclarationField,
@@ -18,8 +20,6 @@ import {
1820
type ProfileTypeSchema,
1921
type RegularField,
2022
type RegularTypeSchema,
21-
type CanonicalUrl,
22-
type Identifier,
2323
type TypeSchema,
2424
} from "@root/typeschema/types";
2525
import { groupByPackages, type TypeSchemaIndex } from "@root/typeschema/utils";

src/typeschema/utils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import * as afs from "node:fs/promises";
2+
import * as Path from "node:path";
23
import type { CodegenLogger } from "@root/utils/codegen-logger";
34
import * as YAML from "yaml";
5+
import { extractDependencies } from "./core/transformer";
46
import {
57
type CanonicalUrl,
68
type Field,
@@ -18,8 +20,6 @@ import {
1820
type RegularTypeSchema,
1921
type TypeSchema,
2022
} from "./types";
21-
import { extractDependencies } from "./core/transformer";
22-
import * as Path from "node:path";
2323

2424
///////////////////////////////////////////////////////////
2525
// TypeSchema processing

test/unit/typeschema/r4.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { describe, expect, it } from "bun:test";
22
import { generateTypeSchemas } from "@root/typeschema";
3-
import type { RegularTypeSchema, CanonicalUrl, Name } from "@root/typeschema/types";
3+
import type { CanonicalUrl, Name, RegularTypeSchema } from "@root/typeschema/types";
44
import { mkR4Register, r4Package, registerFsAndMkTs } from "@typeschema-test/utils";
55

66
describe("TypeSchema R4 generation", async () => {

test/unit/typeschema/transformer/r4.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { describe, expect, it } from "bun:test";
22
import { generateTypeSchemas } from "@root/typeschema";
3-
import type { RegularTypeSchema, Name, CanonicalUrl } from "@typeschema/types";
3+
import type { CanonicalUrl, Name, RegularTypeSchema } from "@typeschema/types";
44
import { mkR4Register, r4Package, registerFsAndMkTs } from "@typeschema-test/utils";
55

66
describe("TypeSchema R4 generation", async () => {

0 commit comments

Comments
 (0)