flarum / flarum/docs

2.x javascript extender docs sometimes use return

Open
#497 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
77
Forks
134
Avg merge
19m
Merged PRs (30d)
9

Description

The examples start with `export default []`, then later switch to `return []` which doesn't seem valid

https://github.com/flarum/docs/blob/1038a82ad3841ffc392d0a25c7c042267444eb0a/docs/extend/admin.md?plain=1#L17

https://github.com/flarum/docs/blob/1038a82ad3841ffc392d0a25c7c042267444eb0a/docs/extend/admin.md?plain=1#L44

https://github.com/flarum/docs/blob/1038a82ad3841ffc392d0a25c7c042267444eb0a/docs/extend/admin.md?plain=1#L64

https://github.com/flarum/docs/blob/1038a82ad3841ffc392d0a25c7c042267444eb0a/docs/extend/admin.md?plain=1#L87

https://github.com/flarum/docs/blob/1038a82ad3841ffc392d0a25c7c042267444eb0a/docs/extend/admin.md?plain=1#L107

etc...

Contributor guide

Open the contributing guide

Research direction

Open docs/extend/admin.md and review the linked examples around lines 17, 44, 64, 87, and 107, checking how each extender example declares its array. Make the examples use one valid, consistent JavaScript module syntax throughout, then verify that no affected examples still use the invalid form.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
documentation
Issue type
Documentation
Difficulty
1/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.