Skip to content

Commit 118cd99

Browse files
committed
tools: fix node: enforcement for docs
PR-URL: #56284 Refs: #56185 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
1 parent c4c56da commit 118cd99

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

doc/eslint.config_partial.mjs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ import {
33
noRestrictedSyntaxCommonLib,
44
requireEslintTool,
55
} from '../tools/eslint/eslint.config_utils.mjs';
6-
import { builtinModules as builtin } from 'node:module';
6+
import { builtinModules } from 'node:module';
7+
8+
const builtin = builtinModules.filter((name) => !name.startsWith('node:'));
79

810
const globals = requireEslintTool('globals');
911

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy