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/56295/head
Antoine du Hamel 2024-12-17 15:57:37 +01:00 committed by GitHub
parent 5a868b5b30
commit 6012a4e9a2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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');