From 2468f101dafb73b471dcfb0f929f1ea75301423d Mon Sep 17 00:00:00 2001 From: Beatriz Rezener Date: Tue, 23 Jun 2020 13:43:46 -0300 Subject: [PATCH] [docs] `no-default-export`: Fix docs url Added docsUrl to no-default-export rule Closes #1769 Signed-off-by: Beatriz Rezener --- CHANGELOG.md | 3 +++ src/rules/no-default-export.js | 6 +++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4dc09b1c5..8be96cf9d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -19,6 +19,7 @@ This change log adheres to standards from [Keep a CHANGELOG](http://keepachangel ### Changed - [`no-extraneous-dependencies`]: add tests for importing types ([#1824], thanks [@taye]) +- [docs] [`no-default-export`]: Fix docs url ([#1836], thanks [@beatrizrezener]) ## [2.21.2] - 2020-06-09 ### Fixed @@ -716,6 +717,7 @@ for info on changes for earlier releases. [`memo-parser`]: ./memo-parser/README.md +[#1836]: https://github.com/benmosher/eslint-plugin-import/pull/1836 [#1833]: https://github.com/benmosher/eslint-plugin-import/pull/1833 [#1831]: https://github.com/benmosher/eslint-plugin-import/pull/1831 [#1830]: https://github.com/benmosher/eslint-plugin-import/pull/1830 @@ -1244,3 +1246,4 @@ for info on changes for earlier releases. [@AndrewLeedham]: https://github.com/AndrewLeedham [@be5invis]: https://github.com/be5invis [@noelebrun]: https://github.com/noelebrun +[@beatrizrezener]: https://github.com/beatrizrezener diff --git a/src/rules/no-default-export.js b/src/rules/no-default-export.js index 0a46fd35f..fdc709696 100644 --- a/src/rules/no-default-export.js +++ b/src/rules/no-default-export.js @@ -1,7 +1,11 @@ +import docsUrl from '../docsUrl' + module.exports = { meta: { type: 'suggestion', - docs: {}, + docs: { + url: docsUrl('no-default-export'), + }, schema: [], },