mirror of https://github.com/nodejs/node.git
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
parent
5a868b5b30
commit
6012a4e9a2
|
@ -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');
|
||||
|
||||
|
|
Loading…
Reference in New Issue