From b6e00e1584be3e35db1489c58d2cc78be5a0e268 Mon Sep 17 00:00:00 2001 From: Diego Paez Date: Mon, 30 Dec 2024 09:15:13 -0300 Subject: [PATCH] Update: lint tweaks --- src/client.js | 3 +-- src/writer.js | 3 +-- test/index.js | 5 ++--- 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/src/client.js b/src/client.js index 3c2f59e..1a3befc 100644 --- a/src/client.js +++ b/src/client.js @@ -68,9 +68,8 @@ * }} RequestInfo */ -import qs from 'fast-querystring' - import { Value } from '@sinclair/typebox/value' +import qs from 'fast-querystring' import './formats.js' diff --git a/src/writer.js b/src/writer.js index 1bfad3f..d229830 100644 --- a/src/writer.js +++ b/src/writer.js @@ -1,11 +1,10 @@ /** @typedef {import('@apidevtools/json-schema-ref-parser').JSONSchema} JSONSchema */ +import SwaggerParser from '@apidevtools/json-schema-ref-parser' import CodeBlockWriter from 'code-block-writer' import pascalcase from 'pascalcase' import * as prettier from 'prettier' -import SwaggerParser from '@apidevtools/json-schema-ref-parser' - import { cleanupSchema, extractSchemaOptions, kRef } from './cleanup.js' import headTemplate from './head-template.js' import resolver from './resolver.js' diff --git a/test/index.js b/test/index.js index dffa36f..48c905d 100644 --- a/test/index.js +++ b/test/index.js @@ -2,13 +2,12 @@ import assert from 'node:assert' import { mkdir, readFile, writeFile } from 'node:fs/promises' import test, { after } from 'node:test' +import fastifySwagger from '@fastify/swagger' +import { Type } from '@sinclair/typebox' import { expectTypeOf } from 'expect-type' import fastify from 'fastify' import qs from 'qs' -import fastifySwagger from '@fastify/swagger' -import { Type } from '@sinclair/typebox' - import { createClient } from '../src/client.js' import { write } from '../src/writer.js'