Skip to content

Commit 05fb2d8

Browse files
committed
Fix docs
1 parent ab7732e commit 05fb2d8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/rules/prefer-module.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ Prefer using the [JavaScript module](https://developer.mozilla.org/en-US/docs/We
2424
Replacements:
2525

2626
```js
27-
import {fileURLToPath} from 'url';
28-
import path from 'path';
27+
import {fileURLToPath} from 'node:url';
28+
import path from 'node:path';
2929

3030
const __filename = fileURLToPath(import.meta.url);
3131
const __dirname = path.dirname(fileURLToPath(import.meta.url));
@@ -34,7 +34,7 @@ Prefer using the [JavaScript module](https://developer.mozilla.org/en-US/docs/We
3434
However, in most cases, this is better:
3535

3636
```js
37-
import {fileURLToPath} from 'url';
37+
import {fileURLToPath} from 'node:url';
3838

3939
const foo = fileURLToPath(new URL('foo.js', import.meta.url));
4040
```

0 commit comments

Comments
 (0)