From e16b74d792c8fcdb46ab231575fc75f29d4d7fe7 Mon Sep 17 00:00:00 2001 From: Kenta Moriuchi Date: Tue, 27 Jun 2023 15:18:22 +0900 Subject: chore(ext/node): disable prefer-primordials on a per-file basis (#19553) --- ext/node/polyfills/_util/async.ts | 3 +++ 1 file changed, 3 insertions(+) (limited to 'ext/node/polyfills/_util/async.ts') diff --git a/ext/node/polyfills/_util/async.ts b/ext/node/polyfills/_util/async.ts index b508dbfed..a05b670e8 100644 --- a/ext/node/polyfills/_util/async.ts +++ b/ext/node/polyfills/_util/async.ts @@ -2,6 +2,9 @@ // This module is vendored from std/async/deferred.ts and std/async/delay.ts // (with some modifications) +// TODO(petamoriken): enable prefer-primordials for node polyfills +// deno-lint-ignore-file prefer-primordials + export interface Deferred extends Promise { readonly state: "pending" | "fulfilled" | "rejected"; resolve(value?: T | PromiseLike): void; -- cgit v1.2.3