Skip to content

Commit

Permalink
fix lint issues with deno lint --fix
Browse files Browse the repository at this point in the history
  • Loading branch information
bombillazo committed Sep 23, 2024
1 parent 00a8542 commit 9399d60
Show file tree
Hide file tree
Showing 10 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion client/error.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { type Notice } from "../connection/message.ts";
import type { Notice } from "../connection/message.ts";

/**
* A connection error
Expand Down
2 changes: 1 addition & 1 deletion connection/connection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ import {
type QueryResult,
ResultType,
} from "../query/query.ts";
import { type ClientConfiguration } from "./connection_params.ts";
import type { ClientConfiguration } from "./connection_params.ts";
import * as scram from "./scram.ts";
import {
ConnectionError,
Expand Down
6 changes: 3 additions & 3 deletions connection/connection_params.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { parseConnectionUri } from "../utils/utils.ts";
import { ConnectionParamsError } from "../client/error.ts";
import { fromFileUrl, isAbsolute } from "../deps.ts";
import { OidType } from "../query/oid.ts";
import { DebugControls } from "../debug.ts";
import { ParseArrayFunction } from "../query/array_parser.ts";
import type { OidType } from "../query/oid.ts";
import type { DebugControls } from "../debug.ts";
import type { ParseArrayFunction } from "../query/array_parser.ts";

/**
* The connection string must match the following URI structure. All parameters but database and user are optional
Expand Down
4 changes: 2 additions & 2 deletions query/decode.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Oid, OidType, OidTypes, OidValue } from "./oid.ts";
import { Oid, type OidType, OidTypes, type OidValue } from "./oid.ts";
import { bold, yellow } from "../deps.ts";
import {
decodeBigint,
Expand Down Expand Up @@ -35,7 +35,7 @@ import {
decodeTid,
decodeTidArray,
} from "./decoders.ts";
import { ClientControls } from "../connection/connection_params.ts";
import type { ClientControls } from "../connection/connection_params.ts";
import { parseArray } from "./array_parser.ts";

export class Column {
Expand Down
4 changes: 2 additions & 2 deletions query/query.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { encodeArgument, type EncodedArg } from "./encode.ts";
import { type Column, decode } from "./decode.ts";
import { type Notice } from "../connection/message.ts";
import { type ClientControls } from "../connection/connection_params.ts";
import type { Notice } from "../connection/message.ts";
import type { ClientControls } from "../connection/connection_params.ts";

// TODO
// Limit the type of parameters that can be passed
Expand Down
2 changes: 1 addition & 1 deletion query/transaction.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { type QueryClient } from "../client.ts";
import type { QueryClient } from "../client.ts";
import {
Query,
type QueryArguments,
Expand Down
2 changes: 1 addition & 1 deletion tests/config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {
import type {
ClientConfiguration,
ClientOptions,
} from "../connection/connection_params.ts";
Expand Down
2 changes: 1 addition & 1 deletion tests/helpers.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Client } from "../client.ts";
import { Pool } from "../pool.ts";
import { type ClientOptions } from "../connection/connection_params.ts";
import type { ClientOptions } from "../connection/connection_params.ts";

export function generateSimpleClientTest(
client_options: ClientOptions,
Expand Down
4 changes: 2 additions & 2 deletions tests/query_client_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ import {
assertThrows,
} from "./test_deps.ts";
import { getMainConfiguration } from "./config.ts";
import { PoolClient, QueryClient } from "../client.ts";
import { ClientOptions } from "../connection/connection_params.ts";
import type { PoolClient, QueryClient } from "../client.ts";
import type { ClientOptions } from "../connection/connection_params.ts";
import { Oid } from "../query/oid.ts";

function withClient(
Expand Down
2 changes: 1 addition & 1 deletion tests/utils_test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { assertEquals, assertThrows } from "./test_deps.ts";
import { parseConnectionUri, Uri } from "../utils/utils.ts";
import { parseConnectionUri, type Uri } from "../utils/utils.ts";
import { DeferredAccessStack, DeferredStack } from "../utils/deferred.ts";

class LazilyInitializedObject {
Expand Down

0 comments on commit 9399d60

Please sign in to comment.