Skip to content

Commit 1012eb9

Browse files
wenfangduljharb
authored andcommittedJun 25, 2021
[Docs] extensions: removed incorrect cases
1 parent b3d8c0c commit 1012eb9

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed
 

‎CHANGELOG.md

+6-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ This change log adheres to standards from [Keep a CHANGELOG](http://keepachangel
1111
- [`extensions`]: avoid crashing on partially typed import/export statements ([#2118], thanks [@ljharb])
1212
- [`no-extraneous-dependencies`]: add ESM intermediate package.json support] ([#2121], thanks [@paztis])
1313

14+
### Changed
15+
- [Docs] `extensions`: removed incorrect cases ([#2138], thanks [@wenfangdu])
16+
1417
## [2.23.4] - 2021-05-29
1518

1619
### Fixed
@@ -805,6 +808,7 @@ for info on changes for earlier releases.
805808

806809
[`memo-parser`]: ./memo-parser/README.md
807810

811+
[#2138]: https://github.com/benmosher/eslint-plugin-import/pull/2138
808812
[#2121]: https://github.com/benmosher/eslint-plugin-import/pull/2121
809813
[#2099]: https://github.com/benmosher/eslint-plugin-import/pull/2099
810814
[#2097]: https://github.com/benmosher/eslint-plugin-import/pull/2097
@@ -1416,9 +1420,10 @@ for info on changes for earlier releases.
14161420
[@TrevorBurnham]: https://github.com/TrevorBurnham
14171421
[@ttmarek]: https://github.com/ttmarek
14181422
[@vikr01]: https://github.com/vikr01
1423+
[@wenfangdu]: https://github.com/wenfangdu
14191424
[@wKich]: https://github.com/wKich
14201425
[@wschurman]: https://github.com/wschurman
14211426
[@wtgtybhertgeghgtwtg]: https://github.com/wtgtybhertgeghgtwtg
14221427
[@xpl]: https://github.com/xpl
14231428
[@yordis]: https://github.com/yordis
1424-
[@zloirock]: https://github.com/zloirock
1429+
[@zloirock]: https://github.com/zloirock

‎docs/rules/extensions.md

-4
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,6 @@ import foo from './foo';
109109
import bar from './bar';
110110

111111
import Component from './Component';
112-
113-
import express from 'express';
114112
```
115113

116114
The following patterns are not considered problems when configuration set to "always":
@@ -122,8 +120,6 @@ import bar from './bar.json';
122120

123121
import Component from './Component.jsx';
124122

125-
import express from 'express/index.js';
126-
127123
import * as path from 'path';
128124
```
129125

0 commit comments

Comments
 (0)
Please sign in to comment.