tools: fix `node:` enforcement for docs

PR-URL: https://github.com/nodejs/node/pull/56284
Refs: https://github.com/nodejs/node/pull/56185
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
pull/56329/head
Antoine du Hamel 2024-12-17 15:57:37 +01:00 committed by Ruy Adorno
parent 0b489116a3
commit 7ae125cef4
No known key found for this signature in database
GPG Key ID: 97B01419BD92F80A
1 changed files with 3 additions and 1 deletions

View File

@ -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');