Skip to content

Commit 9521284

Browse files
MustafaHaddaraljharb
authored andcommittedJul 26, 2021
[Docs] named: update docs with module info and deprecation notice for jsnext:main
1 parent 95e6011 commit 9521284

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed
 

‎docs/rules/named.md

+5-3
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Verifies that all named imports are part of the set of named exports in the refe
55
For `export`, verifies that all named exports exist in the referenced module.
66

77
Note: for packages, the plugin will find exported names
8-
from [`jsnext:main`], if present in `package.json`.
8+
from [`jsnext:main`] (deprecated) or `module`, if present in `package.json`.
99
Redux's npm module includes this key, and thereby is lintable, for example.
1010

1111
A module path that is [ignored] or not [unambiguously an ES module] will not be reported when imported. Note that type imports and exports, as used by [Flow], are always ignored.
@@ -91,8 +91,10 @@ runtime, you will likely see false positives with this rule.
9191
## Further Reading
9292

9393
- [`import/ignore`] setting
94-
- [`jsnext:main`] (Rollup)
94+
- [`jsnext:main`] deprecation
95+
- [`pkg.module`] (Rollup)
9596

9697

97-
[`jsnext:main`]: https://github.com/rollup/rollup/wiki/jsnext:main
98+
[`jsnext:main`]: https://github.com/jsforum/jsforum/issues/5
99+
[`pkg.module`]: https://github.com/rollup/rollup/wiki/pkg.module
98100
[`import/ignore`]: ../../README.md#importignore

0 commit comments

Comments
 (0)
Please sign in to comment.