Skip to content

Commit

Permalink
docs: improve wording of file-extension-in-import docs (#110)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
cherryblossom000 and scagood committed Feb 22, 2024
1 parent 77de809 commit 3f178ab
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions docs/rules/file-extension-in-import.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@ import foo from "./path/to/a/file" // maybe it's resolved to 'file.js' or 'file.
export * from "./path/to/a/file"
```

However, [--experimental-modules](https://medium.com/@nodejs/announcing-a-new-experimental-modules-1be8d2d6c2ff) has declared to drop the file extension omition.

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.
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.

## 📖 Rule Details

Expand Down

0 comments on commit 3f178ab

Please sign in to comment.