Skip to content

Commit 2468f10

Browse files
beatrizrezenerljharb
authored andcommitted
[docs] no-default-export: Fix docs url
Added docsUrl to no-default-export rule Closes #1769 Signed-off-by: Beatriz Rezener <beatrizrezener@gmail.com>
1 parent c38b169 commit 2468f10

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ This change log adheres to standards from [Keep a CHANGELOG](http://keepachangel
1919

2020
### Changed
2121
- [`no-extraneous-dependencies`]: add tests for importing types ([#1824], thanks [@taye])
22+
- [docs] [`no-default-export`]: Fix docs url ([#1836], thanks [@beatrizrezener])
2223

2324
## [2.21.2] - 2020-06-09
2425
### Fixed
@@ -716,6 +717,7 @@ for info on changes for earlier releases.
716717

717718
[`memo-parser`]: ./memo-parser/README.md
718719

720+
[#1836]: https://github.com/benmosher/eslint-plugin-import/pull/1836
719721
[#1833]: https://github.com/benmosher/eslint-plugin-import/pull/1833
720722
[#1831]: https://github.com/benmosher/eslint-plugin-import/pull/1831
721723
[#1830]: https://github.com/benmosher/eslint-plugin-import/pull/1830
@@ -1244,3 +1246,4 @@ for info on changes for earlier releases.
12441246
[@AndrewLeedham]: https://github.com/AndrewLeedham
12451247
[@be5invis]: https://github.com/be5invis
12461248
[@noelebrun]: https://github.com/noelebrun
1249+
[@beatrizrezener]: https://github.com/beatrizrezener

src/rules/no-default-export.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
1+
import docsUrl from '../docsUrl'
2+
13
module.exports = {
24
meta: {
35
type: 'suggestion',
4-
docs: {},
6+
docs: {
7+
url: docsUrl('no-default-export'),
8+
},
59
schema: [],
610
},
711

0 commit comments

Comments
 (0)