Skip to content

Commit 3f178ab

Browse files
cherryblossom000scagood
andauthoredFeb 22, 2024··
docs: improve wording of file-extension-in-import docs (#110)
* docs: improve wording of file-extension-in-import docs mysticatea#325 * Update docs/rules/file-extension-in-import.md * docs: Remove multiple blank lines --------- Co-authored-by: Sebastian Good <2230835+scagood@users.noreply.github.com>
1 parent 77de809 commit 3f178ab

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed
 

‎docs/rules/file-extension-in-import.md

+1-3
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,7 @@ import foo from "./path/to/a/file" // maybe it's resolved to 'file.js' or 'file.
1111
export * from "./path/to/a/file"
1212
```
1313

14-
However, [--experimental-modules](https://medium.com/@nodejs/announcing-a-new-experimental-modules-1be8d2d6c2ff) has declared to drop the file extension omition.
15-
16-
Also, we can import a variety kind of files with bundlers such as Webpack. In the situation, probably explicit file extensions help us to understand code.
14+
We can also import a variety of file types with bundlers such as Webpack. In this situation, explicit file extensions can help to identify the type of file being imported.
1715

1816
## 📖 Rule Details
1917

0 commit comments

Comments
 (0)
Please sign in to comment.