Skip to content

Commit

Permalink
fix: Don't use node: style imports (#358)
Browse files Browse the repository at this point in the history
  • Loading branch information
ovaistariq authored May 9, 2023
1 parent 0a038be commit c972224
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"unused-imports/no-unused-imports": "error",
"quotes": "off",
"unicorn/expiring-todo-comments": "off",
"unicorn/prefer-node-protocol": "off",
"@typescript-eslint/quotes": ["error"],
"tsdoc/syntax": "error"
},
Expand Down
2 changes: 1 addition & 1 deletion src/__tests__/utils.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Utility } from "../utility";
import fs from "node:fs";
import * as fs from "fs";

export function readJSONFileAsObj(filePath: string): string {
return Utility.objToJsonString(
Expand Down
2 changes: 1 addition & 1 deletion src/consumables/iterable-stream.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as proto from "google-protobuf";
import { ClientReadableStream } from "@grpc/grpc-js";
import { CursorInUseError } from "../error";
import { Readable } from "node:stream";
import { Readable } from "stream";

/** @internal */
export interface Initializer<TResp extends proto.Message> {
Expand Down
4 changes: 2 additions & 2 deletions src/utils/env-loader.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import appRootPath from "app-root-path";
import * as dotenv from "dotenv";
import path from "node:path";
import fs from "node:fs";
import path from "path";
import * as fs from "fs";
import { Log } from "./logger";

/**
Expand Down

0 comments on commit c972224

Please sign in to comment.