From f9b3e45256fcbe22eea745de1d8dff322e8fca7b Mon Sep 17 00:00:00 2001 From: Antoine du Hamel Date: Tue, 17 Dec 2024 11:31:50 +0100 Subject: [PATCH] tools: fix `node:` enforcement for docs --- 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');