From 47548b3c3601dc97454ecc4e59e0a187e936d853 Mon Sep 17 00:00:00 2001 From: Bart Stefanski Date: Thu, 2 Jan 2025 00:47:36 +0100 Subject: [PATCH] chore: set biome to not include type imports --- apps/gateway-service/src/app.controller.spec.ts | 2 +- apps/gateway-service/src/app.controller.ts | 2 +- apps/gateway-service/test/app.e2e-spec.ts | 4 ++-- apps/storefront/src/app/layout.tsx | 2 +- biome.json | 6 +++++- 5 files changed, 10 insertions(+), 6 deletions(-) diff --git a/apps/gateway-service/src/app.controller.spec.ts b/apps/gateway-service/src/app.controller.spec.ts index ac64b4b..02ac693 100644 --- a/apps/gateway-service/src/app.controller.spec.ts +++ b/apps/gateway-service/src/app.controller.spec.ts @@ -1,4 +1,4 @@ -import { Test, type TestingModule } from "@nestjs/testing"; +import { Test, TestingModule } from "@nestjs/testing"; import { AppController } from "./app.controller"; import { AppService } from "./app.service"; import { describe, beforeEach, it, expect } from "vitest"; diff --git a/apps/gateway-service/src/app.controller.ts b/apps/gateway-service/src/app.controller.ts index 4f66879..1e7e628 100644 --- a/apps/gateway-service/src/app.controller.ts +++ b/apps/gateway-service/src/app.controller.ts @@ -1,5 +1,5 @@ import { Controller, Get } from "@nestjs/common"; -import type { AppService } from "./app.service"; +import { AppService } from "./app.service"; @Controller() export class AppController { diff --git a/apps/gateway-service/test/app.e2e-spec.ts b/apps/gateway-service/test/app.e2e-spec.ts index 31f0db2..a5aacee 100644 --- a/apps/gateway-service/test/app.e2e-spec.ts +++ b/apps/gateway-service/test/app.e2e-spec.ts @@ -1,5 +1,5 @@ -import { Test, type TestingModule } from "@nestjs/testing"; -import type { INestApplication } from "@nestjs/common"; +import { Test, TestingModule } from "@nestjs/testing"; +import { INestApplication } from "@nestjs/common"; import * as request from "supertest"; import { AppModule } from "./../src/app.module"; import { describe, beforeEach, it } from "vitest"; diff --git a/apps/storefront/src/app/layout.tsx b/apps/storefront/src/app/layout.tsx index d52d0f1..85d5664 100644 --- a/apps/storefront/src/app/layout.tsx +++ b/apps/storefront/src/app/layout.tsx @@ -1,4 +1,4 @@ -import type { Metadata } from "next"; +import { Metadata } from "next"; import localFont from "next/font/local"; import "./globals.css"; diff --git a/biome.json b/biome.json index 0f99293..0d1c25a 100644 --- a/biome.json +++ b/biome.json @@ -6,7 +6,11 @@ "linter": { "enabled": true, "rules": { - "recommended": true + "recommended": true, + "style": { + "useImportType": "off", + "noNonNullAssertion": "off" + } }, "ignore": ["**/.*.js", "node_modules", "dist", ".next"] }