From a5702a0c8608fbdace194c5073e19b3a4f0023ee Mon Sep 17 00:00:00 2001 From: Antoine du Hamel Date: Tue, 17 Dec 2024 15:57:37 +0100 Subject: [PATCH] tools: fix `node:` enforcement for docs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/56284 Refs: https://github.com/nodejs/node/pull/56185 Reviewed-By: Michaƫl Zasso Reviewed-By: Luigi Pinca Reviewed-By: Chengzhong Wu --- doc/eslint.config_partial.mjs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/doc/eslint.config_partial.mjs b/doc/eslint.config_partial.mjs index edcc72930875b0..609c38c26e9336 100644 --- a/doc/eslint.config_partial.mjs +++ b/doc/eslint.config_partial.mjs @@ -3,7 +3,9 @@ import { noRestrictedSyntaxCommonLib, requireEslintTool, } from '../tools/eslint/eslint.config_utils.mjs'; -import { builtinModules as builtin } from 'node:module'; +import { builtinModules } from 'node:module'; + +const builtin = builtinModules.filter((name) => !name.startsWith('node:')); const globals = requireEslintTool('globals');