You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 58c5d56
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: docs/rules/no-mixed-requires.md
+1-2Lines changed: 1 addition & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -115,8 +115,7 @@ var async = require('async'),
115
115
116
116
- The implementation is not aware of any local functions with the name `require` that may shadow Node.js' global `require`.
117
117
118
-
- Internally, the list of core modules is retrieved via `require("repl")._builtinLibs`. If you use different versions of Node.js for ESLint and your application, the list of core modules for each version may be different.
119
-
The above mentioned `_builtinLibs` property became available in 0.8, for earlier versions a hardcoded list of module names is used as a fallback. If your version of Node.js is older than 0.6 that list may be inaccurate.
118
+
- Core modules are detected using Node.js' `module.isBuiltin()`, including `node:`-prefixed imports. If ESLint and your application run different Node.js versions, their available built-in modules may differ.
0 commit comments