summaryrefslogtreecommitdiff
path: root/ext/node/polyfills/path
diff options
context:
space:
mode:
authorKenta Moriuchi <moriken@kimamass.com>2023-06-27 15:18:22 +0900
committerGitHub <noreply@github.com>2023-06-27 15:18:22 +0900
commite16b74d792c8fcdb46ab231575fc75f29d4d7fe7 (patch)
treedd3e21da57213ba623e287bc804c8014e00de6e2 /ext/node/polyfills/path
parent814edcdd570b3fbef2001f7e6434320743a8f834 (diff)
chore(ext/node): disable prefer-primordials on a per-file basis (#19553)
Diffstat (limited to 'ext/node/polyfills/path')
-rw-r--r--ext/node/polyfills/path/_posix.ts3
-rw-r--r--ext/node/polyfills/path/_util.ts3
-rw-r--r--ext/node/polyfills/path/_win32.ts3
-rw-r--r--ext/node/polyfills/path/common.ts3
-rw-r--r--ext/node/polyfills/path/separator.ts3
5 files changed, 15 insertions, 0 deletions
diff --git a/ext/node/polyfills/path/_posix.ts b/ext/node/polyfills/path/_posix.ts
index 29fecf131..17d095948 100644
--- a/ext/node/polyfills/path/_posix.ts
+++ b/ext/node/polyfills/path/_posix.ts
@@ -2,6 +2,9 @@
// Ported from https://github.com/browserify/path-browserify/
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
+// TODO(petamoriken): enable prefer-primordials for node polyfills
+// deno-lint-ignore-file prefer-primordials
+
import type {
FormatInputPathObject,
ParsedPath,
diff --git a/ext/node/polyfills/path/_util.ts b/ext/node/polyfills/path/_util.ts
index fcf32d55c..71539dcdd 100644
--- a/ext/node/polyfills/path/_util.ts
+++ b/ext/node/polyfills/path/_util.ts
@@ -2,6 +2,9 @@
// Ported from https://github.com/browserify/path-browserify/
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
+// TODO(petamoriken): enable prefer-primordials for node polyfills
+// deno-lint-ignore-file prefer-primordials
+
import type { FormatInputPathObject } from "ext:deno_node/path/_interface.ts";
import {
CHAR_BACKWARD_SLASH,
diff --git a/ext/node/polyfills/path/_win32.ts b/ext/node/polyfills/path/_win32.ts
index dccd00d3c..a36ed6e90 100644
--- a/ext/node/polyfills/path/_win32.ts
+++ b/ext/node/polyfills/path/_win32.ts
@@ -2,6 +2,9 @@
// Ported from https://github.com/browserify/path-browserify/
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
+// TODO(petamoriken): enable prefer-primordials for node polyfills
+// deno-lint-ignore-file prefer-primordials
+
import type {
FormatInputPathObject,
ParsedPath,
diff --git a/ext/node/polyfills/path/common.ts b/ext/node/polyfills/path/common.ts
index 87aa0aad9..642855659 100644
--- a/ext/node/polyfills/path/common.ts
+++ b/ext/node/polyfills/path/common.ts
@@ -1,6 +1,9 @@
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
// This module is browser compatible.
+// TODO(petamoriken): enable prefer-primordials for node polyfills
+// deno-lint-ignore-file prefer-primordials
+
import { SEP } from "ext:deno_node/path/separator.ts";
/** Determines the common path from a set of paths, using an optional separator,
diff --git a/ext/node/polyfills/path/separator.ts b/ext/node/polyfills/path/separator.ts
index c96a022c6..dfaafe330 100644
--- a/ext/node/polyfills/path/separator.ts
+++ b/ext/node/polyfills/path/separator.ts
@@ -1,5 +1,8 @@
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
+// TODO(petamoriken): enable prefer-primordials for node polyfills
+// deno-lint-ignore-file prefer-primordials
+
import { isWindows } from "ext:deno_node/_util/os.ts";
export const SEP = isWindows ? "\\" : "/";