From 9fa6bc9a05dfca906f6a485c92b15845c2490a32 Mon Sep 17 00:00:00 2001 From: Takanori Oishi Date: Sat, 12 Sep 2020 15:02:53 +0900 Subject: [PATCH] [Docs] `no-named-as-default`: add semicolon --- CHANGELOG.md | 3 +++ docs/rules/no-named-as-default.md | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 57495c4f5..347034bbc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -23,6 +23,7 @@ This change log adheres to standards from [Keep a CHANGELOG](http://keepachangel ### Changed - [Generic Import Callback] Make callback for all imports once in rules ([#1237], thanks [@ljqx]) +- [Docs] [`no-named-as-default`]: add semicolon ([#1897], thanks [@bicstone]) ## [2.22.1] - 2020-09-27 ### Fixed @@ -759,6 +760,7 @@ for info on changes for earlier releases. [#1948]: https://github.com/benmosher/eslint-plugin-import/pull/1948 [#1947]: https://github.com/benmosher/eslint-plugin-import/pull/1947 [#1940]: https://github.com/benmosher/eslint-plugin-import/pull/1940 +[#1897]: https://github.com/benmosher/eslint-plugin-import/pull/1897 [#1889]: https://github.com/benmosher/eslint-plugin-import/pull/1889 [#1878]: https://github.com/benmosher/eslint-plugin-import/pull/1878 [#1854]: https://github.com/benmosher/eslint-plugin-import/issues/1854 @@ -1319,3 +1321,4 @@ for info on changes for earlier releases. [@MatthiasKunnen]: https://github.com/MatthiasKunnen [@paztis]: https://github.com/paztis [@FloEdelmann]: https://github.com/FloEdelmann +[@bicstone]: https://github.com/bicstone \ No newline at end of file diff --git a/docs/rules/no-named-as-default.md b/docs/rules/no-named-as-default.md index 0a92b7b51..042141383 100644 --- a/docs/rules/no-named-as-default.md +++ b/docs/rules/no-named-as-default.md @@ -31,7 +31,7 @@ For post-ES2015 `export` extensions, this also prevents exporting the default fr ```js // valid: -export foo from './foo.js' +export foo from './foo.js'; // message: Using exported name 'bar' as identifier for default export. export bar from './foo.js';