esdocs ignores unnamed exports like `export default `
See original GitHub issueI am trying use esdocs for Ember apps. Ember doesn’t uses class anywhere yet and all the import/exports are basically dealing with objects and when I run esdoc on the project it just ignores everyting. e.g below is a helper from project .
./addon/helpers/format-date-from-now.js
export default Ember.Helper.helper(function (params, hash) {
let [value] = params;
let withoutSuffix = hash.withoutSuffix;
if (value) {
return moment(value).fromNow(withoutSuffix);
}
});
esdocs.json
{
"source": "./addon",
"destination": "./out/esdoc"
}
Issue Analytics
- State:
- Created 8 years ago
- Comments:8 (2 by maintainers)
Top Results From Across the Web
How can I get rid of the warning import/no-anonymous-default ...
I get the warning in the consle:"Assign object to a variable before exporting as module default import/no-anonymous-default-export.".
Read more >Releases - ESDoc
Support anonymous class/function export (#13). export default class{} and export default function(){}. Show a detail log when ESDoc could not process a ...
Read more >no-restricted-exports - ESLint - Pluggable JavaScript Linter
Rule Details. This rule disallows specified names from being used as exported names. Options. By default, this rule doesn't disallow any names.
Read more >Configuring Jest
The configuration file should simply export an object: ... module.exports = config; ... Node.js core modules, like fs , are not mocked by...
Read more >TSConfig Option: allowSyntheticDefaultImports - TypeScript
When the module does not explicitly specify a default export. For example, without allowSyntheticDefaultImports as true: ... module . exports = {.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
esdoc
’sesdoc-standard-plugin
has an option to document unexported identifiers. You may also with to disable undocumented identifiers.IMO this is a major project flaw that needs to be fixed. I would like to use esdoc but without supporting this, I won’t be able to.
Edit: I’m now using esdoc-node which is alleviating this issue.