From 1012eb951767279ce3b540a4ec4f29236104bb5b Mon Sep 17 00:00:00 2001 From: Wenfang Du Date: Fri, 25 Jun 2021 20:17:31 +0800 Subject: [PATCH] [Docs] `extensions`: removed incorrect cases --- CHANGELOG.md | 7 ++++++- docs/rules/extensions.md | 4 ---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3452dd541..07f595d8e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,9 @@ This change log adheres to standards from [Keep a CHANGELOG](http://keepachangel - [`extensions`]: avoid crashing on partially typed import/export statements ([#2118], thanks [@ljharb]) - [`no-extraneous-dependencies`]: add ESM intermediate package.json support] ([#2121], thanks [@paztis]) +### Changed +- [Docs] `extensions`: removed incorrect cases ([#2138], thanks [@wenfangdu]) + ## [2.23.4] - 2021-05-29 ### Fixed @@ -805,6 +808,7 @@ for info on changes for earlier releases. [`memo-parser`]: ./memo-parser/README.md +[#2138]: https://github.com/benmosher/eslint-plugin-import/pull/2138 [#2121]: https://github.com/benmosher/eslint-plugin-import/pull/2121 [#2099]: https://github.com/benmosher/eslint-plugin-import/pull/2099 [#2097]: https://github.com/benmosher/eslint-plugin-import/pull/2097 @@ -1416,9 +1420,10 @@ for info on changes for earlier releases. [@TrevorBurnham]: https://github.com/TrevorBurnham [@ttmarek]: https://github.com/ttmarek [@vikr01]: https://github.com/vikr01 +[@wenfangdu]: https://github.com/wenfangdu [@wKich]: https://github.com/wKich [@wschurman]: https://github.com/wschurman [@wtgtybhertgeghgtwtg]: https://github.com/wtgtybhertgeghgtwtg [@xpl]: https://github.com/xpl [@yordis]: https://github.com/yordis -[@zloirock]: https://github.com/zloirock +[@zloirock]: https://github.com/zloirock \ No newline at end of file diff --git a/docs/rules/extensions.md b/docs/rules/extensions.md index 2f6d4a9c7..bf29dbe5f 100644 --- a/docs/rules/extensions.md +++ b/docs/rules/extensions.md @@ -109,8 +109,6 @@ import foo from './foo'; import bar from './bar'; import Component from './Component'; - -import express from 'express'; ``` The following patterns are not considered problems when configuration set to "always": @@ -122,8 +120,6 @@ import bar from './bar.json'; import Component from './Component.jsx'; -import express from 'express/index.js'; - import * as path from 'path'; ```