Skip to content

Commit

Permalink
Chore: add note about require("punycode/") (fixes #72)
Browse files Browse the repository at this point in the history
  • Loading branch information
mysticatea committed Jun 2, 2017
1 parent cf36e6d commit 118a1de
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/rules/no-deprecated-api.md
Expand Up @@ -97,6 +97,10 @@ This rule reports the following deprecated API.
- vm
- [runInDebugContext](https://nodejs.org/dist/v8.0.0/docs/api/vm.html#vm_vm_runindebugcontext_code)

> ⚠️ Note that userland modules don't hide core modules.
> For example, `require("punycode")` still imports the deprecated core module even if you executed `npm install punycode`.
> Use `require("punycode/")` to import userland modules rather than core modules.
## Options

This rule has 2 options.
Expand Down

0 comments on commit 118a1de

Please sign in to comment.