From 826d4eeca379d5d758641e928e810b4ac5ee90c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Augustin=20=C5=A0ulc?= Date: Sun, 18 Apr 2021 15:22:26 +0200 Subject: [PATCH] Lint fixes --- packages/generator/__tests__/helpers.tests.ts | 2 +- packages/generator/src/openapi/writers/objectEntityWriter.ts | 3 +-- packages/generator/src/openapi/writers/repositoryWriter.ts | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/packages/generator/__tests__/helpers.tests.ts b/packages/generator/__tests__/helpers.tests.ts index 78641772..c9968b4c 100644 --- a/packages/generator/__tests__/helpers.tests.ts +++ b/packages/generator/__tests__/helpers.tests.ts @@ -13,7 +13,7 @@ describe("helpers", () => { }); it("returns local path when source and target is same", () => { - const result = getRelativePath("src/repositories", "src/repositories"); + const result = getRelativePath("src/data", "src/data"); expect(result).toBe("./"); }); }); diff --git a/packages/generator/src/openapi/writers/objectEntityWriter.ts b/packages/generator/src/openapi/writers/objectEntityWriter.ts index 81c945d4..9470e952 100644 --- a/packages/generator/src/openapi/writers/objectEntityWriter.ts +++ b/packages/generator/src/openapi/writers/objectEntityWriter.ts @@ -1,8 +1,7 @@ import camelCase from "lodash/camelCase"; import uniq from "lodash/uniq"; -import { CodeBlockWriter, Directory, SourceFile } from "ts-morph"; +import { Directory, SourceFile } from "ts-morph"; import GeneratorBase from "../../generatorBase"; -import { entityGeneratedHeader } from "../../messages.json"; import ObservableFormatter from "../formatters/observableFormatter"; import AliasEntity from "../models/aliasEntity"; import EntityProperty from "../models/entityProperty"; diff --git a/packages/generator/src/openapi/writers/repositoryWriter.ts b/packages/generator/src/openapi/writers/repositoryWriter.ts index d0b15dcb..624b448b 100644 --- a/packages/generator/src/openapi/writers/repositoryWriter.ts +++ b/packages/generator/src/openapi/writers/repositoryWriter.ts @@ -1,7 +1,7 @@ /* eslint-disable @typescript-eslint/tslint/config */ import camelCase from "lodash/camelCase"; import uniq from "lodash/uniq"; -import { CodeBlockWriter, Directory, SourceFile } from "ts-morph"; +import { Directory, SourceFile } from "ts-morph"; import GeneratorBase from "../../generatorBase"; import { pascalCase } from "../../helpers"; import Endpoint from "../models/endpoint";